> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# MCP

## Classes

* [Client](/api-reference/voxengine/mcp/client) — Note that the MCP.Client using the [Model Context Protocol Go SDK v1.5.0](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk@v1.5.0).

## Enums

* [Events](/api-reference/voxengine/mcp/events)
* [ServerEvents](/api-reference/voxengine/mcp/server-events)

## Functions

### createClient

Creates a new [MCP.Client](/api-reference/voxengine/mcp/client) instance.

```ts
createClient(parameters: ClientParameters): Promise<Client>
```

**Parameters**

## Types

### ClientParameters

*Extends:* `_VoiceAIClientParameters`

[MCP.Client](/api-reference/voxengine/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](/api-reference/voxengine/web-socket) 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".