Interface McpClientRuntimeConfig
public interface McpClientRuntimeConfig
-
Method Summary
Modifier and TypeMethodDescriptionWhether 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.Whether to log requestsWhether to log responsesTimeout 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
-
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
-
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.
-