ToolsetMcpToolset class
Constructors
-
ToolsetMcpToolset({Input<
ToolsetMcpToolsetApiAuthentication?> ? apiAuthentication, Input<Map< ? customHeaders, required Input<String, String> ?>String> serverAddress, Input<ToolsetMcpToolsetServiceDirectoryConfig?> ? serviceDirectoryConfig, Input<ToolsetMcpToolsetTlsConfig?> ? tlsConfig}) -
Creates a new ToolsetMcpToolset.
apiAuthenticationAuthentication information required to access tools and execute a toolcustomHeadersThe custom headers to send in the request to the MCP server. The valuesserverAddressThe address of the MCP server, for example, "https://example.com/mcp/". IfserviceDirectoryConfigService Directory configuration for VPC-SC, used to resolve service namestlsConfigThe TLS configuration. Includes the custom server certificates that theconst -
ToolsetMcpToolset.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
apiAuthentication
→ Input<
ToolsetMcpToolsetApiAuthentication?> ? -
Authentication information required to access tools and execute a tool
against the MCP server. For API key auth, the API key can only be sent in
the request header; sending it via query parameters is not supported.
Structure is documented below.
final
-
customHeaders
→ Input<
Map< ?String, String> ?> -
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.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serverAddress
→ Input<
String> -
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.
final
-
serviceDirectoryConfig
→ Input<
ToolsetMcpToolsetServiceDirectoryConfig?> ? -
Service Directory configuration for VPC-SC, used to resolve service names
within a perimeter.
Structure is documented below.
final
-
tlsConfig
→ Input<
ToolsetMcpToolsetTlsConfig?> ? -
The TLS configuration. Includes the custom server certificates that the
client should trust.
Structure is documented below.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited