codeReview
Analyze code for bugs, security vulnerabilities, and adherence to best practices using the Claude Code MCP server. Submit your code for comprehensive review to improve quality and reliability.
Instructions
Review code for bugs, security issues, and best practices
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code to review |
Implementation Reference
- src/server/tools.ts:177-203 (registration)Registers the 'codeReview' MCP tool with input schema (code: string) and a placeholder handler that indicates code review is handled via LLM prompts.server.tool( "codeReview", "Review code for bugs, security issues, and best practices", { code: z.string().describe("The code to review") }, async ({ code }) => { try { // In a real implementation, this would call an LLM to review the code // For now, we'll just return a placeholder message return { content: [{ type: "text", text: "Code review functionality will be handled by the LLM through prompts." }] }; } catch (error) { return { content: [{ type: "text", text: error instanceof Error ? error.message : String(error) }], isError: true }; } } );
- src/server/tools.ts:183-202 (handler)Placeholder handler function for the codeReview tool. Currently returns a static message; in production would invoke LLM for actual review.async ({ code }) => { try { // In a real implementation, this would call an LLM to review the code // For now, we'll just return a placeholder message return { content: [{ type: "text", text: "Code review functionality will be handled by the LLM through prompts." }] }; } catch (error) { return { content: [{ type: "text", text: error instanceof Error ? error.message : String(error) }], isError: true }; } }
- src/server/tools.ts:181-182 (schema)Input schema for the codeReview tool: requires a 'code' string parameter.code: z.string().describe("The code to review") },