MCP.so
登录

MCP Runner

@cookiecad

基本信息

分类

其他

传输方式

stdio

作者

cookiecad

关于 MCP Runner

A TypeScript SDK for running MCP (Model Context Protocol) servers with process reuse capabilities

MCP Runner 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

MCP Runner 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is mcp-runner?

mcp-runner is a TypeScript SDK and CLI for running MCP (Model Context Protocol) servers. It reads configurations from cline_mcp_settings.json and allows reusable server processes with controlled cleanup, enabling multiple operations using the same server instance.

How to use mcp-runner?

Install via npm install, then use CLI commands (e.g., npm run cli -- list-tools <server-name> or npm run cli -- runserver <server-name> [tool-name] [params] [options]). Alternatively, import runServer and terminateServer in your TypeScript code.

Key features of mcp-runner

  • Server process reuse across multiple calls
  • Graceful termination with timeout handling
  • Automatic server lifecycle management
  • TypeScript support
  • Error handling and logging
  • Single server process at a time (singleton)

Use cases of mcp-runner

  • Running MCP servers from the command line
  • Integrating MCP server calls into TypeScript projects
  • Using mcp-runner from other MCP servers
  • Automating tool execution with reusable server instances

常见问题

1

Where does mcp-runner read server configurations from?

It reads from `cline_mcp_settings.json` located in the standard configuration directory.

2

What happens if no tool name is specified when running a server?

The first available tool is used automatically.

3

Does mcp-runner support output filtering?

Yes, the `--text` flag outputs only the text content instead of the full JSON response.

4

How does mcp-runner manage server processes?

The `ServerManager` is a singleton that ensures only one server process runs at a time; it handles lifecycle, connection, graceful termination, and cleanup.

5

Do I need to explicitly stop the server after use?

Yes, call `terminateServer()` when all operations are complete, or it will be terminated automatically on errors.

评论

其他 分类下的更多 MCP 服务器