-
Notifications
You must be signed in to change notification settings - Fork 545
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
Currently the McpErrorCode
enum does not include the -32002 code for resource not found (to throw within resource handlers).
Describe the solution you'd like
Add a new enum for McpErrorCode.ResourceNotFound
set to -32002
Describe alternatives you've considered
Throw without providing the error code or use internal error -32603.
Additional context
- Specification: https://modelcontextprotocol.io/specification/2025-06-18/server/resources#error-handling
- Related to discussion in Resource Template Support #20
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request