NewsCrawler.org

cell-mcp: a Go gateway that auto-discovers MCP servers and passes data by reference

cell-mcp: a Go gateway that auto-discovers MCP servers and passes data by reference
Image: news.hada.io

The author built cell-mcp, a single Go binary of about 15MB with no database or extra runtime, to solve two problems: managing a separate mcp.json for each client and passing large tool outputs through the LLM. Started with -auto, it finds MCP[1] servers on localhost every 3 seconds, on the same IPv4 /24 network, and on public ports of Docker containers, then merges them into one endpoint (/mcp and /sse). cell-mcp nodes on the same LAN find each other through mDNS[2].

The gateway also provides a Zero-Copy[3] data plane without changes to the original servers. Tool outputs over 4KB are stored in memory, and the LLM receives only a schema summary, two sample rows and a cell-ref:// handle. When the model passes that handle to the next tool, the gateway injects the original data byte for byte, and filtering or sorting can run inside the gateway through cell__ref_transform or cell__ref_pipe.

In a local test with a mock server that produced 3,000 rows (476KB) of JSON, the LLM received only a handle card of about 900B, and the data matched the original by SHA-256 at 100%. The author lists limits: the gateway cannot take over stdio[4] processes that another client already started, remote servers that require authentication are not detected by port scan, and under default WSL2 NAT mDNS traffic does not cross between Windows and WSL. The author asks for feedback from people who use several MCP servers together.

Read the original news.hada.io

Sources

  • KRGeekNews KO

    Show GN: cell-mcp - MCP 서버 자동 탐색과 Zero-Copy 데이터 전달을 지원하는 단일 Go 게이트웨이

    2 points0 comments

Published: First seen: Читать по-русски

Open as a page