Skip to content

Commit 2f92a43

Browse files
mowens3claude
andcommitted
Add LICENSE and CHANGELOG
- Add MIT LICENSE file - Add CHANGELOG.md documenting v1.0.0 through v1.2.0 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 76adae6 commit 2f92a43

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [1.2.0] - 2025-01-09
9+
10+
### Added
11+
- `McpError` fluent builder class with 15+ factory methods
12+
- `notFound()`, `accessDenied()`, `validation()`, `rateLimited()`, etc.
13+
- `withSuggestion()`, `withContext()`, `withDetail()` for adding metadata
14+
- `toArray()`, `toToolResult()`, `toJsonRpcError()` conversion methods
15+
- `retryAfter()` for rate limiting hints
16+
- `ErrorBag` class for collecting multiple errors
17+
- `add()`, `addValidation()`, `merge()` for building error collections
18+
- `forField()`, `byCategory()` for filtering errors
19+
- `toToolResult()` for MCP responses
20+
- Implements `Countable` and `IteratorAggregate`
21+
- `ErrorCode::getJsonRpcCode()` for JSON-RPC 2.0 error code mapping
22+
23+
### Changed
24+
- Updated composer.json description to reflect new features
25+
26+
## [1.1.0] - 2025-01-08
27+
28+
### Added
29+
- Additional domain-specific error codes
30+
- `isRecoverable()` helper method
31+
- `getHttpStatus()` for HTTP status code mapping
32+
33+
## [1.0.0] - 2025-01-07
34+
35+
### Added
36+
- Initial release with `ErrorCode` constants
37+
- Error categorization (access, resource, validation, operation, domain)
38+
- Helper methods: `getCategory()`, `isValid()`, `getAllCodes()`

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Code Wheel
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)