| Exceptions | |
|---|---|
| DuplicateServerMetadataException | Thrown when more than one registered source declares a class-level |
| InvalidCursorException | Thrown when a paginated list request supplies a cursor that the store does not recognise. |
| MissingDiscoveryAttributeException | Thrown when a source passed to |
| PromptNotFoundException | Thrown when a |
| ReservedMethodException | Thrown when a handler is added for a method already reserved by the MCP specification. |
| ResourceNotFoundException | Thrown when a |
| SchemaGenerationException | Thrown when a handler parameter's input schema cannot be generated. |
| ServerAlreadyInitializedException | Thrown when a second |
| ServerNotInitializedException | Thrown when an inbound request other than |
| ToolNotFoundException | Thrown when a |
| ToolOutputValidationException | Thrown when a tool's |
| UnreservedMethodException | Thrown when a built-in handler is replaced for a method the MCP specification does not reserve. |
| UnsupportedParameterTypeException | Thrown when a discovered prompt, resource, or resource-template method declares a parameter whose type cannot be satisfied by a string. |
| 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. |
| UnsupportedVariadicParameterException | Thrown when a discovered prompt, resource, or resource-template method declares a variadic parameter. |