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

codeops-mcp

v1.1.0

Published

MCP (Model Context Protocol) server providing AI coding agents with universal, language-agnostic development rules. Includes coding standards, testing workflows, git conventions, plan creation/execution protocols, and intelligent project analysis for auto

Downloads

370

Readme

codeops-mcp

MCP (Model Context Protocol) server providing AI coding agents with universal, language-agnostic development rules.

What It Does

codeops-mcp bundles 7 curated rule documents that teach AI agents how to code, test, plan, commit, and behave — across any programming language and project type. It exposes these rules via 5 MCP tools.

Rule Documents

| Rule | Description | |------|-------------| | code | 30 coding standards: DRY, testing, documentation, architecture, type safety | | testing | Test commands, workflows, coverage requirements, debugging strategies | | git-commands | Git commit protocols (gitcm/gitcmp), message format, push workflow | | make_plan | Complete protocol for creating and executing multi-document implementation plans | | plans | 10 rules for structuring plans: phases, tasks, dependencies, architecture | | agents | Mandatory AI agent behavior: compliance, context management, multi-session execution | | project-template | Template for .clinerules/project.md — project-specific toolchain configuration |

MCP Tools

| Tool | Description | |------|-------------| | get_rule | Get any rule document by name (supports aliases like "git", "test") | | list_rules | List all available rules grouped by category | | search_rules | Full-text search across all rules with TF-IDF ranking | | analyze_project | Killer feature — Scan a project directory and auto-generate project.md | | get_setup_guide | Step-by-step guide for setting up CodeOps in a project |

Installation

# Global install
npm install -g codeops-mcp

# Or with yarn
yarn global add codeops-mcp

MCP Configuration

Add to your MCP client configuration (e.g., Cline, Claude Desktop):

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

Custom docs path

{
  "mcpServers": {
    "codeops": {
      "command": "codeops-mcp",
      "args": ["/path/to/custom/docs"]
    }
  }
}

Or via environment variable:

{
  "mcpServers": {
    "codeops": {
      "command": "codeops-mcp",
      "env": {
        "CODEOPS_DOCS_PATH": "/path/to/custom/docs"
      }
    }
  }
}

How It Works

The two-layer architecture:

  1. Layer 1: Universal rules (bundled in this package) — Language-agnostic standards
  2. Layer 2: Project-specific config (.clinerules/project.md in your project) — Toolchain, commands, conventions

All generic rules reference project.md for project-specific settings like build commands, test commands, package manager, etc.

Quick Setup

  1. Run analyze_project("/path/to/your/project") to auto-detect your toolchain
  2. Save the output to .clinerules/project.md in your project
  3. The AI agent automatically applies universal rules using your project's settings

Development

# Install dependencies
yarn install

# Build
yarn build

# Run tests
yarn test

# Watch mode
yarn test:watch

Architecture

src/
├── index.ts              # MCP server entry point
├── config.ts             # Configuration resolution
├── types/
│   └── index.ts          # Type definitions & constants
├── store/
│   ├── rule-store.ts     # In-memory document store
│   └── search-engine.ts  # TF-IDF search engine
├── tools/
│   ├── get-rule.ts       # Get rule by name
│   ├── list-rules.ts     # List all rules
│   ├── search-rules.ts   # Full-text search
│   ├── analyze-project.ts # Project analysis & project.md generation
│   └── get-setup-guide.ts # Setup instructions
└── __tests__/
    ├── store/            # Store & search engine tests
    └── tools/            # Tool integration tests
docs/                     # Bundled rule markdown files

License

MIT