Skip to main content

Crate rtk_mcp

Crate rtk_mcp 

Source
Expand description

rtk-mcp — the plugin’s MCP server, spoken over stdio.

Antigravity launches this binary and talks line-delimited JSON-RPC to it on stdin/stdout. All the judgement lives in rtk_mcp_agy; this file only moves bytes and spawns the two external processes — rtk to rewrite a command, and a shell to run it.

stdout belongs to the protocol: one JSON response per line, nothing else.

Functions§

main 🔒
rtk_rewrite 🔒
Ask rtk for a token-optimized form of command.
run_command 🔒
Run command in cwd through a shell.