Prepare the server locally
Run this once before adding it to Claude Code.
npm install
node src/index.jsAdd it to Claude Code
Paste the maintainer's config below, then edit any placeholder values.
{
"mcpServers": {
"ai-code-review": {
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "your_token_here",
"WORKSPACE_PATH": "/path/to/workspace"
}
}
}
}See the review-code-mcp README for full setup instructions.
GITHUB_PERSONAL_ACCESS_TOKENWORKSPACE_PATHMake your agent remember this setup
ai-code-review's config, env vars, and the gotchas you hit — recalled in every future Claude Code, Cursor, and Codex session.
npx conare@latestFree · one command · indexes the sessions already on disk. Set up in the browser instead →
What it does
- List and manage GitHub repositories and pull requests
- Retrieve detailed PR information and code diffs for review
- Read and search local files within a restricted workspace
- Path traversal protection for secure file system access
Tools 7
github_list_reposList your repositoriesgithub_list_prsList pull requestsgithub_get_prGet PR detailsgithub_get_pr_diffGet PR diff for reviewfs_read_fileRead file contentsfs_list_filesList directory contentsfs_search_filesSearch files by patternEnvironment Variables
GITHUB_PERSONAL_ACCESS_TOKENrequiredGitHub authentication tokenWORKSPACE_PATHrequiredLocal path to the project workspaceTry it
Original README from namph-kozocom/review-code-mcp
AI Code Review MCP Server
Simple MCP server for GitHub and FileSystem integration with AI agents (Copilot, Claude, etc.)
🚀 Quick Start
1. Install Dependencies
npm install
2. Test MCP Server
node src/index.js
3. Use with Copilot
- Restart VS Code (close and reopen)
- Open Copilot Chat and ask:
- "List my GitHub repositories"
- "Show pull requests in owner/repo"
- "Read README.md file"
- "List files in current directory"
🛠️ Available Tools
GitHub Tools
github_list_repos- List your repositoriesgithub_list_prs- List pull requestsgithub_get_pr- Get PR detailsgithub_get_pr_diff- Get PR diff for review
FileSystem Tools
fs_read_file- Read file contentsfs_list_files- List directory contentsfs_search_files- Search files by pattern
⚙️ Configuration
Edit .mcp/config.json:
{
"mcpServers": {
"ai-code-review": {
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "your_token_here",
"WORKSPACE_PATH": "/path/to/workspace"
}
}
}
}
📝 Usage Examples
With Copilot Chat:
- "List my GitHub repositories"
- "Show me PR #123 in owner/repo"
- "Read the package.json file"
With Other Agents:
The MCP server implements Model Context Protocol, compatible with:
- GitHub Copilot
- Claude Desktop
- Any MCP-compatible AI agent
🔒 Security
- GitHub token stored in config (add
.mcp/to.gitignore) - FileSystem access restricted to workspace path
- Path traversal protection built-in