mcp_protocol_sdk/core/mod.rs
1//! Core abstractions and types for the MCP SDK
2//!
3//! This module contains the fundamental building blocks for MCP implementations,
4//! including error handling, resource management, tool execution, and prompt handling.
5
6pub mod error;
7pub mod prompt;
8pub mod resource;
9pub mod tool;
10
11// Re-export commonly used items
12pub use error::{McpError, McpResult};
13pub use prompt::{Prompt, PromptHandler};
14pub use resource::{Resource, ResourceHandler, ResourceTemplate};
15pub use tool::{Tool, ToolHandler};
16
17// Re-export protocol types through core for convenience
18pub use crate::protocol::types::{
19 PromptArgument, PromptInfo, PromptMessage, PromptResult, ResourceInfo, ToolInfo,
20};