Dev builds mcp-warden so AI agents can request actions instead of holding plaintext API keys

Relevant_Mousse_9117 · reddit · 2026-10-28

After finding GitHub and Stripe API keys in plaintext in /.claude.json — readable by any agent with file access — a developer built mcp-warden, an open-source local MCP server in Rust. Keys live in the OS keychain; agents never receive tokens and instead request actions, which are checked against an allow-list, credential-injected, and returned as results only. Risky actions trigger Telegram approve/deny. Key lesson: while building it, the author broke his own allow-list three times (%2e%2e path traversal, an encoded slash nginx decoded, and a regex | that turned 'uptime|df -h' into run-anything). Works with any MCP client, no cloud, no telemetry; he's soliciting bypass #4.

Original post →

More from coding & agent

coding & agent channel →