Freigeben über


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.

SendChatHistoryAsync(ChatMessageStore, ITurnContext, CancellationToken)

Sends chat history from a ChatMessageStore to the MCP platform.

SendChatHistoryAsync(ChatMessageStore, ITurnContext, ToolOptions, CancellationToken)

Sends chat history from a ChatMessageStore to the MCP platform.

SendChatHistoryAsync(IEnumerable<ChatMessage>, ITurnContext, CancellationToken)

Sends chat history to the MCP platform.

SendChatHistoryAsync(IEnumerable<ChatMessage>, ITurnContext, ToolOptions, CancellationToken)

Sends chat history to the MCP platform.

Applies to