lui-code-reviewer
v1.0.5
Published
A simple MCP server for code review
Downloads
24
Readme
LUI Code Reviewer MCP Server
A simple MCP (Model Context Protocol) server implementation for code review.
Features
- Code review tool: Analyzes code for common issues
- Code formatting tool: Simple code formatting
- Code examples resource: Provides example code snippets for different languages
Installation
# Install dependencies
pnpm install
# Build the project
pnpm buildRunning the Server
Using stdio transport (default)
pnpm startUsing HTTP transport
pnpm start:http
# Or specify a custom port
pnpm start:http 8080How to Use with MCP Clients
Using npx (Recommended for Published Package)
After this package is published to npm, you can configure your MCP client like this:
{
"mcpServers": {
"lui-code-reviewer": {
"command": "npx",
"args": [
"-y",
"lui-code-reviewer-mcp-server",
"http"
],
"env": {
"PORT": "3000"
}
}
}
}Stdio Transport
To use this MCP server with a client that supports stdio transport:
# Example with a client that spawns child processes
client-app --mcp-server "node /path/to/dist/server.js"HTTP Transport
To use this MCP server with a client that supports HTTP transport:
Start the server with HTTP transport:
pnpm start:httpConfigure your MCP client to connect to:
http://localhost:3000/mcp
Available Tools
reviewCode
Reviews code for common issues.
Parameters:
code(string): The code to reviewlanguage(string, optional): The programming language of the code
formatCode
Formats code (simple implementation).
Parameters:
code(string): The code to formatlanguage(string): The programming language of the code
Available Resources
codeExamples
Provides example code snippets for different programming languages.
URI format: code-examples://{language}
Supported languages:
- typescript
- javascript
- python
