claude-code-audit-mcp

KiyoCao/claude-code-audit-mcp
★ 0 stars Python AI/LLM Updated today
Audit MCP server for Claude Code permission prompts
View on GitHub → 🔍 Audit Wallet Slippage →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "claude-code-audit-mc": {
      "command": "uvx",
      "args": [
        "claude-code-audit-mcp"
      ]
    }
  }
}

Or install with pip: pip install claude-code-audit-mcp

README Excerpt

> 纯静态规则审核 Claude Code 工具调用:白名单放行 / 黑名单拒绝 / 其余交回原生权限 UI。 **没有 LLM 依赖**,毫秒级返回,无网络调用、无 API key。 通过 **PreToolUse hook + 持久 daemon** 接入,单次决策 **~45ms**(M1 Mac)。 **PostToolUse 自动学指纹**:用户原生 UI 批准一次,下次同结构毫秒级放行(增量 < 0.05%)。 Claude Code 在执行 `Bash`/`Edit`/`Write`/MCP 工具等操作前会触发 PreToolUse hook。 本 MCP 把所有审核压到本地静态规则:

Tools (16)

BashWebFetchalways_askcode_emptydefaultlearned_allow_bashlearned_allow_toollearned_fingerprintskip_pathstatic_allow_bashstatic_allow_toolstatic_code_dangerstatic_code_passstatic_code_secretstatic_denystatic_deny_sensitive_path