Skip to main content
Glama

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
NameRequiredDescriptionDefault
codeYesThe code to review

Implementation Reference

  • 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 }; } } );
  • 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 }; } }
  • Input schema for the codeReview tool: requires a 'code' string parameter.
    code: z.string().describe("The code to review") },

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/auchenberg/claude-code-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server