Repository navigation
mcp-slim: Zero-dependency MCP stdio proxy for Mem0 agents (-50% to -98% schema tokens & SecretGuard) #7902
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 Mem0 community,
When building memory-augmented agents with Mem0 and Model Context Protocol (MCP) servers, keeping the active context window lean and preventing raw credentials from leaking into long-term memory stores are both critical.
We built mcp-slim, a zero-dependency Python MCP stdio proxy and CLI token profiler:
Why it pairs well with Mem0 + MCP agents
--redact-secrets):SecretGuardscrubs GitHub tokens (ghp_*), OpenAI/Anthropic keys (sk-*), AWS keys (AKIA*), JWTs, PEM keys, andhttps://user:pass@hostURLs across bothtools/callarguments and outputs before the agent or memory layer stores the conversation turn.tools/listschemas, flattens$ref/$defspointers (--flatten-schemas), and offers BM25 on-demand tool discovery (--dynamic-toolsets) so tool definitions do not crowd out retrieved Mem0 memories.--allow-tools,--deny-tools): Enforces glob filters on bothtools/listandtools/callexecution.Example usage
Repository & benchmarks: https://github.com/SalyyS1/mcp-slim
All reactions