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
64
//! MCP Protocol Types Module
//!
//! This module contains all the type definitions for the Model Context Protocol
//! organized into focused submodules based on the MCP 2025-11-25 specification.
//!
//! # Module Organization
//!
//! - [`crate::types::core`] - Core protocol types and utilities
//! - [`crate::types::capabilities`] - Client/server capability negotiation
//! - [`crate::types::content`] - Message content types (text, image, audio, resources)
//! - [`crate::types::requests`] - Request/response/notification enums
//! - [`crate::types::initialization`] - Connection handshake types
//! - [`crate::types::tools`] - Tool calling and execution
//! - [`crate::types::prompts`] - Prompt templates
//! - [`crate::types::resources`] - Resource access and templates
//! - [`crate::types::logging`] - Logging and progress tracking
//! - [`crate::types::sampling`] - LLM sampling (MCP 2025-11-25)
//! - [`crate::types::elicitation`] - User input elicitation (MCP 2025-11-25)
//! - [`crate::types::roots`] - Filesystem boundaries (MCP 2025-11-25)
//! - [`crate::types::completion`] - Argument autocompletion
//! - [`crate::types::ping`] - Connection testing
//! - [`crate::types::tasks`] - Tasks API for durable operations (MCP 2025-11-25)
// Re-export the canonical protocol types.
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use ;
pub use *;
pub use *;
// Re-export sampling content types from the canonical types crate so they are
// accessible alongside the protocol's `ContentBlock`. Use `SamplingContent` /
// `SamplingContentBlock` when constructing `SamplingMessage.content` and
// `CreateMessageResult.content`. `ToolUseContent` / `ToolResultContent` are the
// variant payloads for `SamplingContent::ToolUse` / `::ToolResult`.
pub use ;