Interface McpResourceListHandlerContext
Context supplied to programmatic MCP
resources/list handlers.- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves 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 list-specific request context.Provides the current session context.
-
Method Details
-
getListResourcesContext
Provides the list-specific request context.- Returns:
- the list-resources context
-
getSessionContext
Provides the current session context.- Returns:
- the session context
-
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
-