Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.52 KB

File metadata and controls

44 lines (33 loc) · 1.52 KB

Changelog

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.

[1.2.3] - 2026-01-09

Fixed

  • Achieve 100% test coverage by excluding optional dependency guards
  • Remove unreachable code branch in toJsonRpcError()

[1.2.0] - 2025-01-09

Added

  • McpError fluent builder class with 15+ factory methods
    • notFound(), accessDenied(), validation(), rateLimited(), etc.
    • withSuggestion(), withContext(), withDetail() for adding metadata
    • toArray(), toToolResult(), toJsonRpcError() conversion methods
    • retryAfter() for rate limiting hints
  • ErrorBag class for collecting multiple errors
    • add(), addValidation(), merge() for building error collections
    • forField(), byCategory() for filtering errors
    • toToolResult() for MCP responses
    • Implements Countable and IteratorAggregate
  • ErrorCode::getJsonRpcCode() for JSON-RPC 2.0 error code mapping

Changed

  • Updated composer.json description to reflect new features

[1.1.0] - 2025-01-08

Added

  • Additional domain-specific error codes
  • isRecoverable() helper method
  • getHttpStatus() for HTTP status code mapping

[1.0.0] - 2025-01-07

Added

  • Initial release with ErrorCode constants
  • Error categorization (access, resource, validation, operation, domain)
  • Helper methods: getCategory(), isValid(), getAllCodes()