New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

codeops-mcp

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codeops-mcp

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

Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
9
Maintainers
1
Weekly downloads
 
Created
Source

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

RuleDescription
code30 coding standards: DRY, testing, documentation, architecture, type safety
testingTest commands, workflows, coverage requirements, debugging strategies
git-commandsGit commit protocols (gitcm/gitcmp), message format, push workflow
make_planComplete protocol for creating and executing multi-document implementation plans
plans10 rules for structuring plans: phases, tasks, dependencies, architecture
agentsMandatory AI agent behavior: compliance, context management, multi-session execution
project-templateTemplate for .clinerules/project.md — project-specific toolchain configuration

MCP Tools

ToolDescription
get_ruleGet any rule document by name (supports aliases like "git", "test")
list_rulesList all available rules grouped by category
search_rulesFull-text search across all rules with TF-IDF ranking
analyze_projectKiller feature — Scan a project directory and auto-generate project.md
get_setup_guideStep-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:

  • Layer 1: Universal rules (bundled in this package) — Language-agnostic standards
  • 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

  • Run analyze_project("/path/to/your/project") to auto-detect your toolchain
  • Save the output to .clinerules/project.md in your project
  • 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

Keywords

mcp

FAQs

Package last updated on 16 Feb 2026

Related posts