Where each IDE reads it
The config
These useSPECPILOT_MCP_TOKEN (see Keep the token) and the default port, 4321.
- Claude Code
- Cursor
- VS Code
- Windsurf
- Codex
- Antigravity
.mcp.json
serve starts. Add project config files to .gitignore.
Check it works
Open the Setup view of a folder without specs. Step 1 showsWaiting for a connection, then Connected with your IDE’s name once your IDE calls the server. Or ask your agent to list your SpecPilot projects.
If it is refused
- “did not carry a valid X-SpecPilot-Token header”: the token changed when
serverestarted. Copy the config again, or keep the token. - Port already in use: start with another port, for example
specpilot serve --port 4322, and copy the config again.