{"repo":"postrv/forgemax","free":true,"listed":false,"github":"https://github.com/postrv/forgemax","clone":"git clone https://github.com/postrv/forgemax.git","description":"Code Mode inspired local sandboxed MCP Gateway - collapses N servers x M tools into 2 tools (~1,000 tokens)","language":"Rust","stars":150,"topics":["ai-agents","ai-tools","gateway","mcp","mcp-gateway","mcp-server","mcp-servers","mcp-tools","tool-calling","tool-use"],"license":null,"category":"mcp-servers","readme_excerpt":"Forgemax Code Mode MCP Gateway — collapses N servers x M tools into 2 tools ( 1,000 tokens). Instead of dumping every tool schema into the LLM's context window, Forgemax exposes exactly two MCP tools: - search — query a capability manifest to discover tools (read-only, sandboxed) - execute — run JavaScript against the tool API in a sandboxed V8 isolate Additional sandbox APIs (the MCP surface stays at exactly 2 tools): - forge.readResource(server, uri) — read MCP resources from downstream servers - forge.stash — session-scoped key-value store for sharing data across executions - forge.parallel(calls, opts) — bounded concurrent execution of tool/resource calls The LLM writes JavaScript that calls through typed proxy objects. Credentials, file paths, and internal state never leave the host — the sandbox only sees opaque bindings. TypeScript definitions ( forge.d.ts ) are compiled into the binary and served in MCP server instructions, giving LLMs full type awareness. Forgemax's Code Mode approach draws inspiration from Cloudflare's sandbox tool-calling pattern — their implementation of sandboxed code execution for MCP tool orchestration is excellent and well worth studying. We encourage supporting their work. Why Traditional MCP Forgemax Code Mode --- --- 76 tools = 15,000 tokens of schema 2 tools = 1,000 tokens 5-10 sequential round-trips 1 execute() call with chaining Every new tool widens the context Tool count is invisible to the LLM LLMs are trained on billions of lines of ","default_branch":null,"files":null,"tree":[],"storefront":"/r/postrv","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/postrv/forgemax/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}