Skip to content

Commit cb3f7b8

Browse files
Copilotpontemonti
andcommitted
Rename custom_url to endpoint for better clarity
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
1 parent 5f056f1 commit cb3f7b8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,10 @@ def _parse_manifest_server_config(
399399
return None
400400

401401
# Check if a custom URL is provided
402-
custom_url = self._extract_server_url(server_element)
402+
endpoint = self._extract_server_url(server_element)
403403

404404
# Determine the final URL: use custom URL if provided, otherwise construct it
405-
final_url = custom_url if custom_url else build_mcp_server_url(server_name)
405+
final_url = endpoint if endpoint else build_mcp_server_url(server_name)
406406

407407
return MCPServerConfig(
408408
mcp_server_name=name, mcp_server_unique_name=server_name, url=final_url
@@ -431,10 +431,10 @@ def _parse_gateway_server_config(
431431
return None
432432

433433
# Check if a custom URL is provided by the gateway
434-
custom_url = self._extract_server_url(server_element)
434+
endpoint = self._extract_server_url(server_element)
435435

436436
# Determine the final URL: use custom URL if provided, otherwise construct it
437-
final_url = custom_url if custom_url else build_mcp_server_url(mcp_server_unique_name)
437+
final_url = endpoint if endpoint else build_mcp_server_url(mcp_server_unique_name)
438438

439439
return MCPServerConfig(mcp_server_name=name, mcp_server_unique_name=mcp_server_unique_name, url=final_url)
440440

0 commit comments

Comments
 (0)