View the source code for this module on GitHub: https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/client/connectors/websocket.py
WebSocket connector for MCP implementations API Documentation
from mcp_use.client.connectors.websocket import WebSocketConnector
method initSignatureThe WebSocket URL to connect to.Optional additional headers.Authentication method - can be:
def __init__(url: str, headers: dict[str, str] | None = None, auth: str | dict[str, typing.Any] | httpx.Auth | None = None):
Was this page helpful?