v0.6.0
Changelog π
Added β¨
- New example server implementation in
examples/everything/main.go
showing comprehensive server features - New
prompts.go
module with flexible prompt configuration API - New
resources.go
module with resource configuration helpers - Helper functions for creating and configuring prompts and resources using functional options pattern
- Improved resource template handling with regex-based URI matching
Changed π
- Refactored resource handling to use structured types and interfaces
- Updated resource handlers to accept full request context
- Improved server initialization and configuration options
- Enhanced documentation with better examples and clearer explanations
- Reorganized example code structure for better organization
Removed ποΈ
- Removed older calculator example implementation
- Removed some redundant code examples from documentation
- Cleaned up unused helper functions
- Removed outdated server implementations
Fixed π
- Fixed resource template URI pattern matching
- Improved error handling in server responses
- Fixed documentation formatting and examples
- Fixed inconsistencies in server capabilities handling
Developer Experience π©βπ»
- Added more comprehensive examples and documentation
- Improved API ergonomics with builder-style configuration
- Better type safety and error handling
- Clearer separation of concerns in server implementation
Documentation π
- Added detailed examples for resources and prompts
- Improved explanation of server capabilities
- Updated code examples to use new helper functions
- Enhanced readability of documentation
The changes represent a significant improvement in the API design and implementation, making it more flexible and easier to use while maintaining backwards compatibility.