Package io.openliberty.mcp.features
Interface FeatureManager.RequestFeatureArguments
- All Superinterfaces:
FeatureManager.FeatureArguments
- All Known Subinterfaces:
ToolManager.ToolArguments
- Enclosing interface:
- FeatureManager<INFO extends FeatureManager.FeatureInfo>
public static interface FeatureManager.RequestFeatureArguments
extends FeatureManager.FeatureArguments
The input to a handler function, providing information about the request.
-
Method Summary
Modifier and TypeMethodDescriptionorg.mcpjava.server.CancellationAllows the handler to detect if the user cancels the request.org.mcpjava.server.progress.Progressprogress()Allows the handler to report its progress in handling the request.org.mcpjava.server.McpRequestrequest()Provides common information about the request from the client
-
Method Details
-
request
org.mcpjava.server.McpRequest request()Provides common information about the request from the client- Returns:
- information about the request
-
progress
org.mcpjava.server.progress.Progress progress()Allows the handler to report its progress in handling the request.Progress reporting is not currently supported and this method returns a no-op object.
- Returns:
- an object to use to report progress
-
cancellation
org.mcpjava.server.Cancellation cancellation()Allows the handler to detect if the user cancels the request.- Returns:
- the cancellation object
-