mcp-permaudit
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-permauditaudit the settings in .claude/settings.json"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-permaudit
Servidor MCP para auditar configuraciones de permisos de Claude Code
(.claude/settings.json).
Aplica la jerarquía primitivas → custom → MCP:
cli_bash.pyrepresenta la opción primitiva (bash + Python).audit.pyencapsula la lógica para reutilizarla como tool custom.server.pypublica la capacidad como servidor MCP compartido.
Instalación
cd mcp-permaudit
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtRelated MCP server: mcpwatch
Uso
Servidor MCP
source .venv/bin/activate
python server.pyCliente de prueba
source .venv/bin/activate
python client_test.pyCLI primitiva
source .venv/bin/activate
python cli_bash.py fixtures/settings-destructive.json
python cli_bash.py /ruta/a/.claude/settings.jsonMedir costo de contexto
source .venv/bin/activate
python measure_tokens.pyConfiguración en clientes MCP
Claude Code
Copia o adapta .claude/mcp.json en tu proyecto o ~/.claude/mcp.json.
Claude Desktop
Copia claude_desktop_config.json como:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Actualiza la ruta absoluta a server.py.
Decisiones de diseño
Ver docs/decision.md para la comparación completa:
primitiva + ejecución de código
tool custom local
servidor MCP publicado
Incluye justificación de los cuatro criterios de MCP, costo de contexto medido, caso real reescrito como bash+Python, uso de MCP existente (Playwright MCP) y notas de seguridad/allowlist para producción.
Herramienta expuesta
audit_settings(settings_json: str) -> dict: audita el JSON de permisos y devuelve findings, summary, hasSettings, ruleCount y hasConflict.
Estructura
mcp-permaudit/
├── audit.py # Lógica pura de auditoría
├── server.py # Servidor MCP (FunctionTool + stdio)
├── client_test.py # Cliente MCP de prueba
├── cli_bash.py # Alternativa primitiva
├── measure_tokens.py # Costo de contexto
├── fixtures/ # JSON de ejemplo
├── docs/decision.md # Comparativa y justificación
├── .claude/mcp.json # Config para Claude Code
├── claude_desktop_config.json # Config para Claude Desktop
└── requirements.txtThis server cannot be deployed
Maintenance
Related MCP Connectors
Statically audits MCP tool surfaces for token cost, schema quality, and design issues.
MCP Spec Compliance MCP — audits any MCP server.json against the official Model Context Protocol
Remote MCP for Copilot CLI switch gate MCP, structured receipts, audit logs, and reviewer-ready evid
Paid remote MCP for Claude Code skill update gate MCP, structured receipts, audit logs, and reviewer
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA secure MCP wrapper for Anthropic Claude Code that eliminates the need for permission flags while preserving full CLI functionality and working seamlessly with MCP-compatible IDEs.-
- AlicenseNot gradedqualityDmaintenanceMCP server that audits other MCP servers. Run MCPWatch security scans from inside Claude Code or any MCP-compatible agent with 10 OWASP MCP Top 10 aligned checks and A-F letter grades.MIT
- AlicenseNot gradedqualityCmaintenanceDiagnose MCP servers — health checks, tool testing, token cost audits, conflict detection, and security scanning with 50+ prompt injection patterns. Works as CLI or MCP server inside Claude Desktop.1MIT

dr-mcpofficial
AlicenseNot gradedqualityCmaintenanceLocal-first MCP audit and cleanup tool that scans MCP configs to find stale servers, abandoned packages, duplicates, context-heavy tools, risky permissions, and major upgrades, generating reversible patch plans.89 npmMIT