dragon.ai.agent.config.agent_config.MCPServerConfig

class MCPServerConfig[source]

Bases: object

Configuration for a single MCP server connection.

Parameters

url:

Full HTTP/HTTPS URL of the MCP server endpoint.

alias:

Short unique label used to scope tool names from this server. Tools will be exposed as {alias}__{tool_name}.

token:

Optional bearer token for authentication.

max_retries:

Number of connection attempts before raising ConnectionError. Defaults to 3.

retry_delay:

Seconds to wait between retry attempts. Defaults to 0.5.

timeout:

Per-attempt connection timeout in seconds. Defaults to 5.0.

__init__(url: str , alias: str , token: str | None = None, max_retries: int = 3, retry_delay: float = 0.5, timeout: float = 5.0) None

Methods

__init__(url, alias[, token, max_retries, ...])

Attributes

max_retries

retry_delay

timeout

token

url

alias

url: str
alias: str
token: str | None = None
max_retries: int = 3
retry_delay: float = 0.5
timeout: float = 5.0
__init__(url: str , alias: str , token: str | None = None, max_retries: int = 3, retry_delay: float = 0.5, timeout: float = 5.0) None