Cursor
Add acf-mcp to Cursor so its agent can call ACF governance tools directly inside your IDE.
~/.cursor/mcp.json) or per-project (.cursor/mcp.json at the repo root) configuration.Prerequisites
- Node.js ≥ 18 (check with
node --version) - Cursor — cursor.com (macOS, Windows, Linux)
Install
Open MCP settings
Two options: GUI (Cursor → Settings → Features → MCP Servers → Add new server) or edit the JSON file directly.
Paste the configuration
Edit
~/.cursor/mcp.json(create the file if missing). Applies to all projects.~/.cursor/mcp.jsonjson{ "mcpServers": { "acf": { "command": "npx", "args": ["-y", "acf-mcp"] } } }Enable the server in settings
Settings → Features → MCP Servers: toggle acf to ON. Cursor spawns the process and lists the detected tools.
Reload Cursor
Cmd/Ctrl+Shift+P → “Developer: Reload Window” is enough. No need to quit the app.
Verify
Check the tool list
Settings → MCP Servers: the acf entry should show a green dot and the detected tool count (13 expected).
Test prompt in the agent chat
Open the agent chat (Cmd/Ctrl+L), switch to Agent mode, then type: “Use acf.advisor to assess governance of a B2B lead-qualification agent”.
The agent must call the tool and return a signed reply (doctrine_hash, doctrine_signature, generated_at).
Advanced config
HTTP transport
Cursor accepts a remote HTTP endpoint. Useful to share acf-mcp server-side or enforce a per-user API key.
{
"mcpServers": {
"acf": {
"url": "https://your-acf-mcp.example.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_ACF_API_KEY"
}
}
}
}See /docs/authentication for deploying acf-mcp over HTTP with API-key auth.
Auto-approval
Cursor asks for approval on every tool call by default. Settings → Features → MCP → check the acf tools you want to auto-approve. All ACF tools are deterministic and side-effect-free: no risk of write operations.
Troubleshooting
- Red dot next to acf. Click it to open server logs. Most common cause: Node not found or malformed JSON.
- Agent does not list MCP tools. Check you are in Agent mode (not Chat). Chat mode ignores MCP tools.
- Conflict with project .cursor/mcp.json. Project config overrides global for same-named servers. Rename the entry (acf-local, acf-prod) if you need both.
- Cursor on Windows cannot find npx. Replace
npxwithnpx.cmdin thecommandkey. - Startup timeout. First npx = package download. Wait ~10 s, reload window. Subsequent runs are instant (npx cache).