MCP.so
登录

Aspire.MCP.Sample

@elbruno

关于 Aspire.MCP.Sample

Sample MCP Server and MCP client with Aspire

基本信息

分类

其他

许可证

MIT

运行时

html

传输方式

stdio

发布者

elbruno

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Aspire.MCP.Sample?

Aspire.MCP.Sample is a sample project demonstrating a Model Context Protocol (MCP) server and client setup using Aspire, written in C#. It shows how to establish and manage MCP communication within a structured Aspire environment.

How to use Aspire.MCP.Sample?

Clone the repository, navigate to the Aspire project directory (src/McpSample.AppHost), and run dotnet run. In the Aspire Dashboard, open the Blazor Chat client, define the model (Azure AI Foundry, GitHub Models, or Ollama) in Chat Settings, then chat with the model to see function calls and tool results.

Features of Aspire.MCP.Sample

  • Aspire integration for containerized orchestration and service management.
  • MCP server to manage client communication.
  • Blazor Chat MCP client for connecting and communicating.
  • Supports Azure AI Foundry, Ollama, and GitHub Models.
  • Function calling from the MCP server using the selected model.
  • Displays tool result in the chat interface.
  • Azure deployment via azd commands.

Use cases of Aspire.MCP.Sample

  • Learn how to build an MCP server and client with Aspire.
  • Experiment with MCP function calling using different LLMs.
  • Deploy an MCP solution to Azure for cloud consumption.
  • Use as a reference for integrating MCP into .NET Aspire projects.

FAQ from Aspire.MCP.Sample

What prerequisites are needed to run Aspire.MCP.Sample?

You need .NET SDK 9.0 or later, Visual Studio 2022 or Visual Studio Code, and an LLM/SLM that supports function calling (Azure AI Foundry, GitHub Models, or Ollama).

Which models are supported?

The sample supports models from Azure AI Foundry (e.g., gpt-4o-mini), GitHub Models (e.g., gpt-4o-mini), and Ollama (e.g., phi4-mini, llama3.2, or Qwq).

Can I deploy Aspire.MCP.Sample to Azure?

Yes, after opening the project locally or in Codespaces, run azd auth login then azd up to provision and deploy all resources to Azure. The deploy files are in ./src/McpSample.AppHost/infra/.

What runtime environment does the server require?

The sample is built with .NET 9.0 and uses Aspire for containerized orchestration. It can run locally with dotnet run or be deployed to Azure.

Does Aspire.MCP.Sample support authentication or special transports?

The README does not mention authentication or custom transports beyond standard Aspire service management and HTTP-based communication via the Blazor client.

评论

其他 分类下的更多 MCP 服务器