# Coding Agent Audit

> Coding Agent Audit is an open-source MCP server for security. Scan your machine and Claude Code or Cursor config for known attacks and risky settings. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, Windows
- **Repository:** https://github.com/stackscribe-ai/coding-agent-audit
- **MCP Registry name:** io.github.stackscribe-ai/coding-agent-audit
- **Categories:** [security](https://ai-powered.com/categories/security), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

Coding Agent Audit is a short Python command-line scanner for the setup around AI coding assistants. It was written in response to a trojanized Claude Code extension build found on Open-VSX and the Cursor Marketplace in October 2026, and it checks for the publicly documented traces of that incident: a planted SSH key, persistence files, marker files and a known-bad extension hash.

Beyond that incident it covers other named threats, including the Mini Shai-Hulud and SANDWORM_MODE npm worms and an outdated GitHub Copilot extension. A second pass looks for risky configuration such as hooks that pipe curl into a shell, wildcard auto-approved permissions like Bash(*), unpinned npx MCP packages, old pins of mcp-remote and mcp-server-git with disclosed RCE CVEs, and fetch-plus-write tool combinations.

Optional modes scan an exported tool list for hidden instructions in descriptions and check dependency names against npm and PyPI. The README says the project was built by an autonomous AI software project with no human review before release, and advises reading its short source first. Exit codes are 0, 1 or 2 by severity, and JSON output suits CI.

## Features

- **Incident indicator scan:** Looks for files, hashes and persistence tied to documented attacks on AI coding tools.
- **Config heuristics:** Flags curl-to-shell hooks, wildcard approvals and unpinned MCP packages.
- **CVE pin detection:** Flags explicit old versions of mcp-remote and mcp-server-git.
- **Tool description scan:** Checks an exported tools list for hidden instructions.
- **Phantom dependency check:** Finds manifest packages that do not exist on npm or PyPI.
- **CI-friendly output:** JSON output and severity-based exit codes.

## Good for

- Check a developer laptop after a reported extension compromise
- Audit a repository's .claude and .mcp.json before opening it
- Add a config check to a CI pipeline
- Spot hallucinated package names in a manifest

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add coding-agent-audit -- uvx coding-agent-audit
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "coding-agent-audit": {
      "command": "uvx",
      "args": [
        "coding-agent-audit"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "coding-agent-audit": {
      "command": "uvx",
      "args": [
        "coding-agent-audit"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "coding-agent-audit": {
      "command": "uvx",
      "args": [
        "coding-agent-audit"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "coding-agent-audit": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "coding-agent-audit"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add coding-agent-audit -- uvx coding-agent-audit
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.coding-agent-audit]
command = "uvx"
args = ["coding-agent-audit"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "coding-agent-audit": {
      "command": "uvx",
      "args": [
        "coding-agent-audit"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user coding-agent-audit uvx -- coding-agent-audit

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "coding-agent-audit": {
      "command": "uvx",
      "args": [
        "coding-agent-audit"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "coding-agent-audit": {
      "command": "uvx",
      "args": [
        "coding-agent-audit"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "coding-agent-audit": {
      "command": "uvx",
      "args": [
        "coding-agent-audit"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "coding-agent-audit": {
      "command": "uvx",
      "args": [
        "coding-agent-audit"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "coding-agent-audit": {
      "command": "uvx",
      "args": [
        "coding-agent-audit"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "coding-agent-audit": {
      "command": "uvx",
      "args": [
        "coding-agent-audit"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "coding-agent-audit": {
      "command": "uvx",
      "args": [
        "coding-agent-audit"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "coding-agent-audit": {
      "command": "uvx",
      "args": [
        "coding-agent-audit"
      ]
    }
  }
}
```

## FAQ

### How do I install Coding Agent Audit?

With pip install coding-agent-audit, then run agent-audit.

### Does Coding Agent Audit run MCP servers?

No. The tool description scan never connects to or executes a server; you give it a tool list as JSON.

### What do the exit codes mean?

0 means nothing found, 1 means only warnings or info, and 2 means at least one critical finding.

### Who wrote Coding Agent Audit?

The README says it was built by StackScribe AI, an autonomous AI project, and is not affiliated with Anthropic.

### Is Coding Agent Audit free?

Yes. Coding Agent Audit is open source, so you can use and self-host it for free.

### How do I add Coding Agent Audit to Claude Code?

Run this command in your terminal: claude mcp add coding-agent-audit -- uvx coding-agent-audit

### What are the best alternatives to Coding Agent Audit?

The closest alternatives to Coding Agent Audit are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/coding-agent-audit
