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

@cobusgreyling/loop-mcp-server

v1.0.0

Published

MCP server for loop-engineering — exposes patterns, skills, state, and audit tools as runtime-queryable resources for AI agents

Readme

@cobusgreyling/loop-mcp-server

MCP (Model Context Protocol) server for loop-engineering — exposes patterns, skills, state, budget, and audit tools as runtime-queryable resources for AI agents.

Instead of stuffing all loop documentation into the prompt, agents can query only what they need on-demand via MCP.

Quick Start

npx @cobusgreyling/loop-mcp-server

From a cloned loop-engineering repo:

cd tools/mcp-server && npm ci && npm test
node dist/index.js

Set LOOP_PROJECT_ROOT to your target project (defaults to cwd).

Configure in Claude Code / Grok / any MCP client

Add to your MCP config (.mcp.json or equivalent):

{
  "mcpServers": {
    "loop-engineering": {
      "command": "npx",
      "args": ["-y", "@cobusgreyling/loop-mcp-server"],
      "env": {
        "LOOP_PROJECT_ROOT": "."
      }
    }
  }
}

Resources

| URI | Description | |-----|-------------| | loop://registry | Pattern registry (all 7 patterns with metadata, costs, phases) | | loop://config | LOOP.md — cadence, budget, gates, scheduling | | loop://budget | loop-budget.md — token caps, kill switch | | loop://run-log | loop-run-log.md — append-only run history | | loop://safety | Safety docs — denylists, auto-merge policy, MCP scopes | | loop://patterns/{id} | Full pattern documentation by ID | | loop://skills/{name} | Skill definition (SKILL.md) by name | | loop://state/{file} | State file content |

Tools

| Tool | Description | |------|-------------| | loop_list_patterns | List all patterns with goals, cadences, risk levels | | loop_list_skills | List available skills with locations | | loop_list_state_files | List state files in the project | | loop_get_pattern | Get full pattern docs + registry metadata | | loop_get_skill | Get SKILL.md content for a named skill | | loop_get_state | Read a state file for current loop status | | loop_recommend_pattern | Recommend patterns for a use case description | | loop_estimate_cost | Estimate daily token cost for a pattern at L1/L2/L3 |

Environment

| Variable | Default | Description | |----------|---------|-------------| | LOOP_PROJECT_ROOT | cwd() | Root directory of the project to serve |

Development

cd tools/mcp-server
npm install
npm run build
npm test

Architecture

Agent (Claude Code / Grok / Codex)
  │
  ├─ MCP Resource Read ──→ loop://patterns/daily-triage
  ├─ MCP Tool Call ──→ loop_recommend_pattern("watch CI failures")
  └─ MCP Tool Call ──→ loop_estimate_cost("ci-sweeper", "L2")
  │
  ▼
loop-mcp-server (stdio transport)
  │
  ├─ resolver.ts ──→ reads patterns/, skills/, STATE.md, LOOP.md, etc.
  └─ index.ts ──→ MCP protocol handlers

The server reads from the local filesystem at LOOP_PROJECT_ROOT. It is read-only — it never writes to the project.

See Also