| Crates.io | hanzo-mcp-core |
| lib.rs | hanzo-mcp-core |
| version | 0.1.0 |
| created_at | 2025-12-09 22:17:20.114369+00 |
| updated_at | 2025-12-09 22:17:20.114369+00 |
| description | Core traits and types for Hanzo MCP (Model Context Protocol) implementations |
| homepage | |
| repository | https://github.com/hanzoai/rust-sdk |
| max_upload_size | |
| id | 1976840 |
| size | 29,160 |
Core traits and types for Hanzo MCP (Model Context Protocol) implementations.
This crate provides the foundational types used across all Hanzo MCP crates:
McpClientConfig, McpServerConfig, McpServerSourceToolDefinition, ToolResult, McpToolInfoResourceDefinition[dependencies]
hanzo-mcp-core = "0.1"
use hanzo_mcp_core::{McpClientConfig, McpServerConfig, McpServerSource};
let config = McpClientConfig {
servers: vec![
McpServerConfig {
name: "example".to_string(),
source: McpServerSource::Http {
url: "http://localhost:3333".to_string(),
timeout_secs: Some(30),
headers: None,
},
..Default::default()
},
],
..Default::default()
};
This crate is part of the Hanzo MCP family:
hanzo-mcp - Unified crate (recommended)hanzo-mcp-core - Core types (this crate)hanzo-mcp-client - MCP clienthanzo-mcp-server - MCP serverMIT OR Apache-2.0