@rectify-so/mcp
v1.0.8
Published
Rectify MCP Server for IDE integration
Downloads
375
Readme
Rectify MCP Server
An MCP (Model Context Protocol) server to access Rectify project resources from IDEs.
Install
npm i -g @rectify-so/mcpProduction Usage
Command Line
rectify-mcp --token mcp_xxx:userIdIDE Configuration
Copy just the top-level rectify block (do not wrap in mcpServers unless your IDE requires it):
{
"rectify": {
"command": "npx",
"args": ["-y", "@rectify-so/mcp", "--token", "mcp_xxx:userId"]
}
}Claude Desktop
Add to Claude Desktop config:
Windows: %APPDATA%/Claude/claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"rectify": {
"command": "npx",
"args": [
"-y",
"@rectify-so/mcp",
"--token",
"mcp_xxx:userId",
]
}
}
}Cursor
Add to Cursor settings:
{
"mcp.servers": {
"rectify": {
"command": "npx",
"args": [
"-y",
"@rectify-so/mcp",
"--token",
"mcp_xxx:userId",
]
}
}
}Local Development
Prerequisites
- Node.js (v18 or higher)
- npm or yarn
- A valid Rectify MCP token (get from https://app.rectify.so)
Setup
- Clone and install dependencies:
cd rectify-mcp
npm install- Build the project (optional):
npm run buildRunning Locally
Option 1: Using npm dev script
npm run dev -- --token mcp_xxx:userIdOption 2: Using the built CLI
node dist/cli.js --token mcp_xxx:userIdOption 3: Test with tsx locally
npx tsx src/cli.ts --token mcp_xxx:userIdTesting with MCP Inspector
Run the server inside MCP Inspector:
npx @modelcontextprotocol/inspector node dist/cli.js --token mcp_xxx:userIdTesting in IDE (Local Development)
Windsurf Local Testing
Update ~/.codeium/windsurf/mcp_config.json to use the compiled CLI:
{
"rectify": {
"command": "node",
"args": [
"/absolute/path/to/rectify-mcp/dist/cli.js",
"--token",
"mcp_xxx:userId"
]
}
}Claude Desktop Local Testing
Update Claude config (%APPDATA%/Claude/claude_desktop_config.json on Windows or ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"rectify": {
"command": "node",
"args": [
"/absolute/path/to/rectify-mcp/dist/cli.js",
"--token",
"mcp_xxx:userId"
]
}
}Debugging
Enable verbose logging to see detailed output:
node dist/cli.js --token mcp_xxx:userId --verboseCheck logs for:
- Token validation status
- Organization and project IDs
- Resource requests
- API errors
Common Issues
Token validation fails:
- Verify the token format is correct:
mcp_xxx:userId - Confirm the backend MCP endpoints are reachable
- Check network connectivity from your environment to the API
Resources not showing:
- Ensure the MCP token has permissions for feedbacks and scan data
- Inspect backend logs for API errors
IDE not connecting:
- Rebuild the project after code changes:
npm run build - Restart your IDE after updating the config
- Check IDE logs for MCP connection errors
- Verify the absolute path to
dist/cli.jsis correct when running locally
Options
--token <token>- MCP authentication token (required, format: mcp_xxx:userId)
Available Resources
Feedback Resources
rectify://{orgId}/{projectId}/feedbacks- List feedbacks with optional filters (assets excluded)rectify://{orgId}/{projectId}/feedbacks/{id}- Get feedback detail (bug-type includes debugDataUrl if available)rectify://{orgId}/{projectId}/feedbacks/{id}/analyze-debug-data- Analyze debug logs for a bug-type feedbackrectify://{orgId}/{projectId}/feedbacks/overview- Get feedback overview statistics
Scan Job Resources (when enabled)
rectify://{orgId}/{projectId}/scan/job- Current scan jobrectify://{orgId}/{projectId}/scan/issues- List scan issuesrectify://{orgId}/{projectId}/scan/issues/{key}- Get issue detailrectify://{orgId}/{projectId}/scan/issues/by-file- Get issues by filerectify://{orgId}/{projectId}/scan/metrics- Scan metricsrectify://{orgId}/{projectId}/scan/history- Scan history
Tools
rectify-feedbacks-analyze-debug-url- Analyze compressed technical logs from a debugDataUrl.
- Inputs:
debugDataUrl?,feedbackId?(server resolves URL when an ID is given). - Note: debugDataUrl is only available for bug-type feedbacks.
License
MIT
