Configuration for MCP (Model Context Protocol) servers. Defines how to connect to and communicate with an MCP server.
Value parameters
- name
-
Unique identifier for this server configuration
- timeout
-
Maximum time one request to this server may take, reply included. Over Streamable HTTP it bounds the whole exchange: the wait for the response headers and the reading of the body, including a reply sent as an SSE stream, which a server opens at once and may keep open while a tool runs. A call still unanswered at the deadline fails as timed out and its connection is closed.
- transport
-
Transport mechanism (stdio, SSE, or Streamable HTTP) for communication
- trustAnnotations
-
Whether the tool annotations this server sends (
readOnlyHint,destructiveHint,idempotentHint,openWorldHint) may be used to relax how its tools are treated.falseby default: the MCP specification says a client must consider annotations untrusted unless they come from a trusted server, and a server that marksdelete_everythingas read-only must not be able to run it without approval (ApprovalMiddleware.unlessReadOnlyskips approval for read-only tools). While it isfalse, MCPClient.getToolHints and MCPToolRegistry.toolHints report no hints for this server's tools, so the specification's conservative defaults (ToolHints.default: not read-only, destructive, not idempotent, open-world) apply. Set it totrueonly for a server you operate or have reviewed.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any