final | |
|---|---|
readonly | |
extends |
CacheableResult<array{_meta?: template-type<MetaObject, Arrayable, 'T'>, resultType: non-empty-string, supportedVersions: list<non-empty-string>, capabilities: template-type<ServerCapabilities, Arrayable, 'T'>, serverInfo: template-type<Implementation, Arrayable, 'T'>, instructions?: non-empty-string, ttlMs: int, cacheScope: value-of<CacheScope>}> |
implements |
ServerResult |
The result returned by the server for a server/discover request.
| Methods | ||
|---|---|---|
public
|
__construct(
list<string> $supportedVersions,
ServerCapabilities $capabilities,
Implementation $serverInfo,
int $ttlMs,
CacheScope $cacheScope,
?string $instructions = null,
MetaObject $meta = new MetaObject(),
)
|
# |
public
static
|
fromArray(array $data): static
|
# |
public
|
toArray(): array
|
# |
public
|
jsonSerialize(): array
|
# |
protected
|
getResultType(): string
|
# |
| Properties | |||
|---|---|---|---|
public
|
list<non-empty-string>
|
$supportedVersions
|
# |
public
|
null|non-empty-string
|
$instructions
|
# |
public
|
ServerCapabilities
|
$capabilities
|
# |
public
|
Implementation
|
$serverInfo
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\Result\CacheableResult |
|---|
$ttlMs, $cacheScope |
| Properties inherited from Nexus\Mcp\Core\Schema\Result |
|---|
$meta |