Confidential guide on numerology and astrology, based of GG33 Public information

Aspire.mcp.sample
Exemple du serveur MCP et du client MCP avec Aspire
3 years
Works with Finder
4
Github Watches
10
Github Forks
26
Github Stars
Aspire.MCP.Sample
Sample MCP Server and MCP client using Aspire.
Overview
This sample demonstrates a Model Context Protocol (MCP) Server and client setup using Aspire. It showcases how to establish and manage MCP communication, using C# in a structured Aspire environment.
Quick Demo
Check out this 5-minute video overview to see the project in action.
Check out this 5-minute video overview to see how to deploy the solution to Azure, and how to consume the deployed MCP Server in Azure from Visual Studio Code.
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. The selected model must support function calling to be able to call the MCP server functions.
- Function Calling: Demonstrates how to call functions from the MCP server using the selected model.
- Tool Result: Displays the result of the function call in the chat interface.
-
Azure Deployment: The project can be easily deployed to Azure using
azd
commands.
Getting Started
Prerequisites
- .NET SDK 9.0 or later
- Visual Studio 2022 or Visual Studio code
- LLM or SLM that supports function calling.
- Azure AI Foundry to run models in the cloud. IE: gpt-4o-mini
- GitHub Models to run models in the cloud. IE: gpt-4o-mini
- Ollama for running local models. Suggested: phi4-mini, llama3.2 or Qwq
Run locally
-
Clone the repository:
-
Navigate to the Aspire project directory:
cd .\src\McpSample.AppHost\
-
Run the project:
dotnet run
-
In the Aspire Dashboard, navigate to the Blazor Chat client project.
-
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)
-
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.
Architecture Diagram
GitHub Codespaces
(WIP)
- Codespaces configuration will be added soon.
Deployment
Once you've opened the project in Codespaces, or locally, you can deploy it to Azure.
From a Terminal window, open the folder with the clone of this repo and run the following commands.
-
Login to Azure:
azd auth login
-
Provision and deploy all the resources:
azd up
It will prompt you to provide an
azd
environment name (like "aspiremcp"), select a subscription from your Azure account, and select a location. -
When
azd
has finished deploying, you'll see the list of resources created in Azure and a set of URIs in the command output. -
Visit the blazorchat URI, and you should see the MCP Chat App! 🎉
Note: The deploy files are located in the ./src/McpSample.AppHost/infra/
folder. They are generated by the Aspire AppHost
project.
Contributing
Contributions are welcome! Feel free to submit issues and pull requests.
License
This project is licensed under the MIT License.
相关推荐
Advanced software engineer GPT that excels through nailing the basics.
I find academic articles and books for research and literature reviews.
Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.
Take an adjectivised noun, and create images making it progressively more adjective!
Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.
Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX
La communauté du curseur et de la planche à voile, recherchez des règles et des MCP
MCP Server pour récupérer le contenu de la page Web à l'aide du navigateur sans tête du dramwright.
Un puissant plugin Neovim pour gérer les serveurs MCP (Protocole de contexte modèle)
🔥 1Panel fournit une interface Web intuitive et un serveur MCP pour gérer des sites Web, des fichiers, des conteneurs, des bases de données et des LLM sur un serveur Linux.
Pont entre les serveurs Olllama et MCP, permettant aux LLM locaux d'utiliser des outils de protocole de contexte de modèle
L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.
Reviews

user_xhXNQRNB
Aspire.MCP.Sample by elbruno is an excellent tool for MCP application enthusiasts. The GitHub link provides comprehensive details and a straightforward setup guide, making it easy to implement and use. The well-crafted welcome message and clear start URL streamline the onboarding process, making it a highly recommended resource for any developer looking to explore MCP functionalities.