Class Nexus\Mcp\Core\Schema\Request\DiscoverRequest

final
readonly
extends JsonRpcRequest<'server/discover', array{jsonrpc: '2.0', id: (int|non-empty-string), method: 'server/discover', params: template-type<EmptyRequestParams, RequestParams, 'T'>}>
implements ClientRequest

A request from the client asking the server to advertise its supported protocol versions, capabilities, and other metadata. Servers MUST implement server/discover. Clients MAY call it but are not required to — version negotiation can also happen inline via per-request _meta.

Methods
Methods inherited from Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcRequest
jsonSerialize()
Constants inherited from Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcMessage
JSONRPC_VERSION
Properties
Properties inherited from Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcRequest
$id