npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@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/mcp

Production Usage

Command Line

rectify-mcp --token mcp_xxx:userId

IDE 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

  1. Clone and install dependencies:
cd rectify-mcp
npm install
  1. Build the project (optional):
npm run build

Running Locally

Option 1: Using npm dev script

npm run dev -- --token mcp_xxx:userId

Option 2: Using the built CLI

node dist/cli.js --token mcp_xxx:userId

Option 3: Test with tsx locally

npx tsx src/cli.ts --token mcp_xxx:userId

Testing with MCP Inspector

Run the server inside MCP Inspector:

npx @modelcontextprotocol/inspector node dist/cli.js --token mcp_xxx:userId

Testing 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 --verbose

Check 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.js is 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 feedback
  • rectify://{orgId}/{projectId}/feedbacks/overview - Get feedback overview statistics

Scan Job Resources (when enabled)

  • rectify://{orgId}/{projectId}/scan/job - Current scan job
  • rectify://{orgId}/{projectId}/scan/issues - List scan issues
  • rectify://{orgId}/{projectId}/scan/issues/{key} - Get issue detail
  • rectify://{orgId}/{projectId}/scan/issues/by-file - Get issues by file
  • rectify://{orgId}/{projectId}/scan/metrics - Scan metrics
  • rectify://{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