Skip to content

Commit ad365b0

Browse files
Copilotpontemonti
andcommitted
Use 'or' operator for cleaner fallback logic in server_name assignment
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
1 parent 463d9bf commit ad365b0

1 file changed

Lines changed: 1 addition & 1 deletion

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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ async def add_tool_servers_to_agent(
108108
self._orchestrator_name
109109
)
110110

111-
server_name = config.mcp_server_name if config.mcp_server_name else config.mcp_server_unique_name
111+
server_name = config.mcp_server_name or config.mcp_server_unique_name
112112

113113
# Create and configure MCPStreamableHTTPTool
114114
mcp_tools = MCPStreamableHTTPTool(

0 commit comments

Comments
 (0)