Class AsyncMcpCompleteProvider
java.lang.Object
org.springaicommunity.mcp.provider.complete.AsyncMcpCompleteProvider
Provider for asynchronous MCP complete methods.
This provider creates completion specifications for methods annotated with
McpComplete that return reactive types and work with
McpAsyncServerExchange.- Author:
- Christian Tzolov
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncMcpCompleteProvider(List<Object> completeObjects) Create a new AsyncMcpCompletionProvider. -
Method Summary
Modifier and TypeMethodDescriptionprotected Method[]doGetClassMethods(Object bean) Returns the methods of the given bean class.List<io.modelcontextprotocol.server.McpServerFeatures.AsyncCompletionSpecification>Get the async completion specifications.
-
Constructor Details
-
AsyncMcpCompleteProvider
Create a new AsyncMcpCompletionProvider.- Parameters:
completeObjects- the objects containing methods annotated withMcpComplete
-
-
Method Details
-
getCompleteSpecifications
public List<io.modelcontextprotocol.server.McpServerFeatures.AsyncCompletionSpecification> getCompleteSpecifications()Get the async completion specifications.- Returns:
- the list of async completion specifications
-
doGetClassMethods
Returns the methods of the given bean class.- Parameters:
bean- the bean instance- Returns:
- the methods of the bean class
-