tower_mcp_types/lib.rs
1//! Lightweight MCP protocol and error types.
2//!
3//! This crate provides the core type definitions for the
4//! [Model Context Protocol](https://modelcontextprotocol.io) (MCP) without
5//! pulling in runtime dependencies like Tower, Tokio, or axum.
6//!
7//! Use this crate directly when you need MCP types for serialization,
8//! code generation, or editor integrations. For a full MCP server/client
9//! implementation, see [`tower-mcp`](https://docs.rs/tower-mcp).
10
11pub mod error;
12pub mod protocol;
13
14// Convenience re-exports
15pub use error::{
16 BoxError, Error, ErrorCode, JsonRpcError, McpErrorCode, Result, ResultExt, ToolError,
17};
18pub use protocol::{CallToolResult, Content, GetPromptResult, ReadResourceResult};