← Todas las conexiones

Conectar con Claude Code

Claude Code in the terminal or in VS Code — OAuth sign-in or API Key.

Antes de empezar, crea tu cuenta gratuita.Crear cuenta

Este contenido está disponible en inglés.

¿Qué MCP vas a conectar? Los comandos de abajo cambian según tu elección.

  1. 1

    Install Claude Code

    In VS Code, install the “Claude Code” extension from the marketplace and sign in to your Claude account. For the terminal, install the CLI:

    CLI installation
    macOS / Linux:  curl -fsSL https://claude.ai/install.sh | bash
    Windows:        irm https://claude.ai/install.ps1 | iex
  2. 2

    Check the installation

    Close and reopen the terminal to reload the PATH, then check:

    claude --version

    Resultado esperado: If it returns a version, the CLI is installed correctly.

  3. 3

    Register NewAlgorithm

    --scope user makes NewAlgorithm available in any project. Without a header, authentication happens through OAuth sign-in in the next step.

    claude mcp add --transport http --scope user NewAlgorithm-TOTVS https://totvs.mcp.newalgorithm.io/mcp
  4. 4

    Sign in

    Inside Claude Code, open the MCP manager, choose NewAlgorithm and authenticate. The browser opens the NewAlgorithm authorization page (app.newalgorithm.io); sign in with your account and authorize.

    /mcp

    Resultado esperado: NewAlgorithm-TOTVS ✔ Connected

  5. 5

    Alternative: API Key in the header

    For environments without a browser, generate an API key in app.newalgorithm.io → Keys & apps and register the server with the header, replacing YOUR_API_KEY with the key:

    claude mcp add --transport http --scope user NewAlgorithm-TOTVS https://totvs.mcp.newalgorithm.io/mcp --header "Authorization: Bearer YOUR_API_KEY"
  6. 6

    Confirm

    claude mcp list

    Resultado esperado: NewAlgorithm-TOTVS: https://totvs.mcp.newalgorithm.io/mcp (HTTP) - ✔ Connected

If you configure the header with an invalid key, Claude Code doesn't fall back to OAuth sign-in: it reports a failure. Fix the key or remove the header to use sign-in.

Detalles de autenticación y herramientas en la Documentación.