A MCPServer is a server that can be called by the model to perform actions.

interface MCPServer {
    allowed_tools?: GeminiNextGenAPIClient.Interactions.AllowedTools[];
    headers?: { [key: string]: string };
    name?: string;
    type: "mcp_server";
    url?: string;
}

Properties

The allowed tools.

headers?: { [key: string]: string }

Optional: Fields for authentication headers, timeouts, etc., if needed.

name?: string

The name of the MCPServer.

type: "mcp_server"
url?: string

The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp"