Description

Configuration for LangChain4j MCP (Model Context Protocol) clients.

Usages

Configuration options

KeyKindTypeDescription
client-nameVALUEStringSets the name that the client will use to identify itself to the MCP server in the initialization message
client-versionVALUEStringSets the version string that the client will use to identify itself to the MCP server in the initialization message
initialization-timeoutVALUEDurationSets the timeout for initializing the client
keyVALUEStringSets a unique identifier for the client
log-requestsVALUEBooleanWhether to log request traffic
log-responsesVALUEBooleanWhether to log response traffic
ping-timeoutVALUEDurationThe timeout to apply when waiting for a ping response
prompts-timeoutVALUEDurationThe timeout for prompt-related operations (listing prompts as well as rendering the contents of a prompt)
protocol-versionVALUEStringSets the protocol version that the client will advertise in the initialization message
reconnect-intervalVALUEDurationThe delay before attempting to reconnect after a failed connection
resources-timeoutVALUEDurationSets the timeout for resource-related operations (listing resources as well as reading the contents of a resource)
tlsVALUEi.h.c.t.TlsTLS configuration for the MCP server connection
tool-execution-timeoutVALUEDurationSets the timeout for tool execution
tool-execution-timeout-error-messageVALUEStringThe error message to return when a tool execution times out
uriVALUEURIThe URL of the MCP server

Deprecated Options

KeyKindTypeDescription
sse-uriVALUEURIThe initial URI where to connect to the server and request an SSE channel

See the manifest for all available types.