McpToolServerConfigurationService.ListToolServersAsync(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>>
override this.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.