Interface McpToolHandlerContext
Context supplied to programmatic MCP tool handlers.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionProvides the tool arguments object for the current request.Provides the negotiated client capabilities for the session.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 current session context.Provides the tool-call-specific request context.
-
Method Details
-
getToolCallContext
Provides the tool-call-specific request context.- Returns:
- the tool-call context
-
getSessionContext
Provides the current session context.- Returns:
- the session context
-
getClientCapabilities
Provides the negotiated client capabilities for the session.- Returns:
- the client capabilities
-
getArguments
Provides the tool arguments object for the current request.- Returns:
- the arguments object
-
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
-