code-auditor-mcp
Enforces architectural invariants and code quality rules inside your AI agent's edit loop.
¿Debería usar esto?
Calidad y seguridad
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"code-auditor-mcp": {
"command": "npx",
"args": [
"code-auditor-mcp"
]
}
}
}Paquetes ejecutables
5.0.2stdioPuntos de conexión remotos
https://www.codeauditormcp.com/api/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (4)
🟢get_install_commands(agent)
Return 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).
Esquema de entrada
{
"type": "object",
"properties": {
"agent": {
"type": "string",
"description": "The AI agent to install for (e.g. claude, cursor, codex, all)."
}
},
"required": [
"agent"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Esquema de salida
{
"type": "object",
"properties": {
"agent": {
"type": "string"
},
"displayName": {
"type": "string"
},
"commands": {
"type": "array",
"items": {
"type": "string"
}
},
"note": {
"type": "string"
}
},
"required": [
"agent",
"displayName",
"commands"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢lookup_rule(rule_id)
Return 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).
Esquema de entrada
{
"type": "object",
"properties": {
"rule_id": {
"type": "string",
"description": "Rule or analyzer id, e.g. import-ban, sql-injection, n+1."
}
},
"required": [
"rule_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Esquema de salida
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"type": "object",
"properties": {
"rule": {
"type": "string"
},
"category": {
"type": "string"
},
"severity": {
"type": "string",
"enum": [
"critical",
"severe",
"high"
]
},
"description": {
"type": "string"
},
"method": {
"type": "string"
},
"threshold": {
"type": "string"
},
"config": {
"type": "string"
}
},
"required": [
"rule",
"category",
"severity",
"description",
"method"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"error": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}
]
}🟢explain_symptom(symptom)
Map 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.
Esquema de entrada
{
"type": "object",
"properties": {
"symptom": {
"type": "string",
"description": "A plain-language description of the problem."
}
},
"required": [
"symptom"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Esquema de salida
{
"type": "object",
"properties": {
"matches": {
"type": "array",
"items": {
"type": "object",
"properties": {
"rule": {
"type": "string"
},
"category": {
"type": "string"
},
"severity": {
"type": "string",
"enum": [
"critical",
"severe",
"high"
]
},
"description": {
"type": "string"
},
"method": {
"type": "string"
},
"threshold": {
"type": "string"
},
"config": {
"type": "string"
}
},
"required": [
"rule",
"category",
"severity",
"description",
"method"
],
"additionalProperties": false
}
},
"hint": {
"type": "string"
}
},
"required": [
"matches"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🔴request_rule(title, symptom, signal, languages, firingExample, ...)
Request 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 secrets and proprietary identifiers. Returns a receipt id.
Esquema de entrada
{
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 10,
"maxLength": 120
},
"symptom": {
"type": "string",
"minLength": 40,
"maxLength": 2000
},
"signal": {
"type": "string",
"minLength": 40,
"maxLength": 2000
},
"languages": {
"minItems": 1,
"maxItems": 8,
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"firingExample": {
"minItems": 1,
"maxItems": 6,
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"minLength": 1
},
"content": {
"type": "string",
"minLength": 1
}
},
"required": [
"path",
"content"
]
}
},
"cleanExample": {
"minItems": 1,
"maxItems": 6,
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"minLength": 1
},
"content": {
"type": "string",
"minLength": 1
}
},
"required": [
"path",
"content"
]
}
},
"toolVersion": {
"type": "string"
}
},
"required": [
"title",
"symptom",
"signal",
"languages",
"firingExample",
"cleanExample"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Esquema de salida
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"duplicateSubmission": {
"type": "boolean"
},
"existingRuleMatches": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"id",
"duplicateSubmission",
"existingRuleMatches"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}Comunidad
Evidencia