Interface McpClientRuntimeConfig


public interface McpClientRuntimeConfig
  • Method Details

    • url

      The URL of the SSE endpoint. This only applies to MCP clients using the HTTP transport.
    • command

      Optional<List<String>> command()
      The command to execute to spawn the MCP server process. This only applies to MCP clients using the STDIO transport.
    • environment

      @ConfigDocMapKey("env-var") Map<String,String> environment()
      Environment variables for the spawned MCP server process. This only applies to MCP clients using the STDIO transport.
    • logRequests

      @ConfigDocDefault("false") @WithDefault("${quarkus.langchain4j.log-requests}") Optional<Boolean> logRequests()
      Whether to log requests
    • logResponses

      @ConfigDocDefault("false") @WithDefault("${quarkus.langchain4j.log-responses}") Optional<Boolean> logResponses()
      Whether to log responses
    • toolExecutionTimeout

      @WithDefault("${quarkus.langchain4j.timeout:60s}") @ConfigDocDefault("60s") Duration toolExecutionTimeout()
      Timeout for tool executions performed by the MCP client
    • resourcesTimeout

      @WithDefault("${quarkus.langchain4j.timeout:60s}") @ConfigDocDefault("60s") Duration resourcesTimeout()
      Timeout for resource-related operations (retrieving a list of resources as well as the actual contents of resources).
    • pingTimeout

      @WithDefault("10s") Duration pingTimeout()
      Timeout for pinging the MCP server process to check if it's still alive. If a ping times out, the client's health check will start failing.
    • roots

      Optional<List<String>> roots()
      The initial list of MCP roots that the client can present to the server. The list can be later updated programmatically during runtime. The list is formatted as key-value pairs separated by commas. For example: workspace1=/path/to/workspace1,workspace2=/path/to/workspace2
    • tlsConfigurationName

      Optional<String> tlsConfigurationName()
      The name of the TLS configuration (bucket) used for client authentication in the TLS registry. This does not have any effect when the stdio transport is used.
    • cacheToolList

      Optional<Boolean> cacheToolList()
      Whether to cache the tool list obtained from the MCP server. When set to true (the default), the tool list is cached until the server notifies of changes or the cache is manually evicted. When false, the client always fetches a fresh tool list from the server. This is useful when using MCP servers that don't support tool list change notifications.