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

mcp-mock-sim

v1.0.2

Published

CLI tool for running, recording and replaying MCP tool-call scenarios

Readme

mcp-mock-sim (repository: fury-r/mcp-sim)

CLI for running, recording, replaying, and validating MCP tool-call scenarios.

Install

npm install
npm run build
npm link

Run locally from source:

npm run start -- --help

Or run the built CLI:

node dist/cli.js --help

Commands

run <scenario>

Run a scenario file against a live MCP server.

mcp-mock-sim run examples/scenario.yaml --server stdio --cmd "node server.js"

Options:

  • --server <type>: stdio or http (default: stdio)
  • --cmd <command>: command used to launch the server in stdio mode
  • --url <url>: MCP server URL in http mode
  • --format <format>: pretty or json (default: pretty)

record

Record tool calls from a live server into fixtures.

mcp-mock-sim record \
  --server http \
  --url http://localhost:3000 \
  --out fixtures \
  --tools 'github_get_issue:{"repo":"my-org/my-repo","issue_number":1}'

Options:

  • --server <type> (required): stdio or http
  • --cmd <command>: command used to launch the server in stdio mode
  • --url <url>: MCP server URL in http mode
  • --out <dir> (required): output fixture directory
  • --tools <tools>: comma-separated tool:jsonArgs calls to record

replay <scenario>

Replay a scenario using fixture files (no network calls).

mcp-mock-sim replay examples/scenario.yaml --fixtures fixtures --mode strict

Options:

  • --fixtures <dir> (required): fixture directory
  • --mode <mode>: strict or lenient (default: strict)
  • --format <format>: pretty or json (default: pretty)

validate <scenario>

Validate scenario YAML syntax/schema.

mcp-mock-sim validate examples/scenario.yaml

Scenario file basics

See /examples/scenario.yaml for a complete example. A scenario supports:

  • top-level metadata: version, name, optional description
  • vars and ${vars.*} interpolation
  • runtime environment interpolation with ${env.*}
  • per-step MCP calls with tool, input, optional expect, save_as, retries, timeout_ms
  • optional redact rules (pattern and/or pointer) for sanitized logs and fixtures

Release and Publish Flow

Flow diagram:

  1. Code is pushed to master (including merged PRs).
  2. Release Tag workflow runs.
  3. Version is bumped and committed.
  4. A Git tag vX.Y.Z is created and pushed.
  5. Publish to npm workflow runs.
  6. Package is published to npm registry.

Mermaid workflow:

flowchart TD
  A[Push or Merge to master] --> B[GitHub Action: Release Tag]
  B --> C[Determine Next Version]
  C --> D[Commit package.json and package-lock.json]
  D --> E[Create and Push Tag vX.Y.Z]
  E --> F[GitHub Action: Publish to npm]
  F --> G[Verify Version and Install Dependencies]
  G --> H[npm publish --access public --provenance]

Development

npm run lint
npm run build
npm test