Skip to content

Commit 32039fc

Browse files
Copilotpontemonti
andcommitted
Add clarifying comment for server_name fallback logic
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
1 parent ad365b0 commit 32039fc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • libraries/microsoft-agents-a365-tooling-extensions-agentframework/microsoft_agents_a365/tooling/extensions/agentframework/services

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ async def add_tool_servers_to_agent(
108108
self._orchestrator_name
109109
)
110110

111+
# Use mcp_server_name if available, otherwise fall back to mcp_server_unique_name
111112
server_name = config.mcp_server_name or config.mcp_server_unique_name
112113

113114
# Create and configure MCPStreamableHTTPTool

0 commit comments

Comments
 (0)