Skip to content

Commit 9ae5bb6

Browse files
author
Jesus Terrazas
committed
copilot comments 1x
1 parent bd46a0c commit 9ae5bb6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

libraries/microsoft-agents-a365-tooling-extensions-azureaifoundry/microsoft_agents_a365/tooling/extensions/azureaifoundry/services/mcp_tool_registration_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ async def _get_mcp_tool_definitions_and_resources(
143143
# Get MCP server configurations
144144
try:
145145
servers = await self._mcp_server_configuration_service.list_tool_servers(
146-
agentic_app_id, auth_token, self.orchestrator_name
146+
agentic_app_id, auth_token, self._orchestrator_name
147147
)
148148
except Exception as ex:
149149
self._logger.error(

libraries/microsoft-agents-a365-tooling/microsoft_agents_a365/tooling/services/mcp_tool_server_configuration_service.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ async def list_tool_servers(
7777
Args:
7878
agentic_app_id: Agentic App ID for the agent.
7979
auth_token: Authentication token to access the MCP servers.
80+
orchestrator_name: Optional orchestrator name to include in User-Agent header.
8081
8182
Returns:
8283
List[MCPServerConfig]: Returns the list of MCP Servers that are configured.
@@ -288,6 +289,7 @@ async def _load_servers_from_gateway(
288289
Args:
289290
agentic_app_id: Agentic App ID for the agent.
290291
auth_token: Authentication token to access the tooling gateway.
292+
orchestrator_name: Optional orchestrator name to include in User-Agent header.
291293
292294
Returns:
293295
List[MCPServerConfig]: List of MCP server configurations from tooling gateway.
@@ -336,6 +338,7 @@ def _prepare_gateway_headers(
336338
337339
Args:
338340
auth_token: Authentication token.
341+
orchestrator_name: Optional orchestrator name to include in User-Agent header.
339342
340343
Returns:
341344
Dictionary of HTTP headers.

0 commit comments

Comments
 (0)