Skip to content

Commit c8c359c

Browse files
author
Jesus Terrazas
committed
format
1 parent 4e69837 commit c8c359c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ async def list_tool_servers(
9999
if self._is_development_scenario():
100100
return self._load_servers_from_manifest()
101101
else:
102-
return await self._load_servers_from_gateway(
103-
agentic_app_id, auth_token, options
104-
)
102+
return await self._load_servers_from_gateway(agentic_app_id, auth_token, options)
105103

106104
# --------------------------------------------------------------------------
107105
# ENVIRONMENT DETECTION
@@ -334,9 +332,7 @@ async def _load_servers_from_gateway(
334332

335333
return mcp_servers
336334

337-
def _prepare_gateway_headers(
338-
self, auth_token: str, options: ToolOptions
339-
) -> Dict[str, str]:
335+
def _prepare_gateway_headers(self, auth_token: str, options: ToolOptions) -> Dict[str, str]:
340336
"""
341337
Prepares headers for tooling gateway requests.
342338
@@ -349,7 +345,9 @@ def _prepare_gateway_headers(
349345
"""
350346
return {
351347
Constants.Headers.AUTHORIZATION: f"{Constants.Headers.BEARER_PREFIX} {auth_token}",
352-
Constants.Headers.USER_AGENT: RuntimeUtility.get_user_agent_header(options.orchestrator_name),
348+
Constants.Headers.USER_AGENT: RuntimeUtility.get_user_agent_header(
349+
options.orchestrator_name
350+
),
353351
}
354352

355353
async def _parse_gateway_response(

0 commit comments

Comments
 (0)