XrmToolBox
XrmToolBox copied to clipboard
Add MCP support to XrmToolBox
Model Context Protocol (MCP) is an open protocol that allows applications to provide context to Large Language Models (LLMs). An MCP Server is an application that exposes specific capabilities to an LLM using MCP, so that the LLM can perform various tasks.
It would be great if a plugin in XrmToolBox could describe its capabilities using the Model Context Protocol, so that these tools could be invoked by an LLM. This would allow:
- An AI chatbot implemented as a plugin in XTB could discover and invoke the tools in XTB that implement the MCP protocol.
- In addition, an external MCP Host (like Claude Desktop or ChatGPT) could use an instance of XTB as an MCP Server, and invoke the various tools.
It would be ideal if the official C# MCP SDK could be used in XTB, so that the development effort in XTB could be kept to a minimum as the MCP specification evolves, and more functionality becomes available in the SDK.
An alternative approach could be that an interface is defined that allows plugins to describe the tools available to an LLM, and that a custom mechanism (not MCP) is implemented for tool discovery and invokation from other plugins within XTB. Lacking MCP, differences in how different LLMs handle tool invokation would need to be handled - preferrably using functionality in Microsoft.Extensions.AI.