Skip to content

MCPServerConfig

autogen.beta.tools.toolkits.mcp_server.types.MCPServerConfig dataclass #

MCPServerConfig(server_url, server_label='', authorization_token=None, description=None, allowed_tools=None, blocked_tools=None, headers=None, connection_timeout=30.0, proxy=None, verify=True)

Configuration for a remote (HTTP / streamable-http) MCP server. It's important to specify AUTH headers as most MCP servers force auth nowadays.

server_url instance-attribute #

server_url

server_label class-attribute instance-attribute #

server_label = ''

authorization_token class-attribute instance-attribute #

authorization_token = None

description class-attribute instance-attribute #

description = None

allowed_tools class-attribute instance-attribute #

allowed_tools = None

blocked_tools class-attribute instance-attribute #

blocked_tools = None

headers class-attribute instance-attribute #

headers = None

connection_timeout class-attribute instance-attribute #

connection_timeout = 30.0

proxy class-attribute instance-attribute #

proxy = None

verify class-attribute instance-attribute #

verify = True