gateway
Skill1 starsChanged 42 days ago0BSDView on GitHub
This skill multiplexes other stdio MCP servers through gateway. Use when you want one MCP endpoint that proxies tools from many configured servers, with lazy spawning and per-server stats.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- theopenco/llmgatewaytheir own version, first seen Nov 6, 2026
- simota/agent-skillstheir own version, first seen Oct 23, 2026
- kurtosis-tech/kurtosistheir own version, first seen Oct 8, 2026
- joelhooks/joelclawtheir own version, first seen Oct 8, 2026
- Tght1211/lan-proxy-gatewaytheir own version, first seen Oct 8, 2026
- KaryawanSurga/tokensaver-plugintheir own version, first seen Oct 8, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- theopenco/llmgateway★ 1.7ksame name
- kurtosis-tech/kurtosis★ 558same name
- Tght1211/lan-proxy-gateway★ 543same name
- simota/agent-skills★ 96same name
- joelhooks/joelclaw★ 65same name
- INERATE/atelier★ 2same name
- KaryawanSurga/tokensaver-plugin★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository75 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agentsSkill
- android-connectivitySkill
- android-devSkill
- android-mediaSkill
- android-performanceSkill
- anti-hallucinationSkill
- blue-teamingSkill
- bug-huntingSkill
- cdnSkill
- ci-securitySkill
- contextSkill
- coolifySkill
- dep-versionsSkill
- devopsSkill
- devsecopsSkill
- dockerSkill
- electronSkill
- firecrackerSkill
- ghSkill
- goSkill
- i18nSkill
- k3sSkill
- lxmfSkill
- lxmfySkill
- mcp-toolkitSkill
- media-stackSkill
- mediawikiSkill
- memorySkill
- meshchatxSkill
- mesh-vpnSkill
- micronSkill
- microservices-haSkill
- nebulaSkill
- no-slopSkill
- no-trickerySkill
- opensubsonicSkill
- osintSkill
- owaspSkill
- pnpmSkill
- podmanSkill
- project-scaffoldSkill
- python-packagingSkill
- qaSkill
- releaseSkill
- research-methodsSkill
- reticulum-goSkill
- reticulumSkill
- rngitSkill
- rnsSkill
- rustSkill
- sastSkill
- shipped-textSkill
- stylometrySkill
- surrealdb-cliSkill
- surrealdb-docsSkill
- surrealdb-jsSkill
- surrealdb-pythonSkill
- surrealdbSkill
- surrealdb-vectorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Call servers to verify children, tools for the index, and invoke {name: "<server>.<tool>", arguments: {...}} to proxy.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
When to use this skill
- You want one MCP config entry instead of N server entries.
- You need a unified tool index across several stdio servers.
- You want daemon/socket or SSE access to a set of MCP servers.
How to use
- Build gateway:
cd mcp/gateway && go test ./... && go build. - Point
GATEWAY_CONFIGat an mcp.json (default~/.config/mcp/mcp.json) listing the child servers. - Call
serversto verify children,toolsfor the index, andinvoke {name: "<server>.<tool>", arguments: {...}}to proxy.
Examples
- "List which child servers are reachable and their tool counts."
- "Invoke
context.file_outlineon internal/docs/docs.go." - "Show per-server call stats after a session."
gateway
gateway multiplexes stdio MCP servers behind five tools. Children spawn lazily on first use, calls are serialized per child, and a failed transport gets one respawn. Child stderr is discarded.
Configuration
GATEWAY_CONFIG: path to the MCP config JSON. Default~/.config/mcp/mcp.json. Entries with onlyurl,disabledflags, or a self-reference to gateway are skipped.--socket(default$XDG_RUNTIME_DIR/gateway.sockor/tmp/gateway-$UID.sock),--attach(stdio-to-socket shim that auto-spawns the daemon),--daemon,--read-only,--http(serve HTTP only onHTTP_PORT, no stdio),--health-check(GET /healthz onHTTP_PORT, exit 0 on success),--log(append operational log to a file, defaultGATEWAY_LOG).HTTP_PORTexposesGET /,GET /healthz,GET /sse, andPOST /messages?session=<id>.
Daemon mode: socket chmod 0600, log at <socket>.log, socket
removed on SIGTERM/SIGINT.
Tool inventory
| tool | args | purpose |
servers | none | children + reachability + tool count |
tools | server (opt) | compact <server>.<tool> index |
gateway_stats | none | per-server calls, errors, spawns, avg_ms, last_call, tool count |
tool_schema | name | full schema for one <server>.<tool> |
invoke | name, arguments | proxy a tools/call to a child |
Notes and quirks
- Gateway tools carry no Write flag, so
--read-onlydoes not blockinvokeof a child's mutating tool directly. Protection relies on children inheritingMCP_READ_ONLYvia the environment. SetMCP_READ_ONLY=1in the gateway environment before relying on it. - All
/ssesessions share one server and one child pool process-wide. Concurrent sessions cap at 256 and each POST body at 1 MiB. - Response matching is by
"id":Nsubstring over up to 10000 lines with no read deadline. A hung child stalls until the server-side 30 s tool timeout fires. - Child
tools/listis cached per child. A transport failure clears the cache, so a respawned child re-advertises its tools.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

