Skip to content

v1.6.0

@guyernest guyernest tagged this 28 Sep 22:36
Production-Ready Type-Safe Tools & Cross-Transport Support

- Type-safe schema generation with automatic JSON schemas from Rust types
- Configurable schema normalization to prevent huge expanded schemas
- Consistent validation error codes for client elicitation automation
- Cross-platform path validation with security constraints
- Full cross-transport support (HTTP, SSE, WebSocket)
- WASM-compatible typed tool API for browser and edge environments
- Ergonomic builder methods for typed tools

- TypedTool and TypedSyncTool for type-safe tool creation
- TypedToolV2 with optional output typing for better testing
- Comprehensive validation helpers (email, URL, regex, range, etc.)
- Path traversal protection with cross-platform support
- Elicitation-friendly error responses for UI automation
- New tool_typed() and tool_typed_sync() builder methods

- 32_typed_tools: Basic typed tool usage with automatic schemas
- 33_advanced_typed_tools: Complex validation and nested structures
- 34_serverbuilder_typed: Using the ergonomic builder methods
- 35_wasm_typed_tools: WASM-compatible typed tools for browser/edge

- Comprehensive E2E transport tests
- Full TypeScript SDK compatibility maintained
- Zero breaking changes
- Extensive documentation and examples
Assets 2
Loading