Skip to content

Commit fa3cf88

Browse files
pontemontiCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2cc4a3b commit fa3cf88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ async def add_tool_servers_to_agent(
8888
New Agent instance with all MCP servers, or original agent if no new servers
8989
"""
9090

91-
if auth_token is None:
91+
if auth_token is None or auth_token.strip() == "":
9292
scopes = get_mcp_platform_authentication_scope()
9393
authToken = await auth.exchange_token(context, scopes, auth_handler_name)
9494
auth_token = authToken.token

0 commit comments

Comments
 (0)