Code Auditor MCP
What it does
Enforces architectural invariants and code quality rules inside your AI agent's edit loop.
- Connects 컴퓨터 또는 클라우드
- Account or key No key needed
- Category 개발자 도구
설치
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
검사 5/5 통과 · 내가 묻는 내용은 제작자 서버(www.codeauditormcp.com)를 거쳐요 · ✓ 명령 확인 2026년 11월 13일
먼저: 어떤 AI를 쓰시나요?
쓰는 앱을 고르면 아래에 단계가 나옵니다.
Claude에 연결할 수 있어요 · 약 2분
키 필요 없음, 설치 필요 없음 · claude.ai나 데스크톱 앱에서 한 번 설정하면 채팅에서 쓸 수 있어요 · 무료 계정은 1개까지 · Team/Enterprise는 소유자(Owner)가 추가
Claude의 Connectors 페이지 열기
CustomizeConnectors
“Add” → “Custom” → “Web”를 누르고 이 2칸 채우기
여기서 복사해 Claude의 같은 이름 칸에 붙여 넣고 Continue를 누르세요
Name · 이름Code Auditor MCPRemote MCP server URL · 주소https://www.codeauditormcp.com/api/mcpClaude가 찾은 로그인 설정 화면에서 Continue를 누르고 · Authentication은 제작자 안내대로(Sign in now, Sign in when needed, No sign in) 고른 뒤 Add를 누르세요
채팅에서 켜기
+ConnectorsCode Auditor MCP
해 보기
Code Auditor MCP을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ Claude가 Code Auditor MCP을 쓰고 있다고 하거나 답에 Code Auditor MCP 도구 이름이 나오면 연결된 거예요
메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
ChatGPT 연결은 요금제에 따라 달라요
전체 MCP: 웹 ChatGPT Business, Enterprise, Edu · Pro: 읽기/가져오기 권한으로 연결, 데이터를 바꾸는 도구는 안 될 수 있어요 · Plus: 공식 문서 미확인, 플러그인 화면에 사용자 지정 MCP 추가 항목이 보이면 시도해 볼 수 있어요 · 웹만
웹 ChatGPT에서 MCP 추가 페이지 열기
Plugins+Add custom MCP server
이름과 주소 입력
이름을 넣고 Connection에 주소를 붙여 넣은 뒤 경고에 체크하고 Create as a plugin을 누르세요
Name · 이름Code Auditor MCPConnection · 주소https://www.codeauditormcp.com/api/mcp채팅에서 Code Auditor MCP 고르기
새 채팅을 열고 입력 전에 플러그인 목록에서 Code Auditor MCP을 고르세요
해 보기
Code Auditor MCP을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ ChatGPT가 Code Auditor MCP을 쓰고 있다고 하거나 답에 Code Auditor MCP 도구 이름이 나오면 연결된 거예요
메뉴 이름은 2026년 11월 11일에 OpenAI 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
Claude Code에 연결할 수 있어요 · 약 2분
키 필요 없음, 설치 필요 없음
터미널 열기
Mac: Command+스페이스를 누르고 Terminal 입력 · Windows: PowerShell 열기
이 명령을 붙여 넣고 Enter
claude mcp add --transport http --scope user code-auditor https://www.codeauditormcp.com/api/mcpClaude Code에서 /mcp 입력
Code Auditor MCP이 목록에 있고 연결됨으로 보이면 돼요
해 보기
Code Auditor MCP을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ Claude Code가 Code Auditor MCP을 쓰고 있다고 하거나 답에 Code Auditor MCP 도구 이름이 나오면 연결된 거예요
메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
Cursor에 연결할 수 있어요 · 약 2분
키 필요 없음, 설치 필요 없음
Cursor에서 AI 채팅을 Agent 모드로 열기
해 보기
Code Auditor MCP을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ Cursor가 Code Auditor MCP을 쓰고 있다고 하거나 답에 Code Auditor MCP 도구 이름이 나오면 연결된 거예요
메뉴 이름은 2026년 11월 11일에 Cursor 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
VS Code에 연결할 수 있어요 · 약 2분
키 필요 없음, 설치 필요 없음
VS Code에서 AI 채팅을 Agent 모드로 열기
해 보기
Code Auditor MCP을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ VS Code가 Code Auditor MCP을 쓰고 있다고 하거나 답에 Code Auditor MCP 도구 이름이 나오면 연결된 거예요
메뉴 이름은 2026년 11월 11일에 VS Code 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
Windsurf, Zed, Gemini CLI 같은 다른 MCP 앱은 추가 방법이 저마다 달라요. 앱 목록에서 확인하세요
웹으로 연결하는 앱용 주소
https://www.codeauditormcp.com/api/mcpJSON 설정은 아래 “개발자용”에 있어요
개발자용: 터미널 명령과 JSON 설정
웹으로 연결
Claude Code
claude mcp add --transport http --scope user code-auditor https://www.codeauditormcp.com/api/mcpCursor (~/.cursor/mcp.json)
{
"mcpServers": {
"code-auditor": {
"url": "https://www.codeauditormcp.com/api/mcp"
}
}
}VS Code (mcp.json)
{
"servers": {
"code-auditor": {
"type": "http",
"url": "https://www.codeauditormcp.com/api/mcp"
}
}
}컴퓨터에 설치
Claude Code
claude mcp add --scope user code-auditor -- npx -y code-auditor-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"code-auditor": {
"command": "npx",
"args": [
"-y",
"code-auditor-mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"code-auditor": {
"command": "npx",
"args": [
"-y",
"code-auditor-mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"code-auditor": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"code-auditor-mcp"
]
}
}
}이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
한눈에 보기
어떤 앱에서 쓸 수 있나요
이 서버의 연결 방식과 각 앱의 공식 문서를 바탕으로 했어요. 2026년 11월 10일 확인.
인터넷으로 연결하는 앱
ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast
내 컴퓨터에서 실행하는 앱
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
할 수 있는 일
도구 이름과 설명은 서버가 2026년 11월 13일에 알려 준 그대로예요. 우리가 아니라 제작자가 쓴 글이고, 일반 텍스트로만 보여 드려요.
get_install_commandsReturn the exact install commands for Code Auditor for a given AI agent. Call this when a user asks how to install Code Auditor, or asks for the command for a specific agent (claude, cursor, codex, gemini, agents, zcode, or all).
lookup_ruleReturn the rule kind, description, default severity, detection method, and threshold for a given Code Auditor rule or analyzer. Call this when a user asks what a specific rule does (e.g. import-ban, sql-injection, n+1).
explain_symptomMap a natural-language symptom (e.g. 'my app is slow', 'hardcoded password', 'infinite react loop') to the relevant Code Auditor rule(s) and their fixes. Call this when a user describes a problem rather than naming a rule.
request_ruleRequest a new Code Auditor rule. Call lookup_rule or explain_symptom first to confirm no existing rule covers it. Provide a minimal example that should be flagged and a corrected example that should not. Reduce both to the smallest code that shows the difference, and remove secre
기본 점검i
누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 14일 점검
토론
질문하고, 팁을 나누고, 안 되는 점을 알려 주세요. "도움이 됨"이 많은 순서예요.
사용자 리뷰
아직 리뷰가 없어요
개발자 도구 카테고리의 다른 서버와 비교i
- 이 카테고리의 다른 서버 5866개 중 88%보다 스타가 많아요
- 이 카테고리의 다른 서버 5866개 중 48%보다 최근에 레지스트리에 공개됐어요
- 기본 점검 결과가 이 카테고리의 다른 서버 5866개 중 100%와 같거나 더 좋아요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
자주 묻는 질문
Code Auditor MCP, 안전한가요?
해당하는 기본 점검 5개 중 5개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.
어떤 키나 코드가 필요한가요?
레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.
내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?
둘 다 가능해요. 내 컴퓨터에 설치해도 되고, 클라우드 버전에 연결해도 돼요.
아직 관리되고 있나요?
GitHub 저장소는 마지막으로 19일 전 변경됐고, 최신 버전(5.0.2)은 35일 전 레지스트리에 올라왔어요.
어떤 앱에서 쓸 수 있나요?
Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. URL로 연결되므로 원격 MCP를 받는 앱에서도 쓸 수 있어요. 예: 웹 ChatGPT(Business 이상은 전체 MCP, Pro는 읽기 전용).
대신 쓸 수 있는 건 뭐가 있나요?
같은 카테고리에는: REA, GitHub, Serena MCP: the IDE for your agent
같은 카테고리의 다른 것
같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.
카드 보는 법:↓ 주간 다운로드i★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i
GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Serena MCP: the IDE for your agent
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.
제작자의 README
README 열기
제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.
Code Auditor
Architectural invariants enforced inside your AI agent's edit loop. When the agent writes code that breaks a project rule, Code Auditor catches it and blocks the edit. The agent sees the rule's message and fixes itself.
Install
npm install -g code-auditor-mcp
code-audit install --agent all
Two commands to install everywhere. code-audit install --agent all copies the skill to every AI coding tool on your machine. Use --agent for specific tools.
What you get per tool: the skill (SKILL.md), MCP server access, and hook wiring where the tool supports it (blocking on Claude Code and Codex, advisory on Cursor).
code-audit install --list # see the support matrix
Claude Code users can also install via plugin:
claude plugin marketplace add BenAHammond/code-auditor-mcp
claude plugin install code-auditor
The hook auto-installs the auditor on first use via npx.
Requirements
- Node 18+ to run. Node 23.4+ gets the zero-native-install path: Code Auditor uses the built-in
node:sqlitemodule, so nothing needs to compile or download a prebuilt binary on install. - On older Node (18–23.3), Code Auditor falls back to
better-sqlite3, an *optional* dependency whose install script must be approved once on npm 11.2+/12 (they block dependency install scripts by default):npm install-scripts approve better-sqlite3 && npm rebuild better-sqlite3(with pnpm:pnpm approve-builds, then selectbetter-sqlite3).
Configuration
Project-level settings live in .codeauditor.json (invariant rules, analyzer settings, and thresholds). Eleven environment variables additionally tune process-scoped behavior — worker pool size, daemon and job-queue timeouts, the index location, the SQLite backend, and the UI port.
| Variable | Purpose | Accepted values | Default | |
|---|---|---|---|---|
CODE_AUDITOR_WORKERS | Phase-model worker pool size for per-file fan-out. 1 forces the serial path for byte-identical reports. | Positive integer | max(1, cpus − 1) | |
CODE_AUDITOR_RULE_TIMING | Per-rule wall-time accounting (one accumulated timer per rule ID, surfaced in the report). | 1 enables; unset disables | Off | |
CODE_AUDITOR_DAEMON_IDLE_MS | Idle timeout before the daemon shuts down. | Positive finite ms; invalid → default | 300000 (5 min) | |
CODE_AUDITOR_DAEMON_LEASE_TTL_MS | Daemon heartbeat lease TTL. | Finite ms; blank/0 → default | 60000 (60 s) | |
CODE_AUDITOR_DATA_DIR | Overrides the code-index database directory. | Directory path (trimmed; blank → default) | user-level OS cache | |
CODE_AUDITOR_EXIT_ON_FATAL | Exit the MCP server on an uncaught exception / unhandled rejection. | 1 or true | Off | |
CODE_AUDITOR_JOB_TIMEOUT_MS | Per-job timeout for queued audits. | Finite ms, clamped to 60s–4h; below the floor → default | 1800000 (30 min) | |
CODE_AUDITOR_JOB_LEASE_TTL_MS | Heartbeat lease TTL for reclaiming stale running job rows. | Strictly positive finite ms; invalid → default | 30000 (30 s) | |
CODE_AUDITOR_MAX_RUNNING_JOBS | Max concurrently running queued audit jobs. | Integer ≥ 1; invalid → default | 1 | |
CODE_AUDITOR_SQLITE_BACKEND | Forces a SQLite backend. An invalid value is reported as invalid and rejected — never silently probed past. | node-sqlite \ | better-sqlite3 | Auto (probe) |
MCP_UI_PORT | HTTP UI server port (--ui). | Port number; invalid → default | 3001 |
When CODE_AUDITOR_DATA_DIR is set, the index is scoped per project ( /projects/ /index.db) so projects can't leak data into each other. When unset, the index lives in a user-level OS cache ( /code-auditor/projects/ /index.db) so it never lands inside the audited repo.
Prompt examples
"Index the codebase and run a full audit, then walk the violations file-by-file with `code-audit next-file`."
"Create a `.codeauditor.json` that bans lodash imports and prevents `src/languages/` from importing anything in `src/analyzers/`."
"Run a full audit, fix the highest-priority file, and repeat `code-audit next-file` until the tree is clean."
"Sync the code index and audit only what changed vs main."
"Add an ast-pattern rule that blocks `new Function(...)`."
"Add a naming rule requiring hooks in `src/hooks/` to start with `use`."
"Add a call-constraint so `chargeCustomer()` in `src/services/payment.ts` can only be called from `src/api/`."
Rule kinds
Seven kinds. The agent writes them to .codeauditor.json. Bad configs fail the audit, not silently.
| Kind | What it blocks |
|---|---|
import-ban | Banned module imports |
call-constraint | Function calls from unauthorized files |
module-boundary | Imports across module boundaries |
naming | Exported symbols not matching a pattern |
ast-pattern | AST nodes matching an ast-grep pattern |
style-mechanism | Unapproved style mechanisms per file/glob |
no-raw-values | Hardcoded values for specific CSS properties |
Works with your agent
One skill, one CLI, one MCP server. Every agent gets the same audit engine — the hook contract is the only difference.
| Agent | Skill | Hooks / Blocking | MCP | Verified |
|---|---|---|---|---|
| Claude Code | Plugin or code-audit install | Yes — blocking | Yes | 2026-07-19 |
| Cursor | code-audit install --agent cursor (project-only) | Advisory | Yes | 2026-07-19 |
| Codex | code-audit install --agent codex + plugin | Yes — blocking | Yes | 2026-07-19 |
| Gemini CLI | code-audit install --agent gemini | No | Yes | 2026-07-19 |
| VS Code / Copilot | code-audit install --agent agents | No | Yes | 2026-07-19 |
| Other SKILL.md tools | code-audit install --agent agents | No | Yes | 2026-07-19 |
| ZCode | code-audit install --agent zcode | No (plugin-scoped) | Yes | 2026-09-10 |
MCP config generation covers a wider set than skill install. The MCP server's generate tool writes a client config file for any of claude, codex, cursor, gemini, copilot, continue, awsq (AWS Q Developer), codeium (Codeium/Windsurf), vscode, cline, and zcode. Four of those — Continue, AWS Q Developer, Codeium/Windsurf, and Cline — are MCP-only: they have no file-based skill or hook path, so they connect through the generate tool rather than code-audit install.
Hook behavior: Blocking means the diff-scoped changed gate is tripped — an invariant rule that declares gating: true (a binary, per-rule flag, independent of severity) blocks the edit from landing (the agent sees the violation and fixes inline). Advisory means violations are reported through the strongest available feedback channel but the edit has already occurred. Cursor's afterFileEdit hook is fire-and-forget with no output consumption. MCP is available everywhere for shell-less use.
Findings: Deterministic vs Advisory
Code Auditor's built-in rules fall into two categories:
| Category | Meaning | Examples |
|---|---|---|
| Deterministic | Structural fact — an engineer would act on every finding | single-responsibility (300-line functions), solid/method-complexity (cyclomatic complexity > 20), solid/class-size (40+ method classes), dependency-inversion (concrete imports where an interface exists) |
| Advisory | Heuristic signal — may be wrong depending on domain | sql-injection-risk (AST-level string-pattern matching without type info), missing-org-filter (domain-specific — assumes SaaS tenant isolation), unknown-table (requires user-provided schema), dry/duplicate (token-identical blocks) |
Deterministic rules ship at critical or severe. Advisory rules ship at severe or high. Rules proven near-zero precision on a real corpus are disabled by default (off) — users opt in when the rule matches their domain.
Recalibration
Built-in severity defaults are recalibrated from real-corpus triage. The current defaults reflect measurement on three corpora: this tool's own codebase, Gin, and Excalidraw. Six data-access rules that produced near-zero precision across all three corpora are disabled by default.
Every disabled rule documents what corpus it *would* be useful on. Users can restore any rule via severityOverrides in .codeauditor.json:
{
"severityOverrides": { "sql-injection-risk": "critical", "missing-org-filter": "severe", "loop-query": "severe" } }
Severity overrides apply globally (before per-directory path profile caps). Setting a rule to "off" removes it from the output entirely.
SQL Injection Detection
The sql-injection-risk rule is disabled by default (off) after recalibration. On the self-audit corpus, it produced 0% precision — the rule misinterpreted TypeScript pattern-matching code (string constants like 'SELECT', 'FROM', 'WHERE' used for the tool's own SQL detection) as database queries. On the Gin and Excalidraw corpora, precision was also near zero.
When to re-enable it: your project's SQL is constructed via string concatenation or template literals in functions whose sole purpose is query assembly. The rule detects those patterns. For codebases using ORMs or parameterized queries exclusively, the rule produces noise.
To re-enable and block on SQL injection:
{
"severityOverrides": { "sql-injection-risk": "critical" } }
With sql-injection-risk: critical (and the rule marked gating), your agent's hook will block edits that introduce AST-level SQL injection patterns.
Dismissals
Every finding is a measurement, not a verdict — but measurements are occasionally wrong. When the agent hits a false positive (the rule is right in general, wrong for this specific code), it can dismiss *that one instance* rather than work around it:
code-audit dismiss <fingerprint> --reason "generated code, not hand-written"
The comes from the JSON report (every violation carries a fingerprint field). A written `--reason` is required, and the dismissal clears exactly one finding — rule + file + symbol — so the same rule still fires everywhere else. Dismissals live in a committed .codeauditor.dismissals.json, reviewable in a diff.
Anonymous dismissal feedback (opt-in)
The reason an agent gives for dismissing a finding is the most useful signal for improving the rules. Code Auditor can send dismissed findings to an anonymous feedback service that collects them.
It is off by default and turned on only by an explicit opt-in, via any of three methods (in precedence order):
- per-invocation —
code-audit dismiss --telemetry …sends just that one dismissal;--no-telemetrysuppresses one. - environment —
CODE_AUDITOR_TELEMETRY=1(or0) as a machine-level default for headless/CI runs. - persisted —
code-audit telemetry status|enable|disable(or thetelemetryMCP tool), which records the choice in your user config dir.
telemetry enable needs no arguments: it opts in against the built-in service endpoint (overridable for self-hosting). Opting in generates an anonymous install ID: a random value generated locally, never derived from your machine, user, or project, used only to group submissions by source.
What is sent — the tool version, the rule ID, the urgency level, the dismissal reason exactly as typed, a structural AST signature (grammar kinds only, never their contents), a coarse language hint, a timestamp, and the anonymous install ID. What is never sent — source code, identifiers, literals, file paths, or anything derived from your code or environment. Sending is best-effort: offline or an unreachable endpoint is silent and never blocks an edit or fails a gate.
Style Intelligence
Co