code_review
Analyze code for security vulnerabilities, performance issues, and quality improvements. Get a detailed report with severity ratings and actionable suggestions.
Instructions
Analyze code for issues, security vulnerabilities, and improvement suggestions. Returns a score, summary, list of issues with severity, and positive observations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The source code to review (max 50,000 characters) | |
| language | No | Programming language of the code (e.g., 'typescript', 'python', 'go'). Optional. | |
| focus | No | Review focus area: 'security', 'performance', 'quality', or 'all' (default) | all |
Implementation Reference
- src/index.ts:174-194 (handler)The handler implementation for the "code_review" MCP tool, which extracts arguments and calls the /api/skills/code-review API endpoint.
case "code_review": { const { code, language, focus = "all" } = args as { code: string; language?: string; focus?: string; }; const body: Record<string, unknown> = { code, focus }; if (language) body.language = language; const result = await callApi("/api/skills/code-review", body); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; } - src/index.ts:88-104 (registration)Tool registration for "code_review" in the MCP server list of tools.
name: "code_review", description: "Analyze code for issues, security vulnerabilities, and improvement suggestions. " + "Returns a score, summary, list of issues with severity, and positive observations.", inputSchema: { type: "object", properties: { code: { type: "string", description: "The source code to review (max 50,000 characters)", }, language: { type: "string", description: "Programming language of the code (e.g., 'typescript', 'python', 'go'). Optional.", }, focus: {