Skip to main content
The easiest way is the Connect Your AI IDE card on Home, or step 1 of the Setup view. Pick your IDE, click Copy and paste it into the file the card names. The config has the right address and token for the App that is running. The page remembers your choice in this browser.

Where each IDE reads it

The config

These use SPECPILOT_MCP_TOKEN (see Keep the token) and the default port, 4321.
.mcp.json
Without the variable, the card puts the token itself in the config and says it changes each time serve starts. Add project config files to .gitignore.

Check it works

Open the Setup view of a folder without specs. Step 1 shows Waiting 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 serve restarted. 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.