Class ToolCallbackConverterAutoConfiguration

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

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification>
    asyncTools(org.springframework.beans.factory.ObjectProvider<List<org.springframework.ai.tool.ToolCallback>> toolCalls, List<org.springframework.ai.tool.ToolCallback> toolCallbacksList, 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.McpServerFeatures.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

    • ToolCallbackConverterAutoConfiguration

      public ToolCallbackConverterAutoConfiguration()
  • Method Details

    • syncTools

      @Bean @ConditionalOnProperty(prefix="spring.ai.mcp.server", name="type", havingValue="SYNC", matchIfMissing=true) public List<io.modelcontextprotocol.server.McpServerFeatures.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.McpServerFeatures.AsyncToolSpecification> asyncTools(org.springframework.beans.factory.ObjectProvider<List<org.springframework.ai.tool.ToolCallback>> toolCalls, List<org.springframework.ai.tool.ToolCallback> toolCallbacksList, 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)