Share via


IMcpToolRegistrationService Interface

Definition

Provides methods for managing MCP tool server registrations for Agent Framework scenarios.

public interface IMcpToolRegistrationService
type IMcpToolRegistrationService = interface
Public Interface IMcpToolRegistrationService
Derived

Methods

Name Description
AddToolServersToAgent(IChatClient, String, IList<AITool>, String, UserAuthorization, String, ITurnContext, String)

Add new MCP servers to the agent by creating a new Agent instance.

Note: Due to Microsoft.Extensions.AI framework limitations, MCP tools must be set during Agent creation. If new tools are found, this method creates a new Agent instance with all tools (existing + new) properly initialized.

GetMcpToolsAsync(String, UserAuthorization, String, ITurnContext, String)

Returns a List of MCP tools to be added to the agent.

Applies to