Interface McpBuildTimeConfiguration


@ConfigRoot(phase=BUILD_AND_RUN_TIME_FIXED) @ConfigMapping(prefix="quarkus.langchain4j.mcp") public interface McpBuildTimeConfiguration
  • Method Details

    • clients

      @ConfigDocSection @ConfigDocMapKey("client-name") @WithParentName Map<String,McpClientBuildTimeConfig> clients()
      Configured MCP clients
    • generateToolProvider

      @ConfigDocDefault("true") Optional<Boolean> generateToolProvider()
      Whether the MCP extension should automatically generate a ToolProvider that is wired up to all the configured MCP clients. The default is true if at least one MCP client is configured, false otherwise.
    • configFile

      Optional<String> configFile()
      File containing the MCP servers configuration in the Claude Desktop format. This configuration can only be used to configure stdio transport 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.