@rmotgi/compile-mcp
v0.2.4
Published
MCP server that compiles repeat LLM work out of the agent loop. Logs receipts, identifies codifiable patterns, and routes hot calls to deterministic functions or local LLMs.
Downloads
608
Maintainers
Readme
@compile/mcp
MCP server that compiles repeat LLM work out of the agent loop.
Install
Claude Code:
claude mcp add compile -- npx @compile/mcpCursor (cursor.json):
{ "mcpServers": { "compile": { "command": "npx", "args": ["@compile/mcp"] } } }What it does
Plug Compile into an agent's traffic. It:
- Logs every LLM call as a receipt (
compile.observe_call). - Templates and clusters the receipts; scores each cluster on three axes
(schema stability, determinism, economic value) and surfaces ranked
codify candidates (
compile.list_codify_candidates). - When the agent calls
compile.find_function, returns a three-state lookup: positive (run the codified function), negative (uncodifiable — stay on the frontier model), or unknown (queue for synthesis). - For unknowns, the agent can call
compile.request_synthesisto receive a synthesis spec and run codegen on its own LLM keys, thencompile.submit_synthesisto validate and write to Vault.
The codegen never runs on Compile's API key. Customer prompts and traces never leave the customer's trust boundary.
Tools
compile.observe_callcompile.find_functioncompile.run_codifiedcompile.list_codify_candidatescompile.request_synthesiscompile.submit_synthesiscompile.estimate_savings
License
MIT
