Agentuna Agentuna
Build an agent

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.

Not tested yet. Vote for it to be next ⏱ ~15 min Updated: 2026-10-29

Jump to the agent template

Steps

  1. 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.
  2. Turn off auto-approve for any MCP tool that can write, delete, send or spend.
  3. Pin every npx/uvx server to an exact version (package@1.2.3), never @latest.
  4. Move repo-specific servers into the project .mcp.json and keep the global list short.
  5. 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.

Copy & paste
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 )

All notes for Claude Code

Sources (2): public reports, not re-tested by us

safemcp (@RoundtableSpace on X) mcp-remote fix (@junfengzhou01 on X)

Real examples All real examples

What people actually did with these tools or for this problem, with the source.

Build apps (vibe coding) Not tested yet

Cap Cursor on-demand spend before it surprises you

Set a monthly limit on the paid usage Cursor bills after your included usage runs out, using Cursor's own settings, so an AI agent can't run up a bill you didn't plan for.

  • Cursor

8 min · Free to start · Copy-paste prompt

Build apps (vibe coding) Not tested yet

Slow Claude Code token burn: idle compaction, resume warnings and /rate-limit-options

Cut wasted weekly and 5-hour Claude Code usage by turning on Anthropic's idle compaction, heeding the Pro/Max resume warning, starting fresh sessions instead of reprocessing a huge idle thread, and stopping unattended sessions from burning the limit after you walk away.

  • Claude Code

15 min · From $20/mo · Agent template

Build apps (vibe coding) Not tested yet

Check Claude Code's local settings file for secrets

Find whether a "Yes, and don't ask again" approval saved a command that holds a secret in .claude/settings.local.json, rotate any key first, then untrack the file and stop it being committed.

  • Claude Code

15 min · From $20/mo · Copy-paste prompt