How calvinchan999/mcp-toon-wrapper works
This small runtime is an stdio MCP proxy: it starts a configured upstream server, forwards tool discovery and calls, and converts JSON-shaped results to TOON text. Tool inputs and ordinary/non-text content pass through; upstream resources and prompts are not proxied. All implementation is in src/main.ts, so the graph shows its distinct runtime responsibilities without build or test machinery.
Main entry points: main.ts Proxy server
Components 6
MCP proxy
- Proxy server
src/main.ts - Tool dispatch
src/main.ts - Result conversion
src/main.ts
Other components
- MCP client
- Upstream MCP server
- TOON encoder
Connections 8
- MCP client → Proxy server: sends stdio requests
src/main.ts - Proxy server → Upstream MCP server: connects stdio
src/main.ts - Proxy server → Tool dispatch: registers handlers
src/main.ts - Tool dispatch → Upstream MCP server: lists tools
src/main.ts - Tool dispatch → Upstream MCP server: calls tools
src/main.ts - Tool dispatch → Result conversion: converts results
src/main.ts - Result conversion → TOON encoder: encodes JSON
src/main.ts - Proxy server → MCP client: returns tool results
src/main.ts