@@ -93,7 +93,7 @@ We've created two distinct learning paths to serve different audiences and learn
93
93
mcp_rust_examples = " 0.1.0"
94
94
95
95
# Or install binaries globally
96
- cargo install mcp_rust_examples --features examples-only
96
+ cargo install mcp_rust_examples
97
97
98
98
# Run examples directly
99
99
example_01_hello_world
@@ -207,41 +207,40 @@ mcp-rust-tutorial/
207
207
208
208
---
209
209
210
- ## 🔧 ** Feature Flags**
211
-
212
- This crate supports multiple feature configurations for different use cases:
210
+ ## 🔧 ** Installation Options**
213
211
214
- ** Default Features:**
215
- ``` toml
216
- [dependencies ]
217
- mcp_rust_examples = " 0.1.0" # Includes MCP SDK (development branch)
218
- ```
212
+ This crate provides educational Rust examples for MCP development:
219
213
220
- ** Examples-Only Mode (Recommended for crates.io) :**
214
+ ** Simple Installation :**
221
215
``` toml
222
216
[dependencies ]
223
- mcp_rust_examples = { version = " 0.1.0" , features = [ " examples-only " ], default-features = false }
217
+ mcp_rust_examples = " 0.1.0" # Educational examples with all dependencies
224
218
```
225
219
226
- ** Available Features:**
227
- - ` default ` = ` ["mcp"] ` - Full MCP SDK integration
228
- - ` mcp ` - Enable MCP protocol support (requires git dependency)
229
- - ` examples-only ` - Just the educational code and examples
230
-
231
- ** Installation Commands:**
220
+ ** Global Binary Installation:**
232
221
``` bash
233
- # With full MCP support (from git)
222
+ # Install all example binaries globally
234
223
cargo install mcp_rust_examples
235
224
236
- # Examples only (from crates.io)
237
- cargo install mcp_rust_examples --features examples-only --no-default-features
225
+ # Run any example
226
+ example_01_hello_world
227
+ example_13_auth_service
228
+ example_20_enterprise_server
229
+ ```
238
230
239
- # For development
231
+ ** Development Setup:**
232
+ ``` bash
233
+ # For development and extending examples
240
234
git clone https://github.com/RustSandbox/MCP-Development-with-Rust
241
235
cd MCP-Development-with-Rust
242
236
cargo build --all
237
+
238
+ # Run examples locally
239
+ cargo run --bin example_01_hello_world
243
240
```
244
241
242
+ ** Note:** For full MCP SDK integration in your own projects, see the [ official rmcp documentation] ( https://hackmd.io/@Hamze/S1tlKZP0kx ) .
243
+
245
244
## 🛠️ ** Development Commands**
246
245
247
246
We provide a comprehensive development environment with 50+ commands via [ just] ( https://github.com/casey/just ) :
0 commit comments