nit-mcp-server
by ChauAry21
README.md
# nit-mcp-server
An MCP server that exposes nit's code review agent as tools Claude can call directly, over Streamable HTTP.
## Tools
- `review_local_path` calls nit-agent's `POST /review` with a local path and streams back the review
- `review_github` calls nit-agent's `POST /review/github` with a PR, commit, or file URL
## Setup
1. Make sure `nit-agent` is running (default `http://localhost:8080`) and Ollama is up
2. `cp .env.example .env.local` and adjust `NIT_AGENT_URL` if nit-agent isn't on the default port
3. `npm install`
4. `npm run dev`
The MCP endpoint is now live at `http://localhost:3000/api/mcp`
## Connecting Claude to it
**Claude.ai (custom connector):** Settings, Connectors, Add custom connector, paste `http://localhost:3000/api/mcp`
**Claude Desktop or Claude Code (stdio bridge, since local URLs need a bridge):**
```json
{
"mcpServers": {
"nit": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://localhost:3000/api/mcp"]
}
}
}
```
## Notes
- `review_local_path` sends an absolute path string, so nit-agent and this server need to run on the same machine, same as nit-cli's local review
- The GitHub token field is optional and only needed for private repos
This server cannot be deployed
Maintenance
ActivitySlowing
ResponsivenessNo issues