Interface McpPromptHandlerContext
Context supplied to programmatic MCP prompt handlers.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionProvides the prompt 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 underlying request context.Provides the current session context.
-
Method Details
-
getRequestContext
Provides the underlying request context.- Returns:
- the request 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 prompt 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
-