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

playbooks-mcp

v1.3.0

Published

MCP server that exposes OpenMono Playbooks — typed, multi-step AI workflows with human-in-the-loop gates, checkpointing, and composability — to any MCP-compatible agent.

Readme

Playbooks MCP

Install in VS Code Install on Open VSX npm

MCP server that exposes OpenMono Playbooks — typed, multi-step AI workflows with human-in-the-loop gates, checkpointing, and composability — to any MCP-compatible agent.

Inspired by and derived from the OpenMonoAgent.ai playbook engine. See ATTRIBUTION.md.


What Are Playbooks?

Playbooks are declarative, versioned, multi-step AI workflows encoded as YAML+Markdown files (PLAYBOOK.md). They enable repeatable software engineering processes — commits, releases, code reviews, deployments, incident response — to be executed by an AI agent with precise control over tool access, human checkpoints, parameter validation, step ordering, and fault tolerance via checkpoint/resume.

A Playbook at a Glance

---
name: commit
version: 1.0.0
description: Inspect staged changes, generate a conventional commit message, and commit.
trigger: auto
trigger-patterns:
  - "commit *"
parameters:
  scope:
    type: String
    required: false
    hint: "Conventional commit scope (e.g. auth, ui, api)"
  message:
    type: String
    required: false
    hint: "Override the generated commit message subject line"
allowed-tools:
  - "*"
context-mode: Selective
tags:
  - git
  - workflow
---
You are a Git commit assistant. Your job is to:
1. Run `git status` and `git diff --staged` to understand what is staged...
2. Analyse the diff and write a concise conventional commit message...
3. Run `git commit -m "<message>"`...

How It Compares

| | Playbooks | Skills (Claude Code) | MCP Servers | | --------------------- | -------------------------------------- | --------------------- | ------------------------ | | What it is | Workflow orchestration engine | Instruction injection | Tool/capability provider | | Format | YAML frontmatter + Markdown body | Plain Markdown | Code (various languages) | | Parameters | Typed, validated, defaults, enums | None | Defined per tool | | Multi-step | ✅ DAG with dependencies | ❌ Single-shot | ❌ Per-tool | | Human gates | ✅ 4 levels (Confirm, Review, Approve) | ❌ | ❌ | | Checkpoint/resume | ✅ After every step | ❌ | ❌ | | Composability | ✅ Playbooks call playbooks | ❌ | ❌ (servers can compose) | | State | Named outputs, persisted to disk | Stateless | Optional server-side |

Playbooks absorb the Skill layer entirely. A Skill ("You are a git commit assistant...") is just a Playbook with zero steps, zero parameters, and zero gates — the Markdown body is the system prompt. Playbooks are a strict superset.

Playbooks and MCP are complementary: MCP provides tools, Playbooks orchestrate their use across multi-step workflows with safety gates.

┌───────────────────────────────────────────────┐
│  PLAYBOOKS                                    │
│  "What to do, in what order, with what checks"│
│  (Workflow orchestration layer)               │
├───────────────────────────────────────────────┤
│  TOOLS + MCP                                  │
│  "What capabilities are available"            │
│  (Capability layer)                           │
└───────────────────────────────────────────────┘

MCP Server Tools

This server exposes the following tools to any MCP-compatible agent:

| Tool | Description | | -------------------- | -------------------------------------------------------------------------------- | | list_playbooks | Discover all available playbooks with names, descriptions, parameters, and tags | | run_playbook | Execute a playbook by name with typed parameters; streams step-by-step status | | complete_step | Mark the current playbook step as completed and advance to the next | | skip_step | Skip the current step and advance | | fail_step | Mark the current step as failed and terminate the playbook run | | resume_playbook | Resume an interrupted playbook from its last checkpoint | | get_playbook_state | Inspect current or final state of a playbook run | | validate_playbook | Dry-run validation — check syntax, parameters, and step dependencies | | acknowledge_gate | Acknowledge a human-in-the-loop gate (Confirm, Review, Approve) on a paused step | | match_playbook | Match user input against playbook trigger patterns with weighted scoring | | health_check | Server readiness probe — status, uptime, active runs, search paths |

Playbook Library

Looking for ready-made playbooks? r-playbooks is a curated library of 50+ playbooks for R development workflows — package development, testing, Shiny, tidymodels, DuckDB, CRAN submission, and more.

Browse and download at: davidrsch.github.io/r-playbooks


Quick Start

Prerequisites

  • Node.js >= 18
  • An MCP-compatible agent (Claude Code, Claude Desktop, Cline, Continue, etc.)

Installation

Claude Code (VSCode extension)

claude mcp add --transport stdio --scope user playbooks-mcp -- npx -y playbooks-mcp

Claude Desktop / Cline / Continue

Add to your agent's MCP configuration file (e.g., claude_desktop_config.json, cline_mcp_settings.json):

{
  "mcpServers": {
    "playbooks-mcp": {
      "command": "npx",
      "args": ["-y", "playbooks-mcp"]
    }
  }
}

VS Code extension (GitHub Copilot agent mode)

Install from the VS Code Marketplace or Open VSX — the MCP server registers automatically, no configuration needed.

Add Playbooks

Create a .openmono/playbooks/ directory in your project or home directory, then add playbook subdirectories:

.openmono/playbooks/
├── commit/
│   └── PLAYBOOK.md
├── release/
│   ├── PLAYBOOK.md
│   ├── scripts/
│   │   ├── pre-flight.sh
│   │   ├── validate-tests.sh
│   │   └── tag-and-push.sh
│   └── steps/
│       ├── 01-analyze.md
│       ├── 02-changelog.md
│       └── 03-version.md
└── incident-response/
    └── PLAYBOOK.md

See the How to Create Playbooks guide and Playbook Reference for the full specification.

Documentation

Playbook Features

  • Typed parameters — String, Number, Boolean, Array with validation, defaults, enums, min/max
  • Multi-step DAG — Steps with requires dependencies, topologically sorted
  • Human gatesConfirm (y/N), Review (inspect output), Approve (full preview)
  • Named step outputs{{state.<key>}} for downstream step consumption
  • Shell integration — Shell scripts as step validators; live {{shell:<cmd>}} resolution
  • Template variables{{params.<name>}}, {{state.<key>}}, {{shell:<cmd>}}, {{file:<path>}}, {{env.*}}
  • Sub-playbook composition — One playbook can invoke another via playbook: field on a step
  • Sub-agent delegation — Steps can run under a specific agent with filtered tool sets
  • Checkpoint/resume — State persisted after every step; resume from last completed
  • Pattern-based auto-trigger — Wildcard matching with scoring
  • Constraint injection — Safety guardrails merged into every step context
  • Context modesFull, Selective, or Fork per playbook
  • SemVer versioning — Tracked and validated

License

MIT — see LICENSE.

Attribution

This project is inspired by and derives its playbook engine from OpenMonoAgent.ai by StartupHakk. See ATTRIBUTION.md for full details.