Class Nexus\Mcp\Core\Schema\Error\MethodNotFoundError

final
readonly
extends Error<array{code: -32601, message: non-empty-string, data?: mixed}>

A JSON-RPC error indicating that the requested method does not exist or is not available. In MCP, a server returns this error when a client invokes a method the server does not implement — either a genuinely unknown method, or one gated behind a server capability the server did not advertise (e.g., calling prompts/list when the prompts capability was not advertised). A request that requires a client capability the client did not declare is signalled instead by MissingRequiredClientCapabilityError (-32021).

Methods
Methods inherited from Nexus\Mcp\Core\Schema\Error
jsonSerialize()
Constants
Properties inherited from Nexus\Mcp\Core\Schema\Error
$code, $message, $data