hanzo-mcp-core

Crates.iohanzo-mcp-core
lib.rshanzo-mcp-core
version0.1.0
created_at2025-12-09 22:17:20.114369+00
updated_at2025-12-09 22:17:20.114369+00
descriptionCore traits and types for Hanzo MCP (Model Context Protocol) implementations
homepage
repositoryhttps://github.com/hanzoai/rust-sdk
max_upload_size
id1976840
size29,160
z (zeekay)

documentation

README

hanzo-mcp-core

Core traits and types for Hanzo MCP (Model Context Protocol) implementations.

Overview

This crate provides the foundational types used across all Hanzo MCP crates:

  • Configuration types: McpClientConfig, McpServerConfig, McpServerSource
  • Tool types: ToolDefinition, ToolResult, McpToolInfo
  • Resource types: ResourceDefinition
  • Protocol types: Server capabilities, client info, etc.

Usage

[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()
};

Part of Hanzo MCP

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 client
  • hanzo-mcp-server - MCP server

License

MIT OR Apache-2.0

Commit count: 0

cargo fmt