|
|
@@ -2,11 +2,10 @@ package space.anyi.mcpServer.config;
|
|
|
|
|
|
import org.springframework.ai.tool.ToolCallbackProvider;
|
|
|
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
|
|
|
-import org.springframework.beans.factory.annotation.Configurable;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
+import org.springframework.context.annotation.Configuration;
|
|
|
import space.anyi.mcpServer.tool.MyTool;
|
|
|
-
|
|
|
-@Configurable
|
|
|
+@Configuration
|
|
|
public class MCPConfig {
|
|
|
/**
|
|
|
* 配置对外提供服务的MCPProvider
|