The CLI supports transport startup and persistent registry root management.

Commands

CommandDescription
coding-mcp init [folder]Scan a directory for projects and write the registry. Defaults to the current working directory.
coding-mcp add <folder>Add a new root directory to the project registry and rescan.
coding-mcp remove <folder>Remove a root directory from the registry and rescan remaining roots.
coding-mcp serve [options]Start the MCP server. Accepts --transport, --host, --port, and --mode flags.

Root management

init resets roots to one folder and performs a full scan:
coding-mcp init /projects
add appends a root and rescans:
coding-mcp add /srv/repos
remove deletes a root and rescans remaining roots:
coding-mcp remove /srv/repos
All operations persist to the registry JSON file.

Serve options

coding-mcp serve --transport http --host 0.0.0.0 --port 3000 --mode streamable
FlagDescription
--transport <http|stdio>Transport to use. Default is stdio.
--host <host>Bind address for HTTP mode. Default is 127.0.0.1.
--port <port>Port for HTTP mode. Default is 3000.
--mode <streamable|sse>HTTP transport mode.
--projects-root <path>Add a project root (repeatable).
--config <path>Path to a JSON or YAML config file.

Structured output

init, add, and remove return structured JSON payloads so agents can parse results programmatically.