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 | ||
|---|---|---|
public
|
__construct(RequestId $id, EmptyRequestParams $params)
|
# |
public
static
|
getMethod(): string
|
# |
public
static
|
fromArray(array $data): static
|
# |
public
|
toArray(): array
|
# |
| Methods inherited from Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcRequest |
|---|
jsonSerialize() |
| Constants inherited from Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcMessage |
|---|
|
| Properties | |||
|---|---|---|---|
public
readonly
|
EmptyRequestParams
|
$params
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcRequest |
|---|
$id |