← Toutes les connexions

Connexion avec Cursor

Cursor — remote MCP servers through mcp.json, global or per project.

Avant de commencer, créez votre compte gratuit.Créer un compte

Ce contenu est disponible en anglais.

Quel MCP allez-vous connecter ? Les commandes ci-dessous s'adaptent à votre choix.

  1. 1

    Generate your API key

    Sign in to app.newalgorithm.io with your account, open Keys & apps and generate a key. It is shown only once: copy it and store it somewhere safe.

    Key format
    na_live_xxxxxxxxxxxxxxxxx
  2. 2

    Open the MCP settings

    Cursor Settings → MCP & Integrations → Add new global MCP server. The button opens ~/.cursor/mcp.json directly in the editor.

  3. 3

    Declare the NewAlgorithm server

    The presence of the url field is what tells Cursor the server is remote — no command or args.

    ~/.cursor/mcp.json
    {
      "mcpServers": {
        "NewAlgorithm-TOTVS": {
          "url": "https://totvs.mcp.newalgorithm.io/mcp",
          "headers": {
            "Authorization": "Bearer na_live_xxxxxxxxxxxxxxxxx"
          }
        }
      }
    }
  4. 4

    Save and confirm

    Go back to the MCP panel. NewAlgorithm should appear with a green indicator and the list of tools; if it turns red, use the refresh button.

    Résultat attendu : NewAlgorithm-TOTVS — 4 tools enabled

  5. 5

    Use it in Agent mode

    MCP tools are only called in Cursor's Agent mode. Ask an SAP question without mentioning the Specialist and watch the na_search call appear in the flow.

There's also a per-project .cursor/mcp.json, which is versioned along with the code. Prefer the global one (~/.cursor/mcp.json) for the key: it stays on your machine and doesn't go into the repository.

Détails sur l'authentification et les outils dans la Documentation.