Description
Configuration for LangChain4j MCP (Model Context Protocol) clients.
Usages
Configuration options
| Key | Kind | Type | Description |
|---|---|---|---|
client-name | VALUE | String | Sets the name that the client will use to identify itself to the MCP server in the initialization message |
client-version | VALUE | String | Sets the version string that the client will use to identify itself to the MCP server in the initialization message |
initialization-timeout | VALUE | Duration | Sets the timeout for initializing the client |
key | VALUE | String | Sets a unique identifier for the client |
log-requests | VALUE | Boolean | Whether to log request traffic |
log-responses | VALUE | Boolean | Whether to log response traffic |
ping-timeout | VALUE | Duration | The timeout to apply when waiting for a ping response |
prompts-timeout | VALUE | Duration | The timeout for prompt-related operations (listing prompts as well as rendering the contents of a prompt) |
protocol-version | VALUE | String | Sets the protocol version that the client will advertise in the initialization message |
reconnect-interval | VALUE | Duration | The delay before attempting to reconnect after a failed connection |
resources-timeout | VALUE | Duration | Sets the timeout for resource-related operations (listing resources as well as reading the contents of a resource) |
tls | VALUE | i.h.c.t.Tls | TLS configuration for the MCP server connection |
tool-execution-timeout | VALUE | Duration | Sets the timeout for tool execution |
tool-execution-timeout-error-message | VALUE | String | The error message to return when a tool execution times out |
uri | VALUE | URI | The URL of the MCP server |
Deprecated Options
| Key | Kind | Type | Description |
|---|---|---|---|
sse-uri | VALUE | URI | The initial URI where to connect to the server and request an SSE channel |
See the manifest for all available types.