1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//! Prelude module for convenient imports.
//!
//! Import everything you need with a single use statement:
//!
//! ```rust
//! use mcpkit::prelude::*;
//!
//! // Now you have access to all common types
//! let info = ServerInfo::new("my-server", "1.0.0");
//! let caps = ServerCapabilities::new().with_tools();
//! ```
//!
//! This module re-exports the most commonly used types from the MCP SDK,
//! making it easy to get started without having to import individual items.
//!
//! ## Included Types
//!
//! ### Serde (for convenience)
//! - `Serialize`, `Deserialize` - common derive traits
//! - `json!` - JSON value construction macro
//!
//! ### Core Types
//! - Protocol types (Request, Response, Notification, Message)
//! - Error types (`McpError`, `JsonRpcError`)
//! - Capability types (`ServerCapabilities`, `ClientCapabilities`)
//! - Result types (`CallToolResult`, `GetPromptResult`, etc.)
//!
//! ### Server Types
//! - Handler traits (`ToolHandler`, `ResourceHandler`, `PromptHandler`, etc.)
//! - Server and `ServerBuilder`
//! - Context and `ContextData`
//!
//! ### Transport Types
//! - Transport trait
//! - `TransportListener` trait
//! - `TransportMetadata`
//!
//! ### Macros
//! - `#[mcp_server]` - Main server macro
//! - `#[tool]` - Tool attribute
//! - `#[resource]` - Resource attribute
//! - `#[prompt]` - Prompt attribute
//! - `#[derive(ToolInput)]` - Parameter struct derive
// Core types
pub use *;
// Server types
pub use ;
// Transport types
pub use ;
// Macros - these are automatically available at crate root
pub use ;