diff --git a/src/Infrastructure/BotSharp.MCP/Functions/McpToolFunction.cs b/src/Infrastructure/BotSharp.MCP/Functions/McpToolAdapter.cs similarity index 97% rename from src/Infrastructure/BotSharp.MCP/Functions/McpToolFunction.cs rename to src/Infrastructure/BotSharp.MCP/Functions/McpToolAdapter.cs index 1f6f2c60..60cfb531 100644 --- a/src/Infrastructure/BotSharp.MCP/Functions/McpToolFunction.cs +++ b/src/Infrastructure/BotSharp.MCP/Functions/McpToolAdapter.cs @@ -13,13 +13,13 @@ using System.Threading.Tasks; namespace BotSharp.Core.Mcp.Functions; -public class McpToolFunction : IFunctionCallback +public class McpToolAdapter : IFunctionCallback { private readonly Tool _tool; private readonly MCPClientManager _clientManager; private readonly IServiceProvider _serviceProvider; - public McpToolFunction(IServiceProvider provider, Tool tool, MCPClientManager client) + public McpToolAdapter(IServiceProvider provider, Tool tool, MCPClientManager client) { _serviceProvider = provider ?? throw new ArgumentNullException(nameof(provider)); _tool = tool ?? throw new ArgumentNullException(nameof(tool)); diff --git a/src/Infrastructure/BotSharp.MCP/McpPlugin.cs b/src/Infrastructure/BotSharp.MCP/McpPlugin.cs index 1780ff56..3441679d 100644 --- a/src/Infrastructure/BotSharp.MCP/McpPlugin.cs +++ b/src/Infrastructure/BotSharp.MCP/McpPlugin.cs @@ -54,7 +54,7 @@ public class McpPlugin : IBotSharpPlugin services.AddScoped(provider => { - var funcTool = new McpToolFunction(provider, tool, clientManager); + var funcTool = new McpToolAdapter(provider, tool, clientManager); return funcTool; }); }