Expand description
rtk-cc-mcp — the plugin’s MCP server, spoken over stdio.
Claude Code launches this binary via .mcp.json and talks JSON-RPC to it on
stdin/stdout. Two rules follow from that, and both are easy to get wrong:
- stdout belongs to the protocol. Every log line goes to stderr. A
stray
println!corrupts the stream and the server appears to hang. - The process is long-lived. It stays up until Claude Code closes the
pipe, so
waiting()is what keeps it alive.
The tools here are rtk’s analytics surface. Three of them are read-only.
The fourth, rtk_proxy, executes — see its doc comment.
Structs§
- Check
Request - Arguments for the
rtk_checktool. - Discover
Request - Arguments for the
rtk_discovertool. - Gain
Request - Arguments for the
rtk_gaintool. - Proxy
Request - Arguments for the
rtk_proxytool. - RtkServer
- The MCP server. Holds the generated tool router plus the resolved settings.
Functions§
- bad_
params 🔒 - Turn an argument-building error into an MCP invalid-params error.
- main 🔒