Options
Set
SPECPILOT_MCP_TOKEN (32 or more visible characters) to keep the same MCP token across restarts. See Keep the token.
What it does
- Listens on 127.0.0.1 only.
- With no folder named, serves the current folder if it has
.specs/. Otherwise it starts with no project open, and you open one from the App. With--read-onlyit exits instead. - A named folder without
.specs/is served so you can set it up from the App. - Reopens your remembered projects after the named ones, up to 20 projects in all.
- Removes staging folders left by an interrupted setup.
- Prints the App’s URL, each project’s
.specs/path, the MCP endpoint, and the line for Claude Code’s.mcp.json. Under a project with Cursor’s old rules file,.cursor/rules/project.mdc, it adds a line saying how to fix it (see specpilot migrate).
What it writes
From the App: onlyplanning/tasks.md, planning/tasks-archive.md and the specpilot-* command files, plus the new files of a setup and the fixes for Cursor’s old rules file. It also remembers your projects in ~/.specpilot/projects.json, and each project where you chose Keep both for Cursor’s rules files in ~/.specpilot/cursor-rules.json.
With --read-only, nothing.
Stopping it
Press Ctrl+C in its terminal, or runspecpilot serve --stop (add --port if it isn’t on 4321). --stop exits with 1 when no App is found. An App started with --read-only stops only with Ctrl+C.
If the port is in use, serve says so and suggests the next one.