Skip to content

MCP server

Run prodc as an MCP server so an agent in any MCP client (Claude Code, Cursor, VS Code, Codex) can read and edit the board through tools. It wraps the same commands as the CLI.

Install

  1. Register the server in your repo. This writes .mcp.json (Claude Code):
prodc mcp install
  1. Commit .mcp.json. Every agent that opens the repo loads the server.

  2. Start a new agent session. Claude Code asks once to approve a project server.

The command written is uvx --from "prodc[mcp]" prodc mcp serve. It runs the latest prodc in its own environment, so it does not clash with other tools in your venv.

Other clients:

prodc mcp install --client cursor    # .cursor/mcp.json
prodc mcp install --client vscode    # .vscode/mcp.json
prodc mcp install --client codex     # prints the codex command and TOML; writes nothing
prodc mcp install --scope user       # prints `claude mcp add --scope user ...`; writes nothing

Pin the project's own prodc instead of the latest:

prodc mcp install --command "uv run prodc mcp serve"

This needs prodc[mcp] in the project's dev dependencies (uv add --dev 'prodc[mcp]'). prodc is a dev tool: your package does not import it, so it never goes in runtime dependencies.

What install does

  • It changes only the prodc entry. Every other server and key stays as it was.
  • It prints the diff. --dry-run prints it and writes nothing.
  • A second run prints unchanged.
  • A file it cannot parse (for example JSON with comments) is refused, exit 2. Add the entry by hand.
  • prodc mcp uninstall removes only the prodc entry. It deletes the file only when nothing else is left in it.

Tools

Read tools (marked read-only for the client):

Tool CLI
status prodc status (client, goal, tag, only_must, include_drafts, stale_days)
show prodc show <id>
plan prodc plan
lint prodc lint
inbox prodc inbox
brief prodc brief <client>
suggest prodc suggest (never applies)
review prodc review (lists drafts)
dupes prodc dupes

Write tools:

Tool CLI
add_need prodc add need (kind: secondary or assumption only)
add_decision prodc add decision
set prodc set <id> key=value
capture prodc capture (kind: secondary or assumption only)
promote prodc review --promote

Issue register tools (docs/issues):

Tool CLI
issue_board prodc issue board (read)
issue_next prodc issue next (read): the ready issue to work on next, or the skip reason; takes owner, limit
issue_list prodc issue list (read): each issue with its needs and their state
issue_show prodc issue show (read)
issue_check prodc issue check (read)
issue_file prodc issue file (needs: the need ids it serves; an unknown id is refused)
issue_update prodc issue update (owner: an in-progress issue needs one; none clears it)
issue_close prodc issue close (warns when a linked need is not DELIVERED)

Claiming an issue is not here. A claim is a lease between running agents, which cabildo keeps.

Every tool returns {exit_code, data, notices}. data is the command's --json output. notices is stderr. Exit 1 (a gate failed) is a normal result. Exit 2 is a tool error.

Every write returns sha_before and sha_after. Pass the last sha_after as expect_sha to the next write: it is refused if the file changed in between.

What is not exposed

  • capture with primary. A primary source is a person's own words. The person adds it by editing the YAML.
  • accept, outcome, attest. They record a person's judgement.
  • withdraw, reinstate, revise, add principle, add role, review --drop. Product decisions stay with a person on the CLI.
  • sync. It runs the shell commands in [callbacks].

The playbook

The server sends short instructions with the two rules. The full agent playbook (prodc agent) is the playbook prompt and the prodc://playbook resource.

Run it by hand

prodc mcp serve

It speaks MCP on stdin and stdout, so a terminal shows nothing. A bare prodc mcp prints help.