pmcp 1.8.0

High-quality Rust SDK for Model Context Protocol (MCP) with full TypeScript SDK compatibility
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use pmcp::{Server, ServerCapabilities};

#[tokio::main]
async fn main() -> pmcp::Result<()> {
    let server = Server::builder()
        .name("test")
        .version("1.0.0")
        .capabilities(ServerCapabilities::default())
        .build()?;
    
    server.run_stdio().await?;
    Ok(())
}