| Crates.io | turbomcp-core |
| lib.rs | turbomcp-core |
| version | 3.0.0-beta.3 |
| created_at | 2025-08-26 17:15:43.320228+00 |
| updated_at | 2026-01-22 15:58:44.794265+00 |
| description | Core MCP types and primitives - no_std compatible for WASM targets |
| homepage | https://turbomcp.org |
| repository | https://github.com/Epistates/turbomcp |
| max_upload_size | |
| id | 1811550 |
| size | 276,834 |
Core MCP types and primitives - no_std compatible for WASM targets.
This crate provides the foundational types for the Model Context Protocol (MCP) that can be used in no_std environments including WebAssembly. It is part of the TurboMCP v3.0 architecture.
std (default): Enable standard library supportrich-errors: Enable UUID-based error tracking (requires std)wasm: Enable WASM-specific optimizations[dependencies]
turbomcp-core = { version = "3.0", default-features = false }
McpError type with JSON-RPC code mappinguse turbomcp_core::types::{Tool, ToolInputSchema};
use turbomcp_core::error::{McpError, ErrorKind, McpResult};
// Create a tool definition
let tool = Tool::new("calculator")
.with_description("Performs calculations")
.with_input_schema(ToolInputSchema::object());
// Handle errors
fn my_handler() -> McpResult<String> {
Err(McpError::tool_not_found("unknown_tool"))
}
This crate is the foundation of the TurboMCP v3 architecture:
turbomcp-core (no_std)
└── turbomcp-protocol (async runtime)
└── turbomcp-server
└── turbomcp-client
MIT