A MCP Client implementation with Azure OpenAI
This MCP Client was tested with this MCP Server for integration with Sql-Server .
It only supports tools but integrating prompts and resources should be easy with that.
The solution contains two projects:
The MCP Client implementation that also runs a console chat with the Azure LLM and calls the configured MCP Server.
To use it go to Program.cs and fill with the necessary configuration (Azure and MCP Server) and run it.
You will run a chat integrated with a MCP Server using stdio.
The console will ask your permission to run the tools requested by the LLM.
A Windows Form Chat that can be configured directly in the UI. It does the same as the Client project but more user friendly.
First fill the configuration for Azure OpenAI and optionally the MCP Server config and click Apply Configs.
Write a message then click Send.
If you you want to reset the chat conversation click Reset.
To change configs click again on Apply Configs.
Ask for a tool and it will ask your permission.
The results are then displayed on the chat.
Lets try a query to list users.
The results:








