Skip to content

Connect Cursor ​

Cursor is configured with a fixed bearer header, so it uses a Manual Access Token. Create the token first, then:

  1. Open Customize > MCPs in Cursor.
  2. Create ~/.cursor/mcp.json for a personal connection, or .cursor/mcp.json for the current project.
  3. Add the following server:
json
{
  "mcpServers": {
    "puppetflow": {
      "url": "https://your-puppetflow.example/api/mcp-server/http",
      "headers": {
        "Authorization": "Bearer ${env:PUPPETFLOW_MCP_TOKEN}"
      }
    }
  }
}
  1. Replace the URL with the Manual MCP endpoint copied from Puppetflow.
  2. Define PUPPETFLOW_MCP_TOKEN in Cursor's process environment with the generated mcp_... token as its value.
  3. Restart Cursor, then check that puppetflow appears as connected under Customize > MCPs.

Project and global configurations are merged. A project entry takes precedence when both configurations use the same server name.

WARNING

Do not replace the environment variable with a raw token in a project-level .cursor/mcp.json. This file may be committed to the repository.

If the connection fails, open Output, select MCP Logs, and check whether the environment variable was loaded.