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

@sudocode-ai/mcp

v0.2.0

Published

MCP server for sudocode, git-native context management for AI-assisted development

Readme

Sudocode MCP

Model Context Protocol (MCP) server for sudocode - A git-native spec and issue management system designed for AI-assisted development.

Features

  • MCP Tools for complete issue and spec management
  • Git-native workflow - All data stored in git
  • Anchored feedback - Link issues to specific lines in specs with smart relocation
  • Relationship tracking - Model dependencies and blockers
  • CLI-first design - Wraps existing sudocode CLI commands

Installation

npm install -g sudocode

Or to install just the MCP server and CLI:

npm install -g @sudocode-ai/cli @sudocode-ai/mcp

Configuration

IMPORTANT: Before using this MCP server, sudocode MUST be initialized in your project directory (sudocode init)

First-time setup:

  1. Navigate to your project root directory
  2. Run: `sudocode init`
  3. This creates the `.sudocode/` directory with necessary database files
  4. Verify setup: Check that `.sudocode/cache.db` exists

Without initialization, all MCP tools will fail with errors.

If you see errors about missing database or .sudocode directory, run `sudocode init` first.

Claude Code

Option 1: Install via Plugin (Recommended)

/plugin marketplace add sudocode-ai/sudocode
/plugin install sudocode

The plugin handles MCP server setup automatically. See .claude-plugin/README.md for details.

Option 2: Manual MCP Configuration

If you've installed via npm, add to your Claude Code configuration:

{
  "mcpServers": {
    "sudocode": {
      "command": "sudocode-mcp"
    }
  }
}

Custom Configuration

{
  "mcpServers": {
    "sudocode": {
      "command": "sudocode-mcp",
      "env": {
        "SUDOCODE_WORKING_DIR": "/path/to/your/project",
        "SUDOCODE_PATH": "sudocode",
      }
    }
  }
}

Environment Variables

  • SUDOCODE_PATH - Path to sudocode CLI executable (default: sudocode)
  • SUDOCODE_WORKING_DIR - Working directory for sudocode (default: current directory)
  • SUDOCODE_DB - Custom database path (default: .sudocode/cache.db)
  • SUDOCODE_ACTOR - Actor name for operations (default: system username)

Available Tools

Issue Management

  • ready - Find issues and specs with no blockers
  • list_issues - List issues with filters (status, type, priority, assignee)
  • show_issue - Show detailed issue information
  • upsert_issue - Create/update issue

Spec Management

  • list_specs - List specs with filters (status, type, priority)
  • show_spec - Show detailed spec information with feedback
  • upsert_spec - Create/update a specification

Relationships

  • link - Create relationships between entities (blocks, implements, references, depends-on, parent-child, discovered-from, related)

Cross-References

  • add_reference - Add inline cross-reference to spec or issue using Obsidian-style [[ID]] syntax. Insert references at specific locations (line or text-based) with optional display text and relationship types.

Feedback System

  • upsert_feedback - Create/update anchored feedback to specs

Prerequisites

You must have the sudocode CLI (aliased sudocode or sdc) installed and available in your PATH.

Install sudocode:

npm install -g sudocode

Usage Example

Once configured in Claude Code, you can ask Claude to:

  1. Find ready tasks: "Show me issues that are ready to work on"
  2. Claim work: "Set issue ISSUE-123 to in_progress status"
  3. Review specs: "Show me the spec for issue ISSUE-123"
  4. Add cross-references: "Add a reference to ISSUE-042 in the requirements section of SPEC-010"
  5. Provide feedback: "Add feedback to spec SPEC-005 about the authentication section"
  6. Complete work: "Close issue ISSUE-123"

Development

Building from Source

git clone https://github.com/sudocode-ai/sudocode.git
cd sudocode/mcp
npm install
npm run build  # Uses esbuild for bundled & minified output

The build process:

  • Bundles and minifies src/index.tsdist/index.js (18 KB)
  • Generates TypeScript declarations
  • Sets executable permissions automatically

Running Tests

npm test              # Run all tests in watch mode
npm test -- --run     # Run once
npm run test:unit     # Unit tests only

Build Scripts

npm run build         # Production build (esbuild - bundled & minified)
npm run build:dev     # Development build (tsc - preserves structure)
npm run dev           # Watch mode for development
npm run clean         # Remove build output

Project Structure

mcp/
├── src/
│   ├── client.ts           # CLI wrapper
│   ├── server.ts           # MCP server
│   ├── types.ts            # Type definitions
│   └── tools/              # Tool implementations
│       ├── issues.ts
│       ├── specs.ts
│       ├── feedback.ts
│       ├── relationships.ts
│       ├── references.ts
│       ├── analytics.ts
│       └── init.ts
├── tests/
│   └── unit/               # Unit tests
└── dist/                   # Built output

Troubleshooting

CLI Not Found

If you get "CLI not found" errors:

  1. Ensure sudocode is installed and in your PATH
  2. Try setting SUDOCODE_PATH to the full path of the sudocode executable
  3. Restart Claude Code after configuration changes

Database Not Found

If you get database errors:

  1. Run sudocode init in your project directory first
  2. Ensure the working directory is set correctly
  3. Check that .sudocode/cache.db exists

Permission Errors

Ensure you have read/write access to:

  • The project directory
  • The .sudocode directory
  • The database file

Contributing

Contributions are welcome! Please see the main sudocode repository for contribution guidelines.

License

MIT License - see LICENSE file for details.

Links