MCP Stdio Wrapper
A development tool that serves as a bridge to launch and inspect other stdio MCP servers on demand, ensuring a clean process for every operation. It enables developers to bypass host caching issues by providing tools to list and call target server components during active development.
README
MCP Stdio Wrapper
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 two modes.
Default one-shot tools:
stdio_mcp_list_toolsstdio_mcp_call_toolstdio_mcp_list_resourcesstdio_mcp_read_resourcestdio_mcp_list_promptsstdio_mcp_get_prompt
Each one-shot bridge call:
- launches the target stdio MCP server
- performs one MCP operation
- returns the result
- closes the target process
Optional session tools:
stdio_mcp_open_sessionstdio_mcp_get_sessionstdio_mcp_close_sessionstdio_mcp_session_list_toolsstdio_mcp_session_call_toolstdio_mcp_session_list_resourcesstdio_mcp_session_read_resourcestdio_mcp_session_list_promptsstdio_mcp_session_get_prompt
That means:
- a clean target process per one-shot smoke test
- an explicit short-lived session option for multi-step validation
- no hidden caching behavior
- 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
The published package can also be run directly with:
npx mcp-stdio-wrapper
The package is published at https://www.npmjs.com/package/mcp-stdio-wrapper.
This repo is set up for npm trusted publishing from GitHub Actions. See Publishing checklist for the initial publish sequence and the OIDC trusted-publishing handoff.
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
If you need to preserve target process state across several calls, open an explicit session first and then use the stdio_mcp_session_* tools before closing it.
Tool Surface
Common launch fields:
command: target executableargs: target command argumentscwd: optional target working directoryinheritParentEnv: whentrue, merge the wrapper process environment into the target launchenv: additional target environment variablestimeoutMs: max time for target launch and operation
Bridge operations:
stdio_mcp_list_tools: inspect target toolsstdio_mcp_call_tool: call one target toolstdio_mcp_list_resources: inspect target resourcesstdio_mcp_read_resource: read one target resourcestdio_mcp_list_prompts: inspect target promptsstdio_mcp_get_prompt: fetch one target prompt definition
Session operations:
stdio_mcp_open_session: launch one target process and keep it alive for multiple operationsstdio_mcp_get_session: inspect session diagnostics like status, timestamps, pid, exit code, and stderr tailstdio_mcp_close_session: close a live or terminal session and remove its recordstdio_mcp_session_list_tools: inspect tools through an existing sessionstdio_mcp_session_call_tool: call one target tool through an existing sessionstdio_mcp_session_list_resources: inspect resources through an existing sessionstdio_mcp_session_read_resource: read one target resource through an existing sessionstdio_mcp_session_list_prompts: inspect prompts through an existing sessionstdio_mcp_session_get_prompt: fetch one target prompt definition through an existing session
Wrapper guidance surfaces:
wrapper://how-to-use: plain-text usage guidetool_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
- Setup guide
- Tool reference
- Troubleshooting
- Branching strategy
- Maintainer guide
- Publishing checklist
- Fuzzing workflow
- Security policy
- Contributing
- Changelog
Star History
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。