Available on crate feature
stdio-server only.Expand description
Stdio transport for MCP Server.
This module provides McpStdioServer which wraps the core McpServer
and handles stdin/stdout I/O.
§Example
ⓘ
use mcp::server::{McpServerConfig, stdio::McpStdioServer};
let config = McpServerConfig::builder()
.name("my-server")
.version("1.0.0")
.with_tool(MyTool)
.build();
McpStdioServer::run(config).await?;Structs§
- McpStdio
Server - MCP Server with stdio transport.