Freigeben über


McpToolServerConfigurationService Class

Definition

Provides services for managing MCP server configurations.

public class McpToolServerConfigurationService : Microsoft.Agents.A365.Tooling.Services.IMcpToolServerConfigurationService
type McpToolServerConfigurationService = class
    interface IMcpToolServerConfigurationService
Public Class McpToolServerConfigurationService
Implements IMcpToolServerConfigurationService
Inheritance
McpToolServerConfigurationService
Implements

Constructors

Name Description
McpToolServerConfigurationService(ILogger<IMcpToolServerConfigurationService>, IConfiguration, IServiceProvider, IHttpClientFactory)

Initializes a new instance of the McpToolServerConfigurationService class.

Methods

Name Description
EnumerateAllToolsAsync(String, String, ITurnContext, ToolOptions)

Enumerates all MCP tools from configured servers, returning a flat list of all tools.

EnumerateToolsFromServersAsync(String, String, ITurnContext, ToolOptions)

Enumerates all MCP tools from configured servers for a given agent.

GetMcpClientToolsAsync(ITurnContext, MCPServerConfig, String, ToolOptions)

Gets the MCP Client Tools from the specified MCP server.

ListToolServersAsync(String, String, ToolOptions)

Gets the list of MCP Servers that are configured for the agent.

ListToolServersAsync(String, String)

Gets the list of MCP Servers that are configured for the agent.

SendChatHistoryAsync(ITurnContext, ChatHistoryMessage[], CancellationToken)

Sends chat history to the MCP platform for real-time threat protection.

SendChatHistoryAsync(ITurnContext, ChatHistoryMessage[], ToolOptions, CancellationToken)

Sends chat history to the MCP platform for real-time threat protection.

Applies to