solidmcp 0.4.0

A high-level Rust toolkit for building Model Context Protocol (MCP) servers with type safety and minimal boilerplate. Supports tools, resources, and prompts with automatic JSON schema generation.
Documentation
//! MCP Server Example
//!
//! Example application showing how to run the MCP server.

use anyhow::Result;
use solidmcp::McpServer;

#[tokio::main]
async fn main() -> Result<()> {
    // Initialize logging
    tracing_subscriber::fmt()
        .with_env_filter("solidmcp=debug,info")
        .init();

    // Create and start the MCP server
    let mut server = McpServer::new().await?;

    // Start server on port 3000
    let port = 3000;
    println!("Starting MCP server on port {port}");
    server.start(port).await?;

    Ok(())
}