Aspire.MCP.Sample
Sample MCP Server and MCP client using Aspire.
The Aspire.MCP.Sample project demonstrates a Model Context Protocol (MCP) Server and client setup using Aspire. It provides a structured environment for establishing and managing MCP communication using C#. The project includes a sample Blazor Chat client that connects to the MCP server, showcasing how to use Large Language Models (LLMs) from platforms like Azure AI Foundry, Ollama, or GitHub models. The project supports function calling, allowing the chat client to interact with the MCP server functions. Additionally, the project can be easily deployed to Azure, making it a versatile solution for developers looking to integrate MCP communication in their applications.
Features
- Aspire Integration: Uses Aspire for containerized orchestration and service management.
- MCP Server: Implements an MCP server to manage client communication.
- MCP Client: Sample Blazor Chat client demonstrating how to connect and communicate with the MCP server.
- Model Selection: The Chat Client can use LLMs from Azure AI Foundry, Ollama or GitHub models.
- Azure Deployment: The project can be easily deployed to Azure using `azd` commands.