Expand description
Typed server/discover vocabulary for the final MCP discovery surface.
The registry is deliberately declarative: it records only handlers and notification delivery paths that the surrounding server has actually installed. Discovery capabilities are derived from that immutable record, so a wire claim cannot accidentally advertise an unregistered behavior.
Structs§
- Discovery
Cache Hints - Required final caching hints for a
server/discoverresult. - Server
Behavior Registry - Immutable registry of server behavior actually installed by the runtime.
- Server
Discover Capabilities - Typed capability shape derived from an installed behavior registry.
- Server
Discover Request - Typed final
paramsfor aserver/discoverrequest. - Server
Discover Result - Typed
server/discoverresult whose wire vocabulary is fixed to final MCP. - Server
Instructions - A validated server instruction string.
Enums§
- Server
Behavior - A server behavior whose installation can be advertised through discovery.
- Server
Discovery Error - Why a server discovery value could not be safely constructed or admitted.
- Server
Instruction Error - Why a server instruction string was rejected.
Constants§
- MAX_
DISCOVERY_ EXTENSION_ NAME_ BYTES - Maximum UTF-8 bytes in an enabled extension setting name.
- MAX_
DISCOVERY_ EXTENSION_ SETTINGS - Maximum number of enabled extension settings in one discovery result.
- MAX_
DISCOVERY_ EXTENSION_ VALUE_ BYTES - Maximum JSON bytes in an enabled extension setting value.
- MAX_
SERVER_ INSTRUCTIONS_ BYTES - Maximum UTF-8 bytes permitted for server-provided discovery instructions.
- SERVER_
DISCOVER_ METHOD - The exact JSON-RPC method for final server discovery.
- SERVER_
DISCOVER_ SERVER_ INFO_ META_ KEY - Reserved result-metadata key that identifies the responding server.
- SERVER_
DISCOVER_ SUPPORTED_ VERSIONS - The exact protocol-version list advertised by this final-only surface.