Interface McpClientConfig
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
McpClientConfig.BuilderBase.McpClientConfigImpl
Interface generated from definition. Please add javadoc to the definition interface.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Fluent API builder forMcpClientConfig
.static class
McpClientConfig.BuilderBase<BUILDER extends McpClientConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends McpClientConfig> Fluent API builder base forMcpClientConfig
. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic McpClientConfig.Builder
builder()
Create a new fluent API builder to customize configuration.static McpClientConfig.Builder
builder
(McpClientConfig instance) Create a new fluent API builder from an existing instance.Sets the name that the client will use to identify itself to the MCP server in the initialization message.Sets the version string that the client will use to identify itself to the MCP server in the initialization message.static McpClientConfig
create()
Create a new instance with default values.static McpClientConfig
Deprecated.static McpClientConfig
Create a new instance from configuration.Sets the timeout for initializing the client.key()
Sets a unique identifier for the client.Whether to log request traffic.Whether to log response traffic.The timeout to apply when waiting for a ping response.The timeout for prompt-related operations (listing prompts as well as rendering the contents of a prompt).Sets the protocol version that the client will advertise in the initialization message.The delay before attempting to reconnect after a failed connection.Sets the timeout for resource-related operations (listing resources as well as reading the contents of a resource).sseUri()
The initial URI where to connect to the server and request a SSE channel.Sets the timeout for tool execution.The error message to return when a tool execution times out.
-
Field Details
-
CONFIG_ROOT
The default configuration prefix.- See Also:
-
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
sseUri
URI sseUri()The initial URI where to connect to the server and request a SSE channel.- Returns:
- sse uri
-
clientName
Sets the name that the client will use to identify itself to the MCP server in the initialization message. Overwrites the default client name from langchain4j.- Returns:
- client name
-
clientVersion
Sets the version string that the client will use to identify itself to the MCP server in the initialization message. Overwrites the default client version from langchain4j.- Returns:
- client version
-
key
Sets a unique identifier for the client. If none is provided, a UUID will be automatically generated. This key is later used to identify the client in the service registry.- Returns:
- client key
-
protocolVersion
Sets the protocol version that the client will advertise in the initialization message. Overwrites the default version from langchain4j.- Returns:
- protocol version
-
initializationTimeout
Sets the timeout for initializing the client. Overwrites the default timeout for initializing from langchain4j.- Returns:
- initialization timout
-
toolExecutionTimeout
Sets the timeout for tool execution. This value applies to each tool execution individually. A value of zero means no timeout. Overwrites the default timeout for tool execution from langchain4j.- Returns:
- tool execution timout
-
resourcesTimeout
Sets the timeout for resource-related operations (listing resources as well as reading the contents of a resource). A value of zero means no timeout. Overwrites the default timeout for resource-related operations from langchain4j.- Returns:
- resources timeout
-
promptsTimeout
The timeout for prompt-related operations (listing prompts as well as rendering the contents of a prompt). A value of zero means no timeout. Overwrites the default timeout for prompt-related operations from langchain4j.- Returns:
- prompts timeout
-
pingTimeout
The timeout to apply when waiting for a ping response. Overwrites the default timeout when waiting for a ping response from langchain4j.- Returns:
- ping timeout
-
reconnectInterval
The delay before attempting to reconnect after a failed connection. Overwrites the default reconnect interval from langchain4j.- Returns:
- reconnect interval
-
toolExecutionTimeoutErrorMessage
The error message to return when a tool execution times out. Overwrites the default error message from langchain4j.- Returns:
- time out error message
-
logRequests
Whether to log request traffic.- Returns:
- log request traffic
-
logResponses
Whether to log response traffic.- Returns:
- log response traffic
-
create(io.helidon.config.Config)