ServerExtensionInterface
A server-side MCP protocol extension advertised during capability negotiation.
Implementations are typically zero-config — they expose a stable identifier and the
capability payload announced under capabilities.extensions[<id>] in the initialize
response.
Tags
Table of Contents
Methods
- getCapabilities() : array<string, mixed>
- The capability payload announced for this extension.
- getId() : string
- The reverse-DNS identifier used as the key under `capabilities.extensions`.
Methods
getCapabilities()
The capability payload announced for this extension.
public
getCapabilities() : array<string, mixed>
The returned array is cast to an object and embedded under
capabilities.extensions[<id>] in the initialize response, so every value
must be JSON-serializable (scalars, arrays, or JsonSerializable objects).
Return values
array<string, mixed>getId()
The reverse-DNS identifier used as the key under `capabilities.extensions`.
public
getId() : string