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