Class CortexMcpAutoConfiguration

java.lang.Object
ai.chatur.cortex.spring.mcp.CortexMcpAutoConfiguration

@AutoConfiguration(after=CortexAutoConfiguration.class) @ConditionalOnProperty(prefix="cortex.mcp", name="enabled", matchIfMissing=true) @ConditionalOnClass(org.springframework.ai.mcp.annotation.McpTool.class) public class CortexMcpAutoConfiguration extends Object
MCP server auto-configuration for Cortex: the tools and resources that let AI agents lint, ingest, query, and search the knowledge graph, and read its ontology.

Runs after CortexAutoConfiguration, so every MCP bean here can depend on the role interfaces the core beans satisfy.

Active only when cortex.mcp.enabled is not set to false (defaults to enabled) and Spring AI's MCP annotation support (@McpTool) is on the classpath — so a consumer wanting the graph without an MCP server gets there with one property. Each bean is also @ConditionalOnMissingBean, so a consumer may substitute their own by declaring a bean of the same type.

  • Constructor Details

    • CortexMcpAutoConfiguration

      public CortexMcpAutoConfiguration()
      Creates the auto-configuration. Spring instantiates this; consumers do not.