MCP
Classes
- Client — Note that the MCP.Client using the Model Context Protocol Go SDK v1.5.0.
Enums
Functions
createClient
Creates a new MCP.Client instance.
Parameters
Types
ClientParameters
Extends: _VoiceAIClientParameters
MCP.Client parameters. Can be passed as arguments to the MCP.createClient method.
The MCP server connection configuration.
Inherited fields
_optional, inherited from VoiceAIClientParameters
Optional. A callback function that is called when the WebSocket connection is closed.
_optional, inherited from WebSocketBasedClientParameters
Optional. Whether to enable the privacy functionality.
If privacy is enabled, the logging for the WebSocket connection is disabled.
NOTE: the default value is false.
_optional, inherited from WebSocketBasedClientParameters
Optional. Enables statistics functionality.
_optional, inherited from WebSocketBasedClientParameters
Optional. Whether to enable the tracing functionality.
If tracing is enabled, a URL to the trace file appears in the ‘websocket.created’ message. The file contains all sent and received WebSocket messages in the plain text format. The file is uploaded to the S3 storage.
NOTE: enable this only for diagnostic purposes. You can provide the trace file to our support team to help investigating issues.
MCPServerConnectionConfig
MCP server connection configuration.
ClientName and ClientVersion identify this MCP client in the protocol handshake.
ClientVersion identify this MCP client in the protocol handshake.
Endpoint is the server URL for “http” or “sse” transport.
Headers to send to the MCP server on HTTP/SSE requests (e.g. Authorization, API keys). You can use it to pass authentication headers to the MCP server.
Transport is “http”, or “sse”.