All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Achieve 100% test coverage by excluding optional dependency guards
- Remove unreachable code branch in
toJsonRpcError()
McpErrorfluent builder class with 15+ factory methodsnotFound(),accessDenied(),validation(),rateLimited(), etc.withSuggestion(),withContext(),withDetail()for adding metadatatoArray(),toToolResult(),toJsonRpcError()conversion methodsretryAfter()for rate limiting hints
ErrorBagclass for collecting multiple errorsadd(),addValidation(),merge()for building error collectionsforField(),byCategory()for filtering errorstoToolResult()for MCP responses- Implements
CountableandIteratorAggregate
ErrorCode::getJsonRpcCode()for JSON-RPC 2.0 error code mapping
- Updated composer.json description to reflect new features
- Additional domain-specific error codes
isRecoverable()helper methodgetHttpStatus()for HTTP status code mapping
- Initial release with
ErrorCodeconstants - Error categorization (access, resource, validation, operation, domain)
- Helper methods:
getCategory(),isValid(),getAllCodes()