mcp-runner
@cookiecad
mcp-runner について
A TypeScript SDK for running MCP (Model Context Protocol) servers with process reuse capabilities
基本情報
設定
ツール
ツールは検出されませんでした
ツールは 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
FAQ from mcp-runner
Where does mcp-runner read server configurations from?
It reads from cline_mcp_settings.json located in the standard configuration directory.
What happens if no tool name is specified when running a server?
The first available tool is used automatically.
Does mcp-runner support output filtering?
Yes, the --text flag outputs only the text content instead of the full JSON response.
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.
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.
「その他」の他のコンテンツ
MaxKB
1Panel-dev🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
ACI: Open-Source Infra to Power Unified MCP Servers
aipotheosis-labsACI.dev is the open source tool-calling platform that hooks up 600+ tools into any agentic IDE or custom AI agent through direct function calling or a unified MCP server. The birthplace of VibeOps.
AutoBrowser MCP
autobrowser-aiBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
ghidraMCP
LaurieWiredMCP Server for Ghidra
🪟 Windows-MCP
CursorTouchMCP Server for Computer Use in Windows
コメント