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-stdio-wrapper

v0.1.1

Published

Development-first MCP wrapper for smoke-testing stdio MCP servers from another MCP client during active development.

Readme

MCP Stdio Wrapper

CI CodeQL OpenSSF Scorecard Release License: MIT GitHub stars

MCP Stdio Wrapper is a small MCP server that lets one MCP client launch and inspect another stdio MCP server on demand.

Its job is to remove a painful MCP development loop: some mainstream MCP hosts cache the real server process, so after every code change you end up refreshing the window or restarting the extension host just to smoke-test the change. This wrapper sits in front of the real target server and gives your agent a stable bridge for repeated smoke tests while the target implementation keeps changing underneath it.

Why This Exists

Use this project when:

  • you are actively developing a stdio MCP server
  • your main MCP host does not reliably reload the target server after each change
  • you still want an agent to list tools, call tools, read resources, and inspect prompts throughout development

This project is intentionally narrow. It is for local development and smoke testing, not for production traffic proxying.

The wrapper also exposes built-in guidance that agents can discover directly:

  • resource: wrapper://how-to-use
  • prompt: tool_usage_guide

How It Works

The wrapper exposes six generic bridge tools:

  • stdio_mcp_list_tools
  • stdio_mcp_call_tool
  • stdio_mcp_list_resources
  • stdio_mcp_read_resource
  • stdio_mcp_list_prompts
  • stdio_mcp_get_prompt

Each bridge call:

  1. launches the target stdio MCP server
  2. performs one MCP operation
  3. returns the result
  4. closes the target process

That means:

  • no persistent target session state
  • no hidden caching behavior
  • a clean target process per smoke test
  • easier debugging because target stderr is surfaced on failure

Quick Start

Clone the repo and install dependencies:

nvm use
npm install

Start the wrapper:

npm start

Once you publish the package to npm, this can also become:

npx mcp-stdio-wrapper

This repo is set up for npm trusted publishing from GitHub Actions after the initial package publish. See Publishing checklist for the first-publish and OIDC handoff steps.

Point your main MCP client at this wrapper, then use one of the bridge tools with launch input like:

{
  "command": "node",
  "args": ["C:\\path\\to\\your-mcp\\dist\\index.js"],
  "cwd": "C:\\path\\to\\your-mcp",
  "inheritParentEnv": true,
  "env": {
    "EXAMPLE_ENV": "value"
  },
  "timeoutMs": 30000
}

Then ask your agent to:

  • list tools from the real target server
  • call one target tool after each code change
  • verify resource reads or prompts

Tool Surface

Common launch fields:

  • command: target executable
  • args: target command arguments
  • cwd: optional target working directory
  • inheritParentEnv: when true, merge the wrapper process environment into the target launch
  • env: additional target environment variables
  • timeoutMs: max time for target launch and operation

Bridge operations:

  • stdio_mcp_list_tools: inspect target tools
  • stdio_mcp_call_tool: call one target tool
  • stdio_mcp_list_resources: inspect target resources
  • stdio_mcp_read_resource: read one target resource
  • stdio_mcp_list_prompts: inspect target prompts
  • stdio_mcp_get_prompt: fetch one target prompt definition

Wrapper guidance surfaces:

  • wrapper://how-to-use: plain-text usage guide
  • tool_usage_guide: prompt form of the same instructions

Safety Notes

  • This wrapper launches arbitrary commands supplied by the caller.
  • Treat launch arguments and env vars as sensitive.
  • Only use it with trusted target commands and trusted local projects.
  • Do not expose this as a public multi-tenant service.

Documentation

Star History

Star History Chart