Class McpServerToolCallbackConfiguration
java.lang.Object
io.meeds.mcp.server.configuration.McpServerToolCallbackConfiguration
@Configuration
@EnableConfigurationProperties({org.springframework.ai.mcp.server.common.autoconfigure.properties.McpServerProperties.class,org.springframework.ai.mcp.server.common.autoconfigure.properties.McpServerStreamableHttpProperties.class,io.meeds.mcp.server.model.McpServerOAuthClientProperties.class})
public class McpServerToolCallbackConfiguration
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.ai.tool.ToolCallbackProvidermcpToolCallbackProvider(org.springframework.context.ApplicationContext applicationContext, io.meeds.mcp.server.service.McpServerToolService mcpServerToolService, io.meeds.mcp.server.service.McpToolApprovalService mcpToolApprovalService, io.meeds.mcp.server.service.McpToolGrantService mcpToolGrantService, org.exoplatform.portal.config.UserACL userAcl, List<io.meeds.mcp.server.plugin.McpToolPlugin> tools) Builds the provider turning everyMcpToolPluginmethod into a tool callback guarded by the scope check, the standing approvals and the approval cards.
-
Constructor Details
-
McpServerToolCallbackConfiguration
public McpServerToolCallbackConfiguration()
-
-
Method Details
-
mcpToolCallbackProvider
@Bean public org.springframework.ai.tool.ToolCallbackProvider mcpToolCallbackProvider(org.springframework.context.ApplicationContext applicationContext, io.meeds.mcp.server.service.McpServerToolService mcpServerToolService, io.meeds.mcp.server.service.McpToolApprovalService mcpToolApprovalService, io.meeds.mcp.server.service.McpToolGrantService mcpToolGrantService, org.exoplatform.portal.config.UserACL userAcl, List<io.meeds.mcp.server.plugin.McpToolPlugin> tools) Builds the provider turning everyMcpToolPluginmethod into a tool callback guarded by the scope check, the standing approvals and the approval cards.- Parameters:
applicationContext- the context, to reach the MCP server beanmcpServerToolService- the tool registrymcpToolApprovalService- the approval cardsmcpToolGrantService- the standing approvalsuserAcl- the platform ACLtools- the contributed tool plugins- Returns:
- the provider
-