You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Cargo.toml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -39,10 +39,10 @@ features = ["latest", "schema_utils"]
39
39
default = ["latest", "schema_utils"] # Default features
40
40
41
41
# activates the latest MCP schema version, this will be updated once a new version of schema is published
42
-
latest = ["2024_11_05"]
42
+
latest = ["2025_03_26"]
43
43
44
-
#enables the draft version of the mcp schema
45
-
draft = []
44
+
#enabled mcp schema version 2025_03_26
45
+
2025_03_26 = []
46
46
# enabled mcp schema version 2024_11_05
47
47
2024_11_05 = []
48
48
# Enables `schema_utils`, which provides utility types that simplify communication with MCP messages, improving ease of use while reducing potential mistakes ane errors when constructing messages.
A type-safe implementation of the official Model Context Protocol (MCP) schema in Rust.
12
+
A type-safe implementation of the official Model Context Protocol (MCP) schema in Rust, supporting both the `2024_11_05` and `2025_03_26` versions.
13
13
14
14
The MCP schemas in this repository are [automatically generated](#how-are-schemas-generated) from the official Model Context Protocol, ensuring they are always up-to-date and aligned with the latest official specifications.
15
15
16
16
---
17
+
17
18
**Note:** This crate **only** provides an implementation of the MCP schema.
18
19
19
20
<imgalign="top"src="assets/rust-mcp-stack-icon.png"width="24"style="border-radius:0.2rem;"> If you are looking for a high-performance, asynchronous toolkit for building MCP servers and clients, checkout [rust-mcp-sdk](https://crates.io/crates/rust-mcp-sdk).
@@ -27,7 +28,6 @@ Focus on your app's logic while [rust-mcp-sdk](https://crates.io/crates/rust-mcp
27
28
-[How can this crate be used?](#how-can-this-crate-be-used)
28
29
29
30
-[Schema Versions](#schema-versions)
30
-
-[Currently available versions](#currently-available-versions)
31
31
-[How to switch between different schema versions?](#how-to-switch-between-different-schema-versions)
32
32
-[How are Schemas generated?](#how-are-schemas-generated)
33
33
-[What is `schema_utils`?](#what-is-schema_utils)
@@ -46,7 +46,7 @@ Focus on your app's logic while [rust-mcp-sdk](https://crates.io/crates/rust-mcp
46
46
47
47
- 🧩 Type-safe implementation of the MCP protocol specification.
48
48
- 💎 Auto-generated schemas are always synchronized with the official schema specifications.
49
-
- 📜 Includes all schema versions, including draft versions for early adoption.
49
+
- 📜 Includes both schema versions : `2024_11_05` and `2025_03_26`.
50
50
- 🛠 Complimentary schema utility module (schema_utils) to boost productivity and ensure development integrity.
51
51
52
52
## How can this crate be used?
@@ -68,25 +68,23 @@ For more information on the MCP architecture, refer to the [official documentati
68
68
69
69
## Schema Versions
70
70
71
-
This repository provides all versions of the schema, including draft versions, enabling you to prepare and adapt your applications ahead of upcoming official schema releases.
72
-
73
-
### Currently available versions
71
+
This repository provides all versions of the schema, which can be selected using Cargo features:
74
72
75
73
-[2024_11_05](src/generated_schema/2024_11_05)
76
-
-[Draft](src/generated_schema/draft)
74
+
-[2025_03_26](src/generated_schema/2025_03_26)
77
75
78
76
### How to switch between different schema versions?
79
77
80
78
Each schema version has a corresponding Cargo feature that can be enabled in your project's Cargo.toml.
81
-
By default, the latest version of the schema is active.
79
+
By default, the version`2024_11_05` of the schema is active.
82
80
83
-
Example: enable `draft` version of the shema:
81
+
Example: enable `2025_03_26` version of the shema:
0 commit comments