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: README.md
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ This project currently supports following transports:
35
35
-[MCP Client (sse)](#mcp-client-sse)
36
36
-[Cargo features](#cargo-features)
37
37
-[Available Features](#available-features)
38
+
-[MCP protocol versions with corresponding features](#mcp-protocol-versions-with-corresponding-features)
38
39
-[Default Features](#default-features)
39
40
-[Using Only the server Features](#using-only-the-server-features)
40
41
-[Using Only the client Features](#using-only-the-client-features)
@@ -298,9 +299,16 @@ The `rust-mcp-sdk` crate provides several features that can be enabled or disabl
298
299
-`ssl`: This feature enables TLS/SSL support for the **sse** transport when used with the `hyper-server`.
299
300
-`macros`: Provides procedural macros for simplifying the creation and manipulation of MCP Tool structures.
300
301
302
+
#### MCP Protocol Versions with Corresponding Features
303
+
304
+
-`2025_03_26` : Activates MCP Protocol version 2025-03-26 (enabled by default)
305
+
-`2024_11_05` : Activates MCP Protocol version 2024-11-05
306
+
307
+
> Note: MCP protocol versions are mutually exclusive—only one can be active at any given time.
308
+
301
309
### Default Features
302
310
303
-
All features are enabled by default. When you include rust-mcp-sdk as a dependency without specifying features, all will be included:
311
+
When you add rust-mcp-sdk as a dependency without specifying any features, all features are included, with the latest MCP Protocol version enabled by default:
304
312
305
313
<!-- x-release-please-start-version -->
306
314
@@ -327,13 +335,14 @@ Optionally add `hyper-server` for **sse** transport, and `ssl` feature for tls/s
327
335
328
336
### Using Only the client Features
329
337
330
-
If you only need the MCP Client functionality, you can disable the default features and explicitly enable the client feature. Add the following to your Cargo.toml:
338
+
If you only need the MCP Client functionality, you can disable the default features and explicitly enable the client feature.
339
+
Add the following to your Cargo.toml:
331
340
332
341
<!-- x-release-please-start-version -->
333
342
334
343
```toml
335
344
[dependencies]
336
-
rust-mcp-sdk = { version = "0.2.0", default-features = false, features = ["client"] }
345
+
rust-mcp-sdk = { version = "0.2.0", default-features = false, features = ["client","2024_11_05"] }
Copy file name to clipboardExpand all lines: crates/rust-mcp-sdk/README.md
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ This project currently supports following transports:
35
35
-[MCP Client (sse)](#mcp-client-sse)
36
36
-[Cargo features](#cargo-features)
37
37
-[Available Features](#available-features)
38
+
-[MCP protocol versions with corresponding features](#mcp-protocol-versions-with-corresponding-features)
38
39
-[Default Features](#default-features)
39
40
-[Using Only the server Features](#using-only-the-server-features)
40
41
-[Using Only the client Features](#using-only-the-client-features)
@@ -298,9 +299,16 @@ The `rust-mcp-sdk` crate provides several features that can be enabled or disabl
298
299
-`ssl`: This feature enables TLS/SSL support for the **sse** transport when used with the `hyper-server`.
299
300
-`macros`: Provides procedural macros for simplifying the creation and manipulation of MCP Tool structures.
300
301
302
+
#### MCP Protocol Versions with Corresponding Features
303
+
304
+
-`2025_03_26` : Activates MCP Protocol version 2025-03-26 (enabled by default)
305
+
-`2024_11_05` : Activates MCP Protocol version 2024-11-05
306
+
307
+
> Note: MCP protocol versions are mutually exclusive—only one can be active at any given time.
308
+
301
309
### Default Features
302
310
303
-
All features are enabled by default. When you include rust-mcp-sdk as a dependency without specifying features, all will be included:
311
+
When you add rust-mcp-sdk as a dependency without specifying any features, all features are included, with the latest MCP Protocol version enabled by default:
304
312
305
313
<!-- x-release-please-start-version -->
306
314
@@ -327,13 +335,14 @@ Optionally add `hyper-server` for **sse** transport, and `ssl` feature for tls/s
327
335
328
336
### Using Only the client Features
329
337
330
-
If you only need the MCP Client functionality, you can disable the default features and explicitly enable the client feature. Add the following to your Cargo.toml:
338
+
If you only need the MCP Client functionality, you can disable the default features and explicitly enable the client feature.
339
+
Add the following to your Cargo.toml:
331
340
332
341
<!-- x-release-please-start-version -->
333
342
334
343
```toml
335
344
[dependencies]
336
-
rust-mcp-sdk = { version = "0.2.0", default-features = false, features = ["client"] }
345
+
rust-mcp-sdk = { version = "0.2.0", default-features = false, features = ["client","2024_11_05"] }
337
346
```
338
347
339
348
<!-- x-release-please-end -->
@@ -393,6 +402,8 @@ Below is a list of projects that utilize the `rust-mcp-sdk`, showcasing their na
393
402
| <ahref="https://github.com/moonrepo/moon"><imgsrc="https://avatars.githubusercontent.com/u/102833400?s=64"width="64"/></a> |[moon](https://github.com/moonrepo/moon)| moon is a repository management, organization, orchestration, and notification tool for the web ecosystem, written in Rust. |[GitHub](https://github.com/moonrepo/moon)|
394
403
395
404
405
+
406
+
396
407
## Contributing
397
408
398
409
We welcome everyone who wishes to contribute! Please refer to the [contributing](CONTRIBUTING.md) guidelines for more details.
0 commit comments