MM

microsoft/mcp-dotnet-samples

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

201 stars 61 forks 质量 60 趋势 37MIT

一套关于在.NET下创建和使用MCP服务器及客户端的全面示例

概览

欢迎来到模型上下文协议(MCP).NET 样本库!本样本集演示了如何在 .NET 应用中利用模型上下文协议。 MCP是一种开放协议,规范了应用程序如何为大型语言模型(LLM)提供上下文。可以把MCP想象成AI应用的USB-C端口——它为连接AI模型与不同数据源和工具提供了一种标准化的方式。 - 利用预建集成,方便你的LLM直接接入 - 灵活切换LLM提供商和供应商 - 遵循基础设施中数据保护的最佳实践 - 在LLM之上构建代理和复杂工作流程 该仓库包含从构建您自己的MCP实现到与Azure服务集成的.NET示例。 关于如何设置和运行样本的详细信息将在每个样本的目录中提供。 - MCP 官方文档 - MCP GitHub 仓库 - 通过免费课程了解更多关于.NET生成式人工智能的信息!

概述(AI 翻译)

🚀 引言

欢迎来到模型上下文协议(MCP).NET 样本库!本样本集演示了如何在 .NET 应用中利用模型上下文协议。

MCP是一种开放协议,规范了应用程序如何为大型语言模型(LLM)提供上下文。可以把MCP想象成AI应用的USB-C端口——它为连接AI模型与不同数据源和工具提供了一种标准化的方式。

通过MCP,你可以:

  • 利用预建集成,方便你的LLM直接接入
  • 灵活地在LLM提供商和供应商之间切换
  • 遵循最佳实践,保护基础设施中的数据安全
  • 在大型语言模型之上构建代理和复杂工作流

该仓库包含从构建您自己的MCP实现到与Azure服务集成的.NET示例。

📋 样本项目

示例名称 安装 描述
超棒的Copilot MCP服务器从awesome-copilot获取GitHub Copilot自定义文件。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Model Context Protocol .NET Samples

🚀 Introduction

Welcome to the Model Context Protocol (MCP) .NET Samples repository! This collection of samples demonstrates how to leverage the Model Context Protocol in .NET applications.

MCP is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). Think of MCP like a USB-C port for AI applications - it provides a standardized way to connect AI models to different data sources and tools.

With MCP, you can:

  • Utilize pre-built integrations that your LLM can directly plug into
  • Flexibly switch between LLM providers and vendors
  • Follow best practices for securing your data within your infrastructure
  • Build agents and complex workflows on top of LLMs

This repository contains .NET samples ranging from building your own MCP implementation to integrating with Azure services.

📋 Sample Projects

Sample Name Install Description
Awesome Copilot MCP server that retrieves GitHub Copilot customization files from awesome-copilot.
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →