0.6.0 (latest) 0.5.0 0.4.4 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Ces V1 Client class McpToolset.

A toolset that contains a list of tools that are offered by the MCP
server.

Generated from protobuf message `google.cloud.ces.v1.McpToolset`

## Namespace

Google \\ Cloud \\ Ces \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ server_address` | `string` Required. The address of the MCP server, for example, "<https://example.com/mcp/>". If the server is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP transport based servers are supported. See <https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http> for more details. |
| `↳ api_authentication` | `ApiAuthentication` Optional. Authentication information required to access tools and execute a tool against the MCP server. For bearer token authentication, the token applies only to tool execution, not to listing tools. This requires that tools can be listed without authentication. |
| `↳ service_directory_config` | `ServiceDirectoryConfig` Optional. Service Directory configuration for VPC-SC, used to resolve service names within a perimeter. |
| `↳ tls_config` | `TlsConfig` Optional. The TLS configuration. Includes the custom server certificates that the client should trust. |
| `↳ custom_headers` | `array|Google\Protobuf\Internal\MapField` Optional. The custom headers to send in the request to the MCP server. The values must be in the format `$context.variables.<name_of_variable>` and can be set in the session variables. See <https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection> for more details. |
| `↳ tool_overrides` | `array<McpToolOverride>` Optional. Overrides for individual tools within this toolset. This allows overriding specific details like descriptions, names, or pinning the tools' states so they aren't fully dynamic. |

### getServerAddress

Required. The address of the MCP server, for example,
"<https://example.com/mcp/>". If the server is built with the MCP SDK, the
url should be suffixed with
"/mcp/". Only Streamable HTTP transport based servers are supported. See
<https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http>
for more details.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setServerAddress

Required. The address of the MCP server, for example,
"<https://example.com/mcp/>". If the server is built with the MCP SDK, the
url should be suffixed with
"/mcp/". Only Streamable HTTP transport based servers are supported. See
<https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http>
for more details.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getApiAuthentication

Optional. Authentication information required to access tools and execute a
tool against the MCP server. For bearer token authentication, the token
applies only to tool execution, not to listing tools. This requires that
tools can be listed without authentication.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ApiAuthentication|null` |   |

### hasApiAuthentication

### clearApiAuthentication

### setApiAuthentication

Optional. Authentication information required to access tools and execute a
tool against the MCP server. For bearer token authentication, the token
applies only to tool execution, not to listing tools. This requires that
tools can be listed without authentication.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `ApiAuthentication` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getServiceDirectoryConfig

Optional. Service Directory configuration for VPC-SC, used to resolve
service names within a perimeter.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ServiceDirectoryConfig|null` |   |

### hasServiceDirectoryConfig

### clearServiceDirectoryConfig

### setServiceDirectoryConfig

Optional. Service Directory configuration for VPC-SC, used to resolve
service names within a perimeter.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `ServiceDirectoryConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTlsConfig

Optional. The TLS configuration. Includes the custom server certificates
that the client should trust.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TlsConfig|null` |   |

### hasTlsConfig

### clearTlsConfig

### setTlsConfig

Optional. The TLS configuration. Includes the custom server certificates
that the client should trust.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `TlsConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCustomHeaders

Optional. The custom headers to send in the request to the MCP server. The
values must be in the format `$context.variables.<name_of_variable>` and
can be set in the session variables. See
<https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection>
for more details.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Internal\MapField` |   |

### setCustomHeaders

Optional. The custom headers to send in the request to the MCP server. The
values must be in the format `$context.variables.<name_of_variable>` and
can be set in the session variables. See
<https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/open-api#openapi-injection>
for more details.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|Google\Protobuf\Internal\MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getToolOverrides

Optional. Overrides for individual tools within this toolset.

This allows overriding specific details like descriptions, names,
or pinning the tools' states so they aren't fully dynamic.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<McpToolOverride>` |   |

### setToolOverrides

Optional. Overrides for individual tools within this toolset.

This allows overriding specific details like descriptions, names,
or pinning the tools' states so they aren't fully dynamic.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<McpToolOverride>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |