Freigeben über


McpToolServerConfigurationService.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:
McpToolServerConfigurationService.cs

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

public virtual 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>>
override this.ListToolServersAsync : string * string -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.Agents.A365.Tooling.Models.MCPServerConfig>>
Public Overridable 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.

Implements

Applies to

ListToolServersAsync(String, String, ToolOptions)

Source:
McpToolServerConfigurationService.cs

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

public virtual 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>>
override this.ListToolServersAsync : string * string * Microsoft.Agents.A365.Tooling.Models.ToolOptions -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.Agents.A365.Tooling.Models.MCPServerConfig>>
Public Overridable 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.

Implements

Applies to