Freigeben über


IMcpToolServerConfigurationService.ListToolServersAsync Method

Definition

Overloads

Name Description
ListToolServersAsync(String, String)

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

ListToolServersAsync(String, String, ToolOptions)

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

ListToolServersAsync(String, String)

Source:
IMcpToolServerConfigurationService.cs

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

public System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.Agents.A365.Tooling.Models.MCPServerConfig>> ListToolServersAsync(string agentInstanceId, string authToken);
abstract member ListToolServersAsync : string * string -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.Agents.A365.Tooling.Models.MCPServerConfig>>
Public Function ListToolServersAsync (agentInstanceId As String, authToken As String) As Task(Of List(Of MCPServerConfig))

Parameters

agentInstanceId
String

Agent instance Id for the agent.

authToken
String

Auth token to access the MCP servers

Returns

Returns the list of MCP Servers that are configured.

Applies to

ListToolServersAsync(String, String, ToolOptions)

Source:
IMcpToolServerConfigurationService.cs

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

public System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.Agents.A365.Tooling.Models.MCPServerConfig>> ListToolServersAsync(string agentInstanceId, string authToken, Microsoft.Agents.A365.Tooling.Models.ToolOptions toolOptions);
abstract member ListToolServersAsync : string * string * Microsoft.Agents.A365.Tooling.Models.ToolOptions -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.Agents.A365.Tooling.Models.MCPServerConfig>>
Public Function ListToolServersAsync (agentInstanceId As String, authToken As String, toolOptions As ToolOptions) As Task(Of List(Of MCPServerConfig))

Parameters

agentInstanceId
String

Agent instance Id for the agent.

authToken
String

Auth token to access the MCP servers

toolOptions
ToolOptions

Tool options for listing servers.

Returns

Returns the list of MCP Servers that are configured.

Applies to