Skip to content

Commit 95f2c41

Browse files
authored
chore: re-generated schema, fixed some comment typos (#50)
1 parent e8b03cf commit 95f2c41

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

src/generated_schema/2024_11_05/mcp_schema.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
/// modify or extend the implementations as needed, but please do so at your own risk.
66
///
77
/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
8-
/// Hash : 6828f3ef6300b25dd2aaff2a2e5e81188bdbd22e
9-
/// Generated at : 2025-03-11 19:03:43
8+
/// Hash : bb8f4b7323693910328f72f244352cd71a0689e6
9+
/// Generated at : 2025-03-15 09:27:41
1010
/// ----------------------------------------------------------------------------
1111
///
1212
/// MCP Protocol Version

src/generated_schema/2024_11_05/schema_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn detect_message_type(value: &serde_json::Value) -> MessageTypes {
5757
MessageTypes::Request
5858
}
5959

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

src/generated_schema/draft/mcp_schema.rs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
/// modify or extend the implementations as needed, but please do so at your own risk.
66
///
77
/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
8-
/// Hash : 6828f3ef6300b25dd2aaff2a2e5e81188bdbd22e
9-
/// Generated at : 2025-03-11 19:03:43
8+
/// Hash : bb8f4b7323693910328f72f244352cd71a0689e6
9+
/// Generated at : 2025-03-15 09:27:42
1010
/// ----------------------------------------------------------------------------
1111
///
1212
/// MCP Protocol Version
@@ -3562,6 +3562,10 @@ pub struct PingRequestParamsMeta {
35623562
/// "progressToken"
35633563
/// ],
35643564
/// "properties": {
3565+
/// "message": {
3566+
/// "description": "An optional message describing the current progress.",
3567+
/// "type": "string"
3568+
/// },
35653569
/// "progress": {
35663570
/// "description": "The progress thus far. This should increase every time progress is made, even if the total is unknown.",
35673571
/// "type": "number"
@@ -3608,6 +3612,10 @@ impl ProgressNotification {
36083612
/// "progressToken"
36093613
/// ],
36103614
/// "properties": {
3615+
/// "message": {
3616+
/// "description": "An optional message describing the current progress.",
3617+
/// "type": "string"
3618+
/// },
36113619
/// "progress": {
36123620
/// "description": "The progress thus far. This should increase every time progress is made, even if the total is unknown.",
36133621
/// "type": "number"
@@ -3626,6 +3634,9 @@ impl ProgressNotification {
36263634
/// </details>
36273635
#[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)]
36283636
pub struct ProgressNotificationParams {
3637+
///An optional message describing the current progress.
3638+
#[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
3639+
pub message: ::std::option::Option<::std::string::String>,
36293640
pub progress: f64,
36303641
///The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
36313642
#[serde(rename = "progressToken")]

src/generated_schema/draft/schema_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn detect_message_type(value: &serde_json::Value) -> MessageTypes {
5757
MessageTypes::Request
5858
}
5959

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

0 commit comments

Comments
 (0)