Documentation
¶
Overview ¶
Command mcpdoc prints the current MCP tool/resource/prompt list as markdown, generated from source rather than hand-maintained.
Purpose: CLI-R15 requires the wiki's tool list to be "generated from code
rather than hand-listed" so it can't silently drift the way the old eleven-tool table did. This is a text scanner over the two files that physically hold every mcp.NewTool/mcp.NewResource/mcp.NewPrompt call — the same two files tools/parity/mcptools.go already hardcodes for its own coverage check — plus mcp_resources.go and mcp_prompts.go for the resource/prompt tables.
Inputs: cmd/commands/mcp.go, cmd/commands/mcp_sentry.go (tools),
cmd/commands/mcp_resources.go (resources), cmd/commands/mcp_prompts.go (prompts).
Outputs: markdown tables on stdout — paste into the relevant PROSE block
in .github/wiki/cmd-mcp.md by hand (wikigen owns the FLAGS block only; PROSE blocks are for a human to fill in, generated or not).
Constraints: read-only; writes nothing.
Click to show internal directories.
Click to hide internal directories.