Namespace GenerativeAI.Tools.Mcp
Model Context Protocol (MCP) integration: McpTool exposes the tools of any MCP server to Gemini, and
McpTransportFactory creates stdio and HTTP transports.
Classes
- McpTool
A tool implementation that integrates MCP (Model Context Protocol) servers with Google Generative AI. This allows you to expose tools from any MCP server to Gemini models for function calling. Supports all MCP transport protocols: stdio, HTTP/SSE, and custom transports.
- McpToolOptions
Configuration options for the McpTool.
- McpTransportFactory
Factory class for creating MCP client transports with common configurations. Supports stdio, HTTP/SSE, and other transport protocols.