MCP.so
登录

MCP Runner

@Streamline-TS

关于 MCP Runner

Runs and manages MCP servers

基本信息

分类

其他

许可证

MIT

运行时

rust

传输方式

stdio

发布者

Streamline-TS

配置

暂无标准配置

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

代码仓库

工具

未检测到工具

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

概览

What is MCP Runner?

MCP Runner is a Rust library for running and interacting with Model Context Protocol (MCP) servers locally. It provides a complete solution for managing MCP server processes, communicating via JSON-RPC, and optionally proxying Server-Sent Events (SSE) to enable client connections.

How to use MCP Runner?

Add mcp-runner = "0.3.1" to your Cargo.toml, then create a McpRunner from a JSON config file, a JSON string, or programmatically. Use start_all_with_proxy() to start servers and the SSE proxy, then get a client with get_client() to list tools or call them.

Key features of MCP Runner

  • Start and manage MCP server processes locally
  • Configure multiple servers through a unified interface
  • Communicate with MCP servers using JSON-RPC
  • List and call tools exposed by MCP servers
  • Access resources provided by MCP servers
  • Proxy Server-Sent Events (SSE) to enable HTTP clients

Use cases of MCP Runner

  • Integrate MCP servers into a Rust application
  • Manage multiple MCP servers from a single codebase
  • Expose MCP servers to web clients via HTTP and SSE
  • Automate tool calling across different MCP servers

FAQ from MCP Runner

What is MCP Runner?

MCP Runner is a Rust library that manages the lifecycle of MCP server processes and provides a client API for interacting with them via JSON-RPC.

How do I install MCP Runner?

Add mcp-runner = "0.3.1" to your Cargo.toml dependencies.

How do I configure MCP Runner?

Create a JSON configuration file with mcpServers (each with command and args) and optionally an sseProxy block. Load it via McpRunner::from_config_file("config.json")?.

What is the SSE proxy and how do I use it?

The SSE proxy exposes MCP servers over HTTP, allowing web clients to connect via SSE for real‑time updates. Enable it by adding an sseProxy section to your config; start it with start_all_with_proxy().

How do I handle errors in MCP Runner?

MCP Runner uses a custom Error type covering configuration, server lifecycle, communication, and serialization errors. Match on variants like Error::ServerNotFound or Error::Communication for detailed handling.

评论

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