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

executable-stories-mcp

v0.3.12

Published

Read-only MCP server for executable-stories StoryReport JSON behavior catalogs.

Readme

executable-stories-mcp

MCP server for executable-stories behavior catalogs.

It consumes story-report-json output from executable-stories-formatters and exposes scenario discovery and focused test-run tools for coding agents.

Create the Report

First run your test suite so the adapter writes a raw run (JS/TS reporters write reports/raw-run.json; the non-JS adapters write .executable-stories/raw-run.json). Then turn it into the StoryReport the server reads:

executable-stories format .executable-stories/raw-run.json \
  --format story-report-json,scenario-index-json,behavior-manifest-json \
  --output-dir reports \
  --output-name index

Default StoryReport path used by the MCP server:

reports/index.story-report.json

Run

npx executable-stories-mcp

The binary speaks the MCP stdio transport. To register it with an MCP client (Claude Code, Claude Desktop, Cursor), add it to the client's mcpServers config:

{
  "mcpServers": {
    "executable-stories": {
      "command": "npx",
      "args": ["executable-stories-mcp"]
    }
  }
}

For an HTTP interface, see HTTP API below.

Tools

Read-only (StoryReport query)

  • list_scenarios — scenario index items with status, source, tags, tickets, covers, steps, doc kinds, errors. Optional statuses / tags / sourceFiles filters
  • get_scenario — one scenario by id or exact title
  • get_failing_scenarios — failed scenarios only
  • get_scenarios_for_paths — code→scenario: scenarios whose declared covers globs match given product-code paths
  • get_feature_summary — per-feature pass/fail counts
  • get_scenario_index — Storybook-like scenario-index v1 artifact
  • get_behavior_manifest — tags, source files, doc coverage, debugger warnings (incl. missing-covers)
  • get_behavior_diff — compare two StoryReports by scenario id (regressed / fixed / added / removed)
  • get_deployment_status — latest recorded deployment per environment (from the deployment ledger)
  • get_environment_drift — scenario drift between two environments (what's in one but not the other)

Execution

  • run_scenario — run one scenario via the host framework (vitest, jest, playwright, or cypress). Executes real tests.

Each tool accepts optional reportPath to point at a specific StoryReport JSON file.

Contract

StoryReport v1 JSON remains the canonical artifact:

executable-stories format <raw-run.json> --format story-report-json

MCP is a query and optional execution layer over that artifact.

HTTP API (optional)

For non-MCP clients or local debugging, start the HTTP server programmatically (the executable-stories-mcp binary itself only speaks stdio):

import { startHttpServer } from "executable-stories-mcp/http";
await startHttpServer({ reportPath: "reports/index.story-report.json", port: 7357 });

Endpoints (each maps to the matching MCP tool):

  • GET /health
  • GET /scenarios (optional ?status=&tag=&sourceFile=) → list_scenarios
  • GET /scenarios/failingget_failing_scenarios
  • GET /scenarios/covering?path=…get_scenarios_for_paths
  • GET /scenarios/:idget_scenario
  • GET /scenarios-indexget_scenario_index
  • GET /featuresget_feature_summary
  • GET /manifestget_behavior_manifest
  • GET /diff?baseline=&current=get_behavior_diff
  • POST /run-scenariosrun_scenario

Every GET accepts a ?reportPath= query parameter.