MCP Diet — Development skill for Claude Code
Zero-dependency stdio MCP proxy & runtime context firewall: deterministic tools/list tree-shaking, oversized tools/call crash guard, and live secret redaction for Claude Code, OpenAI Codex, and Cursor.
How to install MCP Diet
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open FramY2/mcp-diet and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What MCP Diet does
Zero-dependency stdio MCP proxy & runtime context firewall: deterministic tools/list tree-shaking, oversized tools/call crash guard, and live secret redaction for Claude Code, OpenAI Codex, and Cursor.
Alternatives in Development
- Om Tidy — Self-maintenance pass — acts on every hygiene flag: archives completed work, groups loose clusters, splits ove 4.6k ★
- MCP Proxy — A bridge between Streamable HTTP and stdio MCP transports 2.4k ★
- Obsidian MCP Server — Read, write, search, and surgically edit Obsidian vault notes, tags, and frontmatter via MCP 686 ★
README
mcp-diet (`@framy2/mcp-diet`)
**Zero-dependency stdio MCP proxy & runtime context firewall** for **Claude Code**, **OpenAI Codex CLI**, and **Cursor**.
Wrap any stdio MCP server in `.mcp.json`, `~/.claude.json`, or `.codex/config.toml` to tree-shake bloated `tools/list` schemas, prevent oversized `tools/call` stdio crashes (`anthropics/claude-code#105703`), and redact leaked secrets before they enter the model's context window.
Companion runtime proxy to **[`FramY2/ctxwise`](https://github.com/FramY2/ctxwise)** (`@framy2/ctxwise`).
⚡ Why `mcp-diet`?
- Deterministic
tools/listTree-Shaking (--allow,--deny,--read-only,--max-desc):- Filters
tools/listresponses before the agent sees them and deterministically sorts tools by name so prompt prefix caching never invalidates. --read-onlykeeps only tools withannotations.readOnlyHint === trueor safe read-only names (get_*,list_*,read_*,search_*).--max-desccompacts verbose tool and parameter descriptions without mutating JSON schema types.
- Filters
- Oversized
tools/callCrash & Context-Blowout Guard (--max-result-kb 512):- Prevents Claude Code's
>= 8 MiBstdio buffer disconnect crash (anthropics/claude-code#105703) and 100k-token single-turn blowouts by spilling oversizedtools/calloutputs to a local file and returning a structured preview + file path.
- Prevents Claude Code's
- **Live
tools/callSecret Redac
Related Skills
Ultramod
A mod pack for Claude Code: context and limits HUD, a guard with undo, secret redaction, and a receipt for eve
Ctxwise
Multi-agent context firewall, MCP schema tree-shaker, and token budget guard for Claude Code (CLAUDE.md), Open
Swarmweaver
Deterministic Multi-Agent DAG Orchestrator, File-Scope Lease Conflict Guard & Crash-Safe Checkpoint Resume Eng
MCP Daemon Diet
One shared MCP daemon per machine instead of a stdio copy in every agent session: recipe, autostart templates
Memanchor
Persistent memory for coding agents (Claude Code, Cursor, Codex) over MCP: memories anchored to files and flag
Aegis Trace Export
Export activity-log traces with PII / secret redaction for safe sharing. Use this skill whenever the user want
Related Agents
Redaction Auditor
Expert auditor for secret-redaction code in the claude-handoff project. Use PROACTIVELY whenever src/core/reda
Workflow Author
Use this agent when adding or reviewing a new .claude/commands/ .md workflow in this repo. Checks frontmatter
Lms Security Scanner
Autonomous security scanner for the LMS-TMS. Checks TLS, security headers, DB-port internet exposure, firewall