Namespace Nexus\Mcp\Server\Exception

Exceptions
InvalidCursorException

Thrown when a paginated list request supplies a cursor that the store does not recognise.

MissingRequiredClientCapabilityException

Thrown when serving a request would rely on a client capability absent from the request's io.modelcontextprotocol/clientCapabilities.

PromptNotFoundException

Thrown when a prompts/get references a prompt that is not registered with the store.

ResourceNotFoundException

Thrown when a resources/read references a URI that the store cannot resolve.

ResourceNotRegisteredException

Thrown when a resources/read names a URI no resource is registered under.

SubscriptionLimitReachedException

Thrown when a subscriptions/listen asks for more than one of the store's budgets allows.

ToolNotFoundException

Thrown when a tools/call invokes a tool that is not registered with the store.

ToolOutputValidationException

Thrown when a tool's result violates its declared outputSchema, by non-conformance or by carrying no structuredContent at all.

UnsupportedReturnValueException

Thrown when a discovered handler returns a value the adapter cannot map to its result type.

UnsupportedSchemaTypeException

Thrown when a PHP type cannot be mapped to a JSON Schema fragment.