dotnet-ai

ساخت، اشکال‌زدایی و انتشار MCP Serverهای C# با ابزارهای رسمی .NET

این Skill Bundle مجموعه‌ای از مهارت‌های تخصصی برای توسعه MCP Server با C# و .NET است؛ از ایجاد پروژه و پیاده‌سازی tools، prompts و resources تا اجرای محلی، اشکال‌زدایی و آماده‌سازی برای انتشار.

برای تیم‌هایی مفید است که می‌خواهند MCP Serverهای خود را با transportهای stdio یا HTTP بسازند، در VS Code و Visual Studio بررسی کنند و روی NuGet، Docker، Azure یا MCP Registry منتشر کنند.

چه چیزی می‌گیرید

  • ساخت MCP Server با C# SDK و templateهای .NET
  • پیاده‌سازی و پیکربندی tools، prompts و resources
  • اجرای محلی و اشکال‌زدایی با dotnet run، MCP Inspector و IDEها
  • بسته‌بندی stdio server به‌صورت NuGet tool و containerize کردن HTTP server با Docker
  • راهنمای انتشار روی Azure Container Apps، App Service و MCP Registry

برای چه کاری خوب است

  • توسعه‌دهندگانی که می‌خواهند MCP Server جدیدی با C# و .NET بسازند
  • تیم‌هایی که به تست محلی، رفع خطا و عیب‌یابی MCP protocol نیاز دارند
  • پروژه‌هایی که باید MCP Server را برای استفاده داخلی یا production منتشر کنند

برای چه کاری نیست

  • ساخت MCP Server با زبان‌ها یا runtimeهای غیر .NET
  • توسعه MCP client یا سرویس‌های عمومی که ارتباطی با MCP ندارند
  • راهنمایی عمومی Docker، NuGet یا deployment که مخصوص MCP Server نیست

دربارهٔ این اسکیل

Install This Skill

CLI Manual

/plugin marketplace add dotnet/skills
/plugin install dotnet-ai@dotnet-agent-skills
# This entry installs as a plugin, so there is no single SKILL.md to download.
open https://github.com/dotnet/skills/tree/main/plugins/dotnet-ai

Skill bundle — 5 sub-skills

upstream is a skill bundle

This catalog entry is a skill bundle that ships 5 individual SKILL.md files. Each one is listed below — click through to read the full markdown on GitHub.

mcp-csharp-create

Create MCP servers using the C# SDK and .NET project templates. Covers scaffolding, tool/prompt/resource implementation, and transport configuration for stdio and HTTP. USE FOR: creating new MCP server projects, scaffolding with dotnet new mcpserver, adding MCP tools/prompts/resources, choosing stdio vs HTTP transport, configuring MCP hosting in Program.cs, setting up ASP.NET Core MCP endpoints with MapMcp. DO NOT USE FOR: debugging or running existing servers (use mcp-csharp-debug), writing tests (use mcp-csharp-test), publishing or deploying (use mcp-csharp-publish), building MCP clients, non-.NET MCP servers.

mcp-csharp-debug

Run and debug C# MCP servers locally. Covers IDE configuration, MCP Inspector testing, GitHub Copilot Agent Mode integration, logging setup, and troubleshooting. USE FOR: running MCP servers locally with dotnet run, configuring VS Code or Visual Studio for MCP debugging, testing tools with MCP Inspector, testing with GitHub Copilot Agent Mode, diagnosing tool registration issues, setting up mcp.json configuration, debugging MCP protocol messages, configuring logging for stdio and HTTP servers. DO NOT USE FOR: creating new MCP servers (use mcp-csharp-create), writing automated tests (use mcp-csharp-test), publishing or deploying to production (use mcp-csharp-publish).

mcp-csharp-publish

Publish and deploy C# MCP servers. Covers NuGet packaging for stdio servers, Docker containerization for HTTP servers, Azure Container Apps and App Service deployment, and publishing to the official MCP Registry. USE FOR: packaging stdio MCP servers as NuGet tools, creating Dockerfiles for HTTP MCP servers, deploying to Azure Container Apps or App Service, publishing to the MCP Registry at registry.modelcontextprotocol.io, configuring server.json for MCP package metadata, setting up CI/CD for MCP server publishing. DO NOT USE FOR: publishing general NuGet libraries (not MCP-specific), general Docker guidance unrelated to MCP, creating new servers (use mcp-csharp-create), debugging (use mcp-csharp-debug)

دانلود ZIP