Skip to content

Add ResourceNotFound error code -32002 #863

@kamranayub

Description

@kamranayub

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions