Class StatelessToolCallbackConverterAutoConfiguration

java.lang.Object
org.springframework.ai.mcp.server.common.autoconfigure.StatelessToolCallbackConverterAutoConfiguration

@AutoConfiguration @EnableConfigurationProperties(McpServerProperties.class) @Conditional({McpServerStdioDisabledCondition.class,EnabledStatelessServerCondition.class,ToolCallbackConverterCondition.class}) public class StatelessToolCallbackConverterAutoConfiguration extends Object
Author:
Christian Tzolov
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
  • Method Summary

    Modifier and Type
    Method
    Description
    List<io.modelcontextprotocol.server.McpStatelessServerFeatures.AsyncToolSpecification>
    asyncTools(org.springframework.beans.factory.ObjectProvider<List<org.springframework.ai.tool.ToolCallback>> toolCalls, List<org.springframework.ai.tool.ToolCallback> toolCallbackList, org.springframework.beans.factory.ObjectProvider<List<org.springframework.ai.tool.ToolCallbackProvider>> tcbProviderList, org.springframework.beans.factory.ObjectProvider<org.springframework.ai.tool.ToolCallbackProvider> tcbProviders, McpServerProperties serverProperties)
     
    List<io.modelcontextprotocol.server.McpStatelessServerFeatures.SyncToolSpecification>
    syncTools(org.springframework.beans.factory.ObjectProvider<List<org.springframework.ai.tool.ToolCallback>> toolCalls, List<org.springframework.ai.tool.ToolCallback> toolCallbackList, org.springframework.beans.factory.ObjectProvider<List<org.springframework.ai.tool.ToolCallbackProvider>> tcbProviderList, org.springframework.beans.factory.ObjectProvider<org.springframework.ai.tool.ToolCallbackProvider> tcbProviders, McpServerProperties serverProperties)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StatelessToolCallbackConverterAutoConfiguration

      public StatelessToolCallbackConverterAutoConfiguration()
  • Method Details

    • syncTools

      @Bean @ConditionalOnProperty(prefix="spring.ai.mcp.server", name="type", havingValue="SYNC", matchIfMissing=true) public List<io.modelcontextprotocol.server.McpStatelessServerFeatures.SyncToolSpecification> syncTools(org.springframework.beans.factory.ObjectProvider<List<org.springframework.ai.tool.ToolCallback>> toolCalls, List<org.springframework.ai.tool.ToolCallback> toolCallbackList, org.springframework.beans.factory.ObjectProvider<List<org.springframework.ai.tool.ToolCallbackProvider>> tcbProviderList, org.springframework.beans.factory.ObjectProvider<org.springframework.ai.tool.ToolCallbackProvider> tcbProviders, McpServerProperties serverProperties)
    • asyncTools

      @Bean @ConditionalOnProperty(prefix="spring.ai.mcp.server", name="type", havingValue="ASYNC") public List<io.modelcontextprotocol.server.McpStatelessServerFeatures.AsyncToolSpecification> asyncTools(org.springframework.beans.factory.ObjectProvider<List<org.springframework.ai.tool.ToolCallback>> toolCalls, List<org.springframework.ai.tool.ToolCallback> toolCallbackList, org.springframework.beans.factory.ObjectProvider<List<org.springframework.ai.tool.ToolCallbackProvider>> tcbProviderList, org.springframework.beans.factory.ObjectProvider<org.springframework.ai.tool.ToolCallbackProvider> tcbProviders, McpServerProperties serverProperties)