Interface McpInitializationContext
Initialization-time MCP request metadata.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionProvides the client capabilities sent during initialization.Provides optional client metadata sent during initialization.Retrieves an endpoint path parameter as a string.getEndpointPathParameter(@NonNull String name, @NonNull Class<T> type) Retrieves an endpoint path parameter using a Soklet value conversion.Provides the negotiated MCP protocol version for this initialization flow.Provides the transport request that carried theinitializecall.
-
Method Details
-
getRequest
Provides the transport request that carried theinitializecall.- Returns:
- the current request
-
getProtocolVersion
Provides the negotiated MCP protocol version for this initialization flow.- Returns:
- the protocol version to persist
-
getClientCapabilities
Provides the client capabilities sent during initialization.- Returns:
- the client capability object
-
getClientInfo
Provides optional client metadata sent during initialization.- Returns:
- client information, if the client supplied it
-
getEndpointPathParameter
-
getEndpointPathParameter
Retrieves an endpoint path parameter using a Soklet value conversion.- Type Parameters:
T- the converted type- Parameters:
name- the endpoint path parameter nametype- the desired converted type- Returns:
- the converted parameter value, if present
-