Skip to content

Commit 7ed47c7

Browse files
author
Jesus Terrazas
committed
format
1 parent e2a7178 commit 7ed47c7

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ async def add_tool_servers_to_agent(
105105
f"{Constants.Headers.BEARER_PREFIX} {auth_token}"
106106
)
107107

108-
headers[Constants.Headers.USER_AGENT] = Utility.get_user_agent_header("AgentFramework")
108+
headers[Constants.Headers.USER_AGENT] = Utility.get_user_agent_header(
109+
"AgentFramework"
110+
)
109111

110112
server_name = getattr(config, "mcp_server_name", "Unknown")
111113

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ async def _get_mcp_tool_definitions_and_resources(
189189
)
190190
mcp_tool.update_headers(Constants.Headers.AUTHORIZATION, header_value)
191191

192-
mcp_tool.update_headers(Constants.Headers.USER_AGENT, Utility.get_user_agent_header("AzureAIFoundry"))
192+
mcp_tool.update_headers(
193+
Constants.Headers.USER_AGENT, Utility.get_user_agent_header("AzureAIFoundry")
194+
)
193195

194196
# Add to collections
195197
tool_definitions.extend(mcp_tool.definitions)

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ async def add_tool_servers_to_agent(
132132
Constants.Headers.AUTHORIZATION: f"{Constants.Headers.BEARER_PREFIX} {auth_token}",
133133
}
134134

135-
headers[Constants.Headers.USER_AGENT] = Utility.get_user_agent_header("SemanticKernel")
135+
headers[Constants.Headers.USER_AGENT] = Utility.get_user_agent_header(
136+
"SemanticKernel"
137+
)
136138

137139
plugin = MCPStreamableHttpPlugin(
138140
name=server.mcp_server_name,

0 commit comments

Comments
 (0)