Skip to content

Commit 31f547a

Browse files
Copilotpontemonti
andcommitted
Simplify custom URL checks by removing redundant strip calls
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
1 parent fe26a98 commit 31f547a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def _parse_manifest_server_config(
402402
custom_url = self._extract_server_url(server_element)
403403

404404
# If custom URL is provided, use it directly; otherwise construct from base URL
405-
if custom_url and custom_url.strip():
405+
if custom_url:
406406
return MCPServerConfig(
407407
mcp_server_name=name, mcp_server_unique_name=server_name, url=custom_url
408408
)
@@ -437,7 +437,7 @@ def _parse_gateway_server_config(
437437
custom_url = self._extract_server_url(server_element)
438438

439439
# If custom URL is provided, use it; otherwise use the endpoint as-is
440-
if custom_url and custom_url.strip():
440+
if custom_url:
441441
return MCPServerConfig(
442442
mcp_server_name=name, mcp_server_unique_name=endpoint, url=custom_url
443443
)

0 commit comments

Comments
 (0)