Interface McpClientRuntimeConfig
public interface McpClientRuntimeConfig
-
Method Summary
Modifier and TypeMethodDescriptionWhether the MCP client should perform health checks regularly and try to reconnect immediately if a connection issue is detected.The interval for automatic health checks (if enabled using the "autoHealthCheck" property).Whether to cache the tool list obtained from the MCP server.command()The command to execute to spawn the MCP server process.Environment variables for the spawned MCP server process.header()Static HTTP headers to include in all requests to the MCP server.Whether to log requestsWhether to log responsesbooleanWhether to prefer MicroProfile health checks.Relative path of an MCP Server MicroProfile Health endpoint.Timeout for pinging the MCP server process to check if it's still alive.Timeout for resource-related operations (retrieving a list of resources as well as the actual contents of resources).roots()The initial list of MCP roots that the client can present to the server.The name of the TLS configuration (bucket) used for client authentication in the TLS registry.Timeout for tool executions performed by the MCP clienturl()The URL of the SSE endpoint.
-
Method Details
-
url
-
command
-
environment
-
logRequests
-
logResponses
-
microprofileHealthCheck
@ConfigDocDefault("false") @WithDefault("false") boolean microprofileHealthCheck()Whether to prefer MicroProfile health checks. Applies to MCP HTTP clients only.If this property is enabled, an HTTP GET call is made to an MCP Server MicroProfile Health endpoint. MicroProfile Health endpoint URL is calculated by extracting a base URL that has no path component from the
url()property and adding themicroprofileHealthCheckPath()path to it.Default MCP Client health check that opens a Streamable HTTP or SSE transport channel is attempted when a MicroProfile health check returns an HTTP 404 or other error status.
-
microprofileHealthCheckPath
Relative path of an MCP Server MicroProfile Health endpoint. This property is effective only when themicroprofileHealthCheck()property is enabled.MicroProfile Health endpoint URL is calculated by extracting the base URL that has no path component from the
url()property and adding a value of this property to it. -
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
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
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
-
header
-
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. -
autoHealthCheck
Whether the MCP client should perform health checks regularly and try to reconnect immediately if a connection issue is detected. The default is true. -
autoHealthCheckInterval
The interval for automatic health checks (if enabled using the "autoHealthCheck" property). The default is 60 seconds.
-