Skip to content

Commit 0195f73

Browse files
Copilotpontemonti
andcommitted
Fix inconsistent server_name usage in Semantic Kernel service
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
1 parent 6eb7901 commit 0195f73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • libraries/microsoft-agents-a365-tooling-extensions-semantickernel/microsoft_agents_a365/tooling/extensions/semantickernel/services

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ async def add_tool_servers_to_agent(
141141
await plugin.connect()
142142

143143
# Add plugin to kernel
144-
kernel.add_plugin(plugin, server.mcp_server_name)
144+
kernel.add_plugin(plugin, server_name)
145145

146146
# Store reference to keep plugin alive throughout application lifecycle
147147
# By storing plugin references in _connected_plugins, we prevent Python's garbage collector from cleaning up the plugin objects

0 commit comments

Comments
 (0)