Help us shape the future of Go! Take the 2026 Go Developer Survey

mcpdoc

command
v1.4.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL