Table of Contents

Class InteractionMcpServerTool

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

A remote MCP server whose tools the model may call (mcp_server).

public sealed class InteractionMcpServerTool : InteractionTool
Inheritance
InteractionMcpServerTool
Inherited Members
Extension Methods

Constructors

InteractionMcpServerTool()

Initializes a new instance of the InteractionMcpServerTool class.

public InteractionMcpServerTool()

Properties

AllowedTools

The allowed tools.

[JsonPropertyName("allowed_tools")]
public List<InteractionAllowedTools>? AllowedTools { get; set; }

Property Value

List<InteractionAllowedTools>

Headers

Headers to send to the server (authentication, etc.).

[JsonPropertyName("headers")]
public Dictionary<string, string>? Headers { get; set; }

Property Value

Dictionary<string, string>

Name

The name of the MCP server.

[JsonPropertyName("name")]
public string? Name { get; set; }

Property Value

string

Url

The full URL of the MCP server endpoint.

[JsonPropertyName("url")]
public string? Url { get; set; }

Property Value

string