Repository pathpackages/cli/src/agent-mcp.ts
Can run independentlyYes, when the host/runtime requirements are present
Invocation methodAsk the compatible host for this named function or use the documented command/tool
Installation / activationInstall the parent repository and enable only this required component
Purpose
Expose compression, retrieval, statistics, and TOON operations to an MCP-compatible host.
Task categories
input compressionoutput compressionusage analysis
Project phases
setupimplementationdiagnostics
Routing behavior
Trigger conditions
- The request specifically concerns MCP.
- The request specifically concerns recovery.
Anti-trigger conditions
- Every byte must reach the provider unchanged
- Cannot run a local proxy or inspect its request-routing behavior
Inputs & outputs
Required inputs
A concrete, bounded request plus the files, data, account, or project context explicitly required by this component.
Produced outputs
The component's documented artifact, answer, command result, graph record, media deliverable, or external action. Review it before relying on it.
Dependencies & services
Dependencies
Node.js; optional Chrome; Go/pnpm only when building from source
Required tools
Node.js 18+ plus downloaded native binaries; Go and pnpm for source builds
Required services
Selected LLM provider; Chrome only for browse mode
Compatibility
Platforms
macOS, Linux, Windows
Agents / IDEs
CLI, local proxy, MCP server, Agent Skill, local report UI
Limitations
- Proxy mode changes request content and therefore requires careful evaluation
- Savings depend on payload shape
- Provider and agent compatibility can change
Security notes
Proxy mode handles provider requests and authentication paths. Review configuration, bind locally, protect the recovery store, and test with non-sensitive traffic first.
Evidence
- first-party source · Component name, path, and purpose were mapped from the repository's current first-party files.