Share via


McpToolServerConfigurationService Class

Provides services for MCP tool server configuration management.

This service handles discovery and configuration of MCP (Model Context Protocol) tool servers from multiple sources:

  • Development: Local ToolingManifest.json files
  • Production: Remote tooling gateway endpoints

Initialize the MCP Tool Server Configuration Service.

Constructor

McpToolServerConfigurationService(logger: Logger | None = None)

Parameters

Name Description
logger

Logger instance for logging operations. If None, creates a new logger.

Default value: None

Methods

list_tool_servers

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

list_tool_servers

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

async list_tool_servers(agentic_app_id: str, auth_token: str) -> List[MCPServerConfig]

Parameters

Name Description
agentic_app_id
Required

Agentic App ID for the agent.

auth_token
Required

Authentication token to access the MCP servers.

Returns

Type Description

Returns the list of MCP Servers that are configured.

Exceptions

Type Description

If required parameters are invalid or empty.

If there's an error communicating with the tooling gateway.