Skip to main content

Module server_discovery

Module server_discovery 

Source
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§

DiscoveryCacheHints
Required final caching hints for a server/discover result.
ServerBehaviorRegistry
Immutable registry of server behavior actually installed by the runtime.
ServerDiscoverCapabilities
Typed capability shape derived from an installed behavior registry.
ServerDiscoverRequest
Typed final params for a server/discover request.
ServerDiscoverResult
Typed server/discover result whose wire vocabulary is fixed to final MCP.
ServerInstructions
A validated server instruction string.

Enums§

ServerBehavior
A server behavior whose installation can be advertised through discovery.
ServerDiscoveryError
Why a server discovery value could not be safely constructed or admitted.
ServerInstructionError
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.