Skip to main content

Crate rtk_cc_mcp

Crate rtk_cc_mcp 

Source
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:

  1. stdout belongs to the protocol. Every log line goes to stderr. A stray println! corrupts the stream and the server appears to hang.
  2. 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§

CheckRequest
Arguments for the rtk_check tool.
DiscoverRequest
Arguments for the rtk_discover tool.
GainRequest
Arguments for the rtk_gain tool.
ProxyRequest
Arguments for the rtk_proxy tool.
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 🔒