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
BREAKING: None
NEW FEATURES:
- Type-safe schema generation with production enhancements
- Configurable schema normalization (depth/size limits)
- Consistent validation error codes for client elicitation
- Cross-platform path validation with security constraints
- Optional output typing with TypedToolV2<TIn, TOut>
- Full cross-transport support (HTTP, SSE, WebSocket)
- WASM-compatible typed tool API for browser/edge
- Ergonomic builder methods: tool_typed() and tool_typed_sync()
- Comprehensive validation helpers with elicitation support
EXAMPLES:
- 32_typed_tools: Basic typed tool usage
- 33_advanced_typed_tools: Complex validation scenarios
- 34_serverbuilder_typed: Builder method demonstration
- 35_wasm_typed_tools: WASM compatibility example
DOCUMENTATION:
- Move Quick Start section to top of README
- Update all version references to 1.6.0
- Add comprehensive v1.6.0 release notes
- Document all new examples in examples list
Copy file name to clipboardExpand all lines: README.md
+94-58Lines changed: 94 additions & 58 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,87 @@ Code Name: *Angel Rust*
24
24
25
25
> **🎉 Claude Code Compatible!** Version 1.4.0+ includes full JSON-RPC 2.0 compatibility, enabling seamless integration with Claude Code and all standard MCP clients. If you're experiencing connection issues, please [upgrade to v1.4.1+](MIGRATION_GUIDE.md).
26
26
27
+
## Quick Start
28
+
29
+
### Installation
30
+
31
+
Add to your `Cargo.toml`:
32
+
33
+
```toml
34
+
[dependencies]
35
+
pmcp = "1.6"
36
+
```
37
+
38
+
### Type-Safe Tools with Automatic Schema Generation (v1.6.0+)
39
+
40
+
Create tools with compile-time type safety and automatic JSON schema generation:
### 🛡️ **Type-Safe Tool Creation with Automatic Schema Generation**
@@ -139,17 +220,6 @@ Code Name: *Angel Rust*
139
220
- 📊 **Comprehensive Testing**: Property tests, fuzzing, and integration tests
140
221
- 🏗️ **Quality First**: Zero technical debt, no unwraps in production code
141
222
142
-
## Quick Start
143
-
144
-
### Installation
145
-
146
-
Add to your `Cargo.toml`:
147
-
148
-
```toml
149
-
[dependencies]
150
-
pmcp = "1.4"
151
-
```
152
-
153
223
> **⚠️ Important for Claude Code users**: Version 1.4.0+ is required for Claude Code compatibility. Earlier versions use a different message format that is incompatible with standard MCP clients. See the [Migration Guide](MIGRATION_GUIDE.md) if upgrading from < 1.4.0.
154
224
155
225
## 🌐 WebAssembly Support
@@ -299,8 +369,19 @@ cargo run --example 29_advanced_error_recovery --features full
299
369
# Complete advanced error recovery example with cascade detection
300
370
cargo run --example 31_advanced_error_recovery --features full
301
371
302
-
# SIMD parsing performance demonstration with benchmarks
303
-
cargo run --example 32_simd_parsing_performance --features full
372
+
# NEW in v1.6.0 - Type-Safe Tools with Schema Generation
373
+
374
+
# Type-safe tools with automatic JSON schema generation
375
+
cargo run --example 32_typed_tools --features schema-generation
376
+
377
+
# Advanced typed tools with complex validation and nested structures
378
+
cargo run --example 33_advanced_typed_tools --features schema-generation
379
+
380
+
# ServerBuilder typed tool methods demonstration
381
+
cargo run --example 34_serverbuilder_typed --features schema-generation
382
+
383
+
# WASM-compatible typed tools for browser and edge environments
384
+
cargo run --example 35_wasm_typed_tools --target wasm32-wasi --features schema-generation
304
385
305
386
# NEW in v1.4.1 - Enhanced Examples with TypeScript SDK Parity
306
387
@@ -524,51 +605,6 @@ let batcher = MessageBatcher::new(BatchingConfig {
524
605
});
525
606
```
526
607
527
-
## Quick Start
528
-
529
-
### Type-Safe Tools with Automatic Schema Generation (v1.5.5+)
530
-
531
-
Create tools with compile-time type safety and automatic JSON schema generation:
0 commit comments