Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions examples/mcp_client_handle_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,18 +122,9 @@ fn handle_message(message_payload: &str) -> std::result::Result<(), AppError> {
ServerResult::ListToolsResult(list_tools_result) => {
dbg!(list_tools_result);
}
#[cfg(any(feature = "2025_03_26", feature = "2024_11_05"))]
ServerResult::CallToolResult(call_tool_result) => {
dbg!(call_tool_result);
}
#[cfg(feature = "draft")]
ServerResult::CallToolUnstructuredResult(call_tool_unstructured_result) => {
dbg!(call_tool_unstructured_result);
}
#[cfg(feature = "draft")]
ServerResult::CallToolStructuredResult(call_tool_structured_result) => {
dbg!(call_tool_structured_result);
}
ServerResult::CompleteResult(complete_result) => {
dbg!(complete_result);
}
Expand Down
4 changes: 4 additions & 0 deletions src/generated_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ pub use mcp_schema::*;
#[cfg(all(feature = "schema_utils", feature = "draft"))]
#[path = "generated_schema/draft/schema_utils.rs"]
pub mod schema_utils;

#[path = "generated_schema/protocol_version.rs"]
mod protocol_version;
pub use protocol_version::*;
2 changes: 1 addition & 1 deletion src/generated_schema/2024_11_05/mcp_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
///
/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
/// Hash : UNKNOWN
/// Generated at : 2025-05-20 20:52:14
/// Generated at : 2025-05-26 21:28:07
/// ----------------------------------------------------------------------------
///
/// MCP Protocol Version
Expand Down
3 changes: 2 additions & 1 deletion src/generated_schema/2024_11_05/schema_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub enum MessageTypes {
/// Implements the `Display` trait for the `MessageTypes` enum,
/// allowing it to be converted into a human-readable string.
impl Display for MessageTypes {
/// Formats the `MessageTypes` enum variant as a string.
/// Formats the `MessageTypes` enum variant as a string.
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
Expand Down Expand Up @@ -1071,6 +1071,7 @@ impl FromStr for ServerJsonrpcResponse {

/// To determine standard and custom results from the server side
/// Custom results (CustomResult) are of type serde_json::Value and can be deserialized into any custom type.
#[allow(clippy::large_enum_variant)]
#[derive(::serde::Serialize, Clone, Debug)]
#[serde(untagged)]
pub enum ResultFromServer {
Expand Down
2 changes: 1 addition & 1 deletion src/generated_schema/2025_03_26/mcp_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
///
/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
/// Hash : UNKNOWN
/// Generated at : 2025-05-20 20:52:15
/// Generated at : 2025-05-26 21:28:07
/// ----------------------------------------------------------------------------
///
/// MCP Protocol Version
Expand Down
Loading