Recipe · Build apps (vibe coding)
MCP config safety check: auto-approve, unpinned packages and the ~/.mcp-auth re-login loop
Audit the MCP servers your coding agents load, close the risky defaults, and stop mcp-remote from asking you to log in on every reconnect.
Steps
- Run the safemcp audit CLI (MIT, see sources) per its README; it checks Claude Code, Cursor, Codex, VS Code and Devin Desktop (formerly Windsurf) configs for auto-approve, unpinned npx/uvx packages and risky instruction files.
- Turn off auto-approve for any MCP tool that can write, delete, send or spend.
- Pin every npx/uvx server to an exact version (package@1.2.3), never @latest.
- Move repo-specific servers into the project .mcp.json and keep the global list short.
- Fix the mcp-remote re-login loop: tokens cache in ~/.mcp-auth, so make sure that folder exists and your user can write to it, and keep the client id unchanged.
Agent template
Replace anything in { } with your details.
Audit my MCP setup. Read ~/.claude.json, .mcp.json, ~/.cursor/mcp.json and ~/.codex/config.toml if present. List every server with: scope (global/project), version pinned (yes/no), auto-approve on (yes/no), and what it can write or spend. Then check ~/.mcp-auth exists and is writable (ls -ld ~/.mcp-auth). Propose the edits; do not apply them until I say yes. Expected output
An MCP setup with no silent auto-approve, pinned server versions, per-project scope, and one OAuth login that sticks.
Gotchas
- ⚠ safemcp is days old: read its code before you run it, like any new CLI with access to your configs.
- ⚠ If ~/.mcp-auth is not writable or the client id changes, every reconnect starts a new OAuth flow (user-reported fix, not our test).
Where these tools break
- The limit, from Claude Code’s page: Claude Code draws from the same pool as Claude chat: Pro ($20/mo) and Max ($100/mo, 5x Pro) each have a 5-hour session cap plus a weekly cap, while Ultra ($200/mo, 10x Pro… (support.claude.com, checked )
- Known problem with Claude Code: Fake extension copies on Cursor's marketplace (29 Oct) (, cursor.com)
- Watch out with Claude Code: Claude Code is not on the free Claude plan; it uses your Pro or Max usage limits, and a batch of photos burns through them faster than text. Do 30 to 50 receipts at a time. From a recipe
- Real example with Claude Code: Burned a 5-hour Claude Max quota in 30 minutes via subagent file reads vs Spotify's 90% token-reduction harness. The catch: Self-reported developer post on X (24 Oct 2026) and architectural summary of Spotify's engineering setup; token savings depend on codebase size and subagent… (source dated )
Smithery Hosted MCP Proxy shuts down Oct 31, 2026: migrate your .mcp.json in 15 minutes Was your computer hit by the fake Claude Code extension in Cursor? A 1-minute check Check whether Postman auto-installed agent plugins (issue #14370) How to rotate and check the tokens your AI agents use
Sources (2): public reports, not re-tested by us
safemcp (@RoundtableSpace on X) mcp-remote fix (@junfengzhou01 on X)