Skip to content

chore: re-generated schema, fixed some comment typos #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 15, 2025
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
4 changes: 2 additions & 2 deletions src/generated_schema/2024_11_05/mcp_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
/// modify or extend the implementations as needed, but please do so at your own risk.
///
/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
/// Hash : 6828f3ef6300b25dd2aaff2a2e5e81188bdbd22e
/// Generated at : 2025-03-11 19:03:43
/// Hash : bb8f4b7323693910328f72f244352cd71a0689e6
/// Generated at : 2025-03-15 09:27:41
/// ----------------------------------------------------------------------------
///
/// MCP Protocol Version
Expand Down
2 changes: 1 addition & 1 deletion src/generated_schema/2024_11_05/schema_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn detect_message_type(value: &serde_json::Value) -> MessageTypes {
MessageTypes::Request
}

/// Represents a generic MCP (Model Content Protocol) message.
/// Represents a generic MCP (Model Context Protocol) message.
/// This trait defines methods to classify and extract information from messages.
pub trait RPCMessage: MCPMessage {
fn request_id(&self) -> Option<&RequestId>;
Expand Down
15 changes: 13 additions & 2 deletions src/generated_schema/draft/mcp_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
/// modify or extend the implementations as needed, but please do so at your own risk.
///
/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
/// Hash : 6828f3ef6300b25dd2aaff2a2e5e81188bdbd22e
/// Generated at : 2025-03-11 19:03:43
/// Hash : bb8f4b7323693910328f72f244352cd71a0689e6
/// Generated at : 2025-03-15 09:27:42
/// ----------------------------------------------------------------------------
///
/// MCP Protocol Version
Expand Down Expand Up @@ -3562,6 +3562,10 @@ pub struct PingRequestParamsMeta {
/// "progressToken"
/// ],
/// "properties": {
/// "message": {
/// "description": "An optional message describing the current progress.",
/// "type": "string"
/// },
/// "progress": {
/// "description": "The progress thus far. This should increase every time progress is made, even if the total is unknown.",
/// "type": "number"
Expand Down Expand Up @@ -3608,6 +3612,10 @@ impl ProgressNotification {
/// "progressToken"
/// ],
/// "properties": {
/// "message": {
/// "description": "An optional message describing the current progress.",
/// "type": "string"
/// },
/// "progress": {
/// "description": "The progress thus far. This should increase every time progress is made, even if the total is unknown.",
/// "type": "number"
Expand All @@ -3626,6 +3634,9 @@ impl ProgressNotification {
/// </details>
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
pub struct ProgressNotificationParams {
///An optional message describing the current progress.
#[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
pub message: ::std::option::Option<::std::string::String>,
pub progress: f64,
///The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
#[serde(rename = "progressToken")]
Expand Down
2 changes: 1 addition & 1 deletion src/generated_schema/draft/schema_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn detect_message_type(value: &serde_json::Value) -> MessageTypes {
MessageTypes::Request
}

/// Represents a generic MCP (Model Content Protocol) message.
/// Represents a generic MCP (Model Context Protocol) message.
/// This trait defines methods to classify and extract information from messages.
pub trait RPCMessage: MCPMessage {
fn request_id(&self) -> Option<&RequestId>;
Expand Down