MCPDiet Documentation
https://mcp-server.runglab.dev/mcp — dev.runglab/devtools) with zero setup. Note: GitHub repository mirror installs are temporarily paused during GitHub Support review; email [email protected] if you need an offline CLI tarball or .vsix bundle.
1. Quickstart: Zero-Install Web Analyzer & Remote MCP
Analyze any mcp.json or tools/list JSON instantly in the live web calculator, or connect your IDE directly to our Official MCP Registry remote server (dev.runglab/devtools) for live profile_mcp_tools checks:
# Connect zero-key Official MCP Registry remote server (dev.runglab/devtools)
npx -y mcp-remote https://mcp-server.runglab.dev/mcp
# Local CLI syntax (once installed locally or from offline tarball)
# Auto-discover Claude Code, Cursor, VS Code, Windsurf, and Claude Desktop
mcpdiet audit
# Audit a specific file with custom daily tool-turn volume
mcpdiet audit ./mcp.json --calls-per-day 200
# Live-probe stdio or HTTP MCP servers via tools/list for exact schema size
mcpdiet audit ./mcp.json --live
# Emit JSON for scripts
mcpdiet audit --json
2. Activating MCPDiet Pro
After purchasing a lifetime license via Creem.io ($15) or Afdian (¥79), activate your key once per machine (up to 3 machines):
mcpdiet activate YOUR-LICENSE-KEY
mcpdiet status
Your local license state and 30-day signed offline grace token are stored at ~/.mcpdiet/license.json.
3. Canonical mcp.profiles.yaml Schema (Pro)
Generate a starter file automatically from your existing IDE configs (hardcoded secrets are automatically converted into ${env:VAR} references):
mcpdiet init
version: 1
active: minimal
targets:
- claude-code
- cursor
- vscode
- windsurf
- claude-desktop
servers:
filesystem:
command: npx
args: ["-y", "@modelcontextprotocol/[email protected]", "."]
postgres:
command: npx
args: ["-y", "@modelcontextprotocol/[email protected]", "${env:DATABASE_URL}"]
github:
command: npx
args: ["-y", "@modelcontextprotocol/[email protected]"]
env:
GITHUB_PERSONAL_ACCESS_TOKEN: "${env:GITHUB_TOKEN}"
profiles:
minimal:
description: "Lean everyday coding (~4.6k tokens)"
servers: [filesystem]
coding:
description: "Code + Database + GitHub (~21.8k tokens)"
servers: [filesystem, postgres, github]
4. Switching Profiles, Syncing & Restoring (Pro)
# Switch active profile and sync immediately to all configured IDEs
mcpdiet use minimal --sync
# Sync to specific IDE targets only (creates atomic timestamped backup first)
mcpdiet sync --ide cursor,vscode,claude-code
# Preview changes without writing to disk
mcpdiet sync --dry-run
# List or restore prior atomic backups
mcpdiet restore --list
mcpdiet restore
Secret-Safe Guarantee: mcpdiet sync validates that referenced ${env:VAR} values exist in .env.local or your environment while keeping placeholders intact on disk. It refuses to write raw plaintext API keys into mcp.json.
5. Security Rules & GitHub Actions SARIF Gate
- MCP001 (Critical) — Hardcoded plaintext secrets (Anthropic, OpenAI, GitHub, Slack, Google, AWS, Stripe, Bearer tokens, DB URIs with passwords).
- MCP002 (High/Medium) — Unpinned
npx -y pkg@latest, unpinneduvx/dockertags, or cleartext remotehttp://endpoints. - MCP003 (Medium/Low) — Duplicate or conflicting MCP server definitions drifted across IDEs.
- MCP004 (Critical/High) — Invisible Unicode Tag smuggling (
U+E0000–U+E007F), Trojan Source BiDi overrides, zero-width chars, and prompt-injection tool poisoning. - MCP005 (High/Medium/Low) — Context token bloat alerts (>10k per server, >20k or >45k workspace total).
# Local Pro CLI SARIF export
mcpdiet scan --sarif mcpdiet.sarif --fail-on high
6. CI Gate & Remote MCP Verification
While GitHub repository mirror access is temporarily paused, use our zero-install web analyzer, our Official MCP Registry remote server (dev.runglab/devtools), or our $49 Done-For-You Optimization PR where we wire deterministic token-budget & SARIF 2.1.0 CI checks directly into your workflow:
name: MCPDiet PR Audit
on: [pull_request]
permissions:
contents: read
pull-requests: write
security-events: write
jobs:
mcpdiet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run local MCPDiet SARIF gate
run: mcpdiet scan --sarif mcpdiet.sarif --fail-on high
- uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: mcpdiet.sarif
7. VS Code & Cursor Extension (.vsix)
Connect dev.runglab/devtools directly in VS Code / Cursor via https://mcp-server.runglab.dev/mcp, or email [email protected] for the self-contained mcpdiet-vscode-1.2.0.vsix bundle while release mirrors sync:
code --install-extension mcpdiet-vscode-1.2.0.vsix
# or in Cursor:
cursor --install-extension mcpdiet-vscode-1.2.0.vsix
Then open Command Palette (Ctrl/Cmd+Shift+P) for:
MCPDiet: Audit Workspace MCPMCPDiet: Switch ProfileMCPDiet: Activate Pro License
8. Official MCP Registry Reference Server (dev.runglab/devtools)
Need a live 100/100 Grade A reference endpoint to test against? Connect directly to RungLab’s zero-key Remote Streamable HTTP server (v1.2.0 — 7 tools, 1,789 schema tokens, mcptry 97/100) at https://mcp-server.runglab.dev/mcp (listed on registry.modelcontextprotocol.io) or copy client configs from the MCPDiet homepage.