mcp-slim: Cut MCPToolkit schema & output tokens by 50%-98% and normalize schemas for CAMEL agents #4517
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 multi-agent CAMEL workflows with
MCPToolkit, connecting enterprise MCP servers (GitHub, Notion, databases) can inject 10,000+ tokens of JSON Schema definitions per agent turn and trigger strict schema validation errors when tools contain$defs/$ref,["type", "null"], or rootanyOf.We built mcp-slim, a zero-dependency Python 3.10+ stdio proxy that sits between
MCPToolkitand any stdio MCP server:-50%tokens) &--lazyBM25 Discovery (-98.7%tokens)$defs/$refinlining & rootanyOf/oneOfflatteningper_page -> perPage), andSecretGuardcredential redactionRepository: https://github.com/SalyyS1/mcp-slim
If this helps your CAMEL multi-agent pipelines, please consider starring SalyyS1/mcp-slim on GitHub!
All reactions