Repository navigation
mcp-slim: Zero-dependency MCP stdio proxy to cut Goose extension schema & output tokens by 50%-98% #13448
SalyyS1
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
When running Goose with several MCP extensions enabled (GitHub, filesystem, databases, Jira/Linear), the advertised
tools/listschemas and rawtools/calloutputs can quickly consume 10,000 to 20,000+ context tokens per turn.We built mcp-slim, a zero-dependency Python 3.10+ stdio proxy that wraps any MCP extension command in Goose (
mcp-slim run -- <server-cmd>):What it does for Goose MCP Extensions
-50%Schema Token Reduction (or-98.7%with--lazyBM25 Discovery): Inlines$defs/$refpointers, strips JSON Schema boilerplate, and optionally replaces 50+ static tool schemas with 2 lightweight on-demand search/call meta-tools (168tokens total).*_url,node_id), compacts JSON/JSONL/Markdown tables, and applies head+tail log elision so large grep/build/API results never overflow the session context."10" -> 10) andsnake_case/camelCaseor singular/plural parameter typos.--allow-tools/--deny-tools&SecretGuard: Blocks disallowed tool calls and redacts leaked API keys (sk-ant-,ghp_,AKIA), URL query secrets (?token=), and<IMPORTANT>prompt injections in real time.Repository: https://github.com/SalyyS1/mcp-slim
If
mcp-slimhelps keep your Goose sessions fast and lean, please consider giving SalyyS1/mcp-slim a star on GitHub!All reactions