mcp-csharp-publish
覆盖从打包到云部署的实务步骤,加速上线与分发。
发布与部署涉及云资源与凭据,需注意权限与外部暴露风险。
打包并部署 C# MCP 服务器,支持 NuGet 工具包与 Docker/Azure 部署流程。
把用 C# 写的 MCP 服务器打包并发布到目标平台:stdio 型做成 NuGet 工具包,HTTP 型打包成 Docker 容器并部署到 Azure 或其它容器主机。适合要把开发好的工具交付给 LLM 使用、上架到 MCP Registry 或建立 CI/CD 时使用。重点包括 NuGet 包、Dockerfile、server.json 元数据和 Azure 部署步骤,符合 MCP 协议的发布规范。
▸ 展开 SKILL.md 英文原文
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), writing tests (use mcp-csharp-test).
帮我安装这个 skill:https://raw.githubusercontent.com/dotnet/skills/main/plugins/dotnet-ai/skills/mcp-csharp-publish/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/dotnet/skills/main/plugins/dotnet-ai/skills/mcp-csharp-publish/SKILL.md"# C# MCP Server Publishing Publish and deploy MCP servers to their target platforms. stdio servers are distributed as NuGet tool packages. HTTP servers are containerized and deployed to Azure or other container hosts. Both can optionally be listed in the official MCP Registry. ## When to Use - Packaging a stdio MCP server for NuGet distribution - Creating a Docker container for an HTTP MCP server - Deploying to Azure Container Apps or App Service - Publishing to the official MCP Registry for discoverability - Setting up `server.json` metadata for the MCP Registry ## Stop Signals - **Server not tested yet?** → Use `mcp-csharp-test` first - **No server project yet?** → Use `mcp-csharp-cre