{"type":"mcp_server","name":"Aspire.MCP.Sample","description":"This repository provides a sample MCP server and client using Aspire, demonstrating MCP communication within a structured Aspire environment, including a Blazor Chat client and integration with LLMs for function calling.","category":"AI","language":"HTML","stars":46,"forks":2,"owner":"elbruno","github_url":"https://github.com/elbruno/Aspire.MCP.Sample","homepage":"https://aka.ms/aspiremcp/repo","setup":"## Setup\n\n### Prerequisites\n\n- .NET SDK 9.0 or later  \n- Visual Studio 2022 or Visual Studio code\n- LLM or SLM that supports function calling.\n\t- [Azure AI Foundry](https://ai.azure.com) to run models in the cloud. IE: gpt-4o-mini\n\t- [Ollama](https://ollama.com/) for running local models. Suggested: phi4-mini, llama3.2 or Qwq\n\n### Run locally\n\n1. Clone the repository:\n\n1. Navigate to the Aspire project directory:\n\n   ```bash\n   cd .\\src\\McpSample.AppHost\\\n   ```\n\n1. Run the project:\n   ```bash\n   dotnet run\n   ```\n\n1. In the Aspire Dashboard, navigate to the Blazor Chat client project.\n\n![Aspire Dashboard](./images/20AspireDashboard.png)\n\n1. In the Chat Settings page, define the model to be used. You choose to use models in Azure AI Foundry (suggested gpt-4o-mini), GitHub Models or locally with ollama (suggested llama3.2)\n\n![Chat Settings](./images/25ChatSettings.png)\n\n1. Now you can chat with the model. Everytime that one of the functions of the MCP server is called, the `Tool Result` section will be displayed in the chat.","tools":"## Available Tools\n\n\t\t1. MCP Server (Implements an MCP server to manage client communication.)\n\t\t2. MCP Client (Sample Blazor Chat client demonstrating how to connect and communicate with the MCP server.)\n\t\t3. Aspire Integration (Uses Aspire for containerized orchestration and service management.)","faq":null,"created_at":"2025-03-24T16:33:04+00:00","updated_at":"2025-03-28T18:06:08+00:00","source_url":"https://model-context-protocol.com/servers/aspire-mcp-server-client-sample-chat","related_articles":[]}