Package com.ssgllc.fish.config.mcp
Annotation Interface ConditionalOnMcpEnabled
@Target(TYPE)
@Retention(RUNTIME)
@ConditionalOnProperty(prefix="spring.ai.mcp.server",
name="enabled",
havingValue="true",
matchIfMissing=false)
public @interface ConditionalOnMcpEnabled
Composite annotation that gates a configuration class on the MCP server being enabled.
Equivalent to:
@ConditionalOnProperty(prefix = "spring.ai.mcp.server", name = "enabled",
havingValue = "true", matchIfMissing = false)
Apply to any Configuration class whose
beans should only be loaded when the mcp Spring profile is active (which sets
spring.ai.mcp.server.enabled=true via application-mcp.yml).