Class SyncStatelessMcpCompleteProvider
java.lang.Object
org.springaicommunity.mcp.provider.complete.SyncStatelessMcpCompleteProvider
Provider for synchronous 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.- Author:
- Christian Tzolov
-
Constructor Summary
ConstructorsConstructorDescriptionSyncStatelessMcpCompleteProvider(List<Object> completeObjects) Create a new SyncStatelessMcpCompleteProvider. -
Method Summary
Modifier and TypeMethodDescriptionprotected Method[]doGetClassMethods(Object bean) Returns the methods of the given bean class.List<io.modelcontextprotocol.server.McpStatelessServerFeatures.SyncCompletionSpecification>Get the stateless completion specifications.
-
Constructor Details
-
SyncStatelessMcpCompleteProvider
Create a new SyncStatelessMcpCompleteProvider.- Parameters:
completeObjects- the objects containing methods annotated withMcpComplete
-
-
Method Details
-
getCompleteSpecifications
public List<io.modelcontextprotocol.server.McpStatelessServerFeatures.SyncCompletionSpecification> getCompleteSpecifications()Get the stateless completion specifications.- Returns:
- the list of stateless completion specifications
-
doGetClassMethods
Returns the methods of the given bean class.- Parameters:
bean- the bean instance- Returns:
- the methods of the bean class
-