Connect Cursor
Cursor is configured with a fixed bearer header, so it uses a Manual Access Token. Create the token first, then:
- Open Customize > MCPs in Cursor.
- Create
~/.cursor/mcp.jsonfor a personal connection, or.cursor/mcp.jsonfor the current project. - Add the following server:
json
{
"mcpServers": {
"puppetflow": {
"url": "https://your-puppetflow.example/api/mcp-server/http",
"headers": {
"Authorization": "Bearer ${env:PUPPETFLOW_MCP_TOKEN}"
}
}
}
}- Replace the URL with the Manual MCP endpoint copied from Puppetflow.
- Define
PUPPETFLOW_MCP_TOKENin Cursor's process environment with the generatedmcp_...token as its value. - Restart Cursor, then check that
puppetflowappears 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.
