Interface McpBuildTimeConfiguration
@ConfigRoot(phase=BUILD_AND_RUN_TIME_FIXED)
@ConfigMapping(prefix="quarkus.langchain4j.mcp")
public interface McpBuildTimeConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionclients()Configured MCP clientsFile containing the MCP servers configuration in the Claude Desktop format.booleanenabled()Whether MCP integration is enabled.Whether the MCP extension should automatically generate a ToolProvider that is wired up to all the configured MCP clients.booleanWhether the MCP extension should automatically register a health check for configured MCP clients.Configured MCP registry clients.
-
Method Details
-
enabled
@WithDefault("true") boolean enabled()Whether MCP integration is enabled. If disabled, no MCP clients, registry clients, ToolProvider or MCP health check will be registered. -
clients
@ConfigDocSection @ConfigDocMapKey("client-name") @WithParentName Map<String,McpClientBuildTimeConfig> clients()Configured MCP clients -
registryClients
-
generateToolProvider
-
configFile
File containing the MCP servers configuration in the Claude Desktop format. This configuration can only be used to configurestdiotransport type MCP servers.This file is read at build time which means that which MCP servers the client will use, is determined at build time. However, specific configuration of each MCP server can be overridden at runtime.
-
mpHealthEnabled
@WithName("health.enabled") @WithDefault("true") boolean mpHealthEnabled()Whether the MCP extension should automatically register a health check for configured MCP clients. The default is true if at least one MCP client is configured, false otherwise.
-