[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75MN7406RHRYQDNKJVSHHPB":3,"skill-same:01M75MN7406RHRYQDNKJVSHHPB":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M75MN7406RHRYQDNKJVSHHPB","mcp-csharp-publish",null,"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\u002FCD 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), writing tests (use mcp-csharp-test).","stanfish06\u002Fskillquarium","stanfish06","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F93099613?v=4","01M75F1CK4ZW109ZK3T26VN52F","Zhiyuan","01M75F1CM53VH6F79DZ8GXKKES",12,"MIT","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fmcp-csharp-publish\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: mcp-csharp-publish\ndescription: >\n  Publish and deploy C# MCP servers. Covers NuGet packaging for stdio servers, Docker\n  containerization for HTTP servers, Azure Container Apps and App Service deployment,\n  and publishing to the official MCP Registry.\n  USE FOR: packaging stdio MCP servers as NuGet tools, creating Dockerfiles for HTTP MCP\n  servers, deploying to Azure Container Apps or App Service, publishing to the MCP Registry\n  at registry.modelcontextprotocol.io, configuring server.json for MCP package metadata,\n  setting up CI\u002FCD for MCP server publishing.\n  DO NOT USE FOR: publishing general NuGet libraries (not MCP-specific), general Docker\n  guidance unrelated to MCP, creating new servers (use mcp-csharp-create), debugging\n  (use mcp-csharp-debug), writing tests (use mcp-csharp-test).\nlicense: MIT\n---\n\n# C# MCP Server Publishing\n\nPublish 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.\n\n## When to Use\n\n- Packaging a stdio MCP server for NuGet distribution\n- Creating a Docker container for an HTTP MCP server\n- Deploying to Azure Container Apps or App Service\n- Publishing to the official MCP Registry for discoverability\n- Setting up `server.json` metadata for the MCP Registry\n\n## Stop Signals\n\n- **Server not tested yet?** → Use `mcp-csharp-test` first\n- **Server not working locally?** → Use `mcp-csharp-debug`\n- **No server project yet?** → Use `mcp-csharp-create`\n- **Publishing a non-MCP NuGet package?** → Use `nuget-trusted-publishing` instead\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Transport type | Yes | `stdio` → NuGet path, `http` → Docker\u002FAzure path |\n| Target destination | Yes | NuGet.org, Docker registry, Azure Container Apps, Azure App Service, MCP Registry |\n| Project path | Yes | Path to the `.csproj` file |\n| Package ID \u002F server name | Required for publishing | NuGet `PackageId` or MCP Registry name |\n\n## Workflow\n\n### Step 1: Choose the publishing path\n\n| Transport | Primary Destination | Users Run With |\n|-----------|-------------------|----------------|\n| **stdio** | NuGet.org | `dnx YourPackage@version` |\n| **HTTP** | Docker → Azure | Container URL |\n\nBoth paths can optionally publish to the MCP Registry for discoverability.\n\n### Step 2a: NuGet publishing (stdio servers)\n\n1. **Configure `.csproj`** with package properties:\n```xml\n\u003CPropertyGroup>\n  \u003CPackAsTool>true\u003C\u002FPackAsTool>\n  \u003CToolCommandName>mymcpserver\u003C\u002FToolCommandName>\n  \u003CPackageId>YourUsername.MyMcpServer\u003C\u002FPackageId>\n  \u003CVersion>1.0.0\u003C\u002FVersion>\n  \u003CAuthors>Your Name\u003C\u002FAuthors>\n  \u003CDescription>MCP server for interacting with MyService\u003C\u002FDescription>\n  \u003CPackageLicenseExpression>MIT\u003C\u002FPackageLicenseExpression>\n  \u003CPackageTags>mcp;modelcontextprotocol;ai;llm\u003C\u002FPackageTags>\n  \u003CPackageReadmeFile>README.md\u003C\u002FPackageReadmeFile>\n\u003C\u002FPropertyGroup>\n\n\u003CItemGroup>\n  \u003CNone Include=\"README.md\" Pack=\"true\" PackagePath=\"\\\" \u002F>\n\u003C\u002FItemGroup>\n```\n\n2. **Build and pack:**\n```bash\ndotnet build -c Release\ndotnet pack -c Release\n```\n\n3. **Test locally before publishing:**\n```bash\ndotnet tool install --global --add-source bin\u002FRelease\u002F YourUsername.MyMcpServer\nmymcpserver --help          # verify it runs\ndotnet tool uninstall --global YourUsername.MyMcpServer\n```\n\n4. **Push to NuGet.org:**\n```bash\ndotnet nuget push bin\u002FRelease\u002F*.nupkg \\\n  --api-key YOUR_NUGET_API_KEY \\\n  --source https:\u002F\u002Fapi.nuget.org\u002Fv3\u002Findex.json\n```\n\n5. **Verify** — users configure in `mcp.json`:\n```json\n{\n  \"servers\": {\n    \"MyMcpServer\": {\n      \"type\": \"stdio\",\n      \"command\": \"dnx\",\n      \"args\": [\"YourUsername.MyMcpServer@1.0.0\", \"--yes\"]\n    }\n  }\n}\n```\n\n**For detailed NuGet packaging and trusted publishing setup**, see [references\u002Fnuget-packaging.md](references\u002Fnuget-packaging.md).\n\n### Step 2b: Docker containerization (HTTP servers)\n\n1. **Create Dockerfile:**\n```dockerfile\nFROM mcr.microsoft.com\u002Fdotnet\u002Fsdk:10.0 AS build\nWORKDIR \u002Fsrc\nCOPY *.csproj .\u002F\nRUN dotnet restore\nCOPY . .\u002F\nRUN dotnet publish -c Release -o \u002Fapp\n\nFROM mcr.microsoft.com\u002Fdotnet\u002Faspnet:10.0\nWORKDIR \u002Fapp\nCOPY --from=build \u002Fapp .\n\n# Non-root user for security\nRUN adduser --disabled-password --gecos '' appuser\nUSER appuser\n\nENV ASPNETCORE_URLS=http:\u002F\u002F+:8080\nEXPOSE 8080\nHEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \\\n  CMD curl -f http:\u002F\u002Flocalhost:8080\u002Fhealth || exit 1\nENTRYPOINT [\"dotnet\", \"MyMcpServer.dll\"]\n```\n\n2. **Build and test locally:**\n```bash\ndocker build -t mymcpserver:latest .\ndocker run -d -p 3001:8080 -e API_KEY=test-key --name mymcpserver mymcpserver:latest\ncurl http:\u002F\u002Flocalhost:3001\u002Fhealth\n```\n\n3. **Push to container registry:**\n```bash\n# Docker Hub\ndocker tag mymcpserver:latest \u003Cyourusername>\u002F\u003Cmymcpserver>:1.0.0\ndocker push \u003Cyourusername>\u002F\u003Cmymcpserver>:1.0.0\n\n# Azure Container Registry\naz acr login --name yourregistry\ndocker tag mymcpserver:latest \u003Cyourregistry>.azurecr.io\u002F\u003Cmymcpserver>:1.0.0\ndocker push \u003Cyourregistry>.azurecr.io\u002F\u003Cmymcpserver>:1.0.0\n```\n\n### Step 3: Deploy to Azure (HTTP servers)\n\n**Azure Container Apps** (recommended — serverless with auto-scaling):\n```bash\naz containerapp create \\\n  --name mymcpserver \\\n  --resource-group mygroup \\\n  --environment myenvironment \\\n  --image \u003Cyourregistry>.azurecr.io\u002F\u003Cmymcpserver>:1.0.0 \\\n  --target-port 8080 \\\n  --ingress external \\\n  --min-replicas 0 \\\n  --max-replicas 10 \\\n  --secrets api-key=my-actual-api-key \\\n  --env-vars API_KEY=secretref:api-key\n```\n\n**Azure App Service** (traditional web hosting):\n```bash\naz webapp create \\\n  --name mymcpserver \\\n  --resource-group mygroup \\\n  --plan myplan \\\n  --deployment-container-image-name \u003Cyourregistry>.azurecr.io\u002F\u003Cmymcpserver>:1.0.0\n```\n\n**For detailed Azure deployment**, see [references\u002Fdocker-azure.md](references\u002Fdocker-azure.md).\n\n### Step 4: Publish to MCP Registry (optional)\n\nList your server in the official MCP Registry for discoverability.\n\n1. **Install `mcp-publisher`:**\n```bash\n# macOS\u002FLinux\nbrew install mcp-publisher\n\n# Or download from https:\u002F\u002Fgithub.com\u002Fmodelcontextprotocol\u002Fregistry\u002Freleases\n```\n\n2. **Create `.mcp\u002Fserver.json`** (or run `mcp-publisher init` to generate interactively):\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fstatic.modelcontextprotocol.io\u002Fschemas\u002F2025-12-11\u002Fserver.schema.json\",\n  \"name\": \"io.github.username\u002Fservername\",\n  \"description\": \"Your server description\",\n  \"version\": \"1.0.0\",\n  \"packages\": [{\n    \"registryType\": \"nuget\",\n    \"registryBaseUrl\": \"https:\u002F\u002Fapi.nuget.org\",\n    \"identifier\": \"YourUsername.MyMcpServer\",\n    \"version\": \"1.0.0\",\n    \"transport\": { \"type\": \"stdio\" }\n  }],\n  \"repository\": {\n    \"url\": \"https:\u002F\u002Fgithub.com\u002Fusername\u002Frepo\",\n    \"source\": \"github\"\n  }\n}\n```\n\n> **Version consistency (critical):** The root `version`, `packages[].version`, and `\u003CVersion>` in `.csproj` **must all match**. A mismatch causes registry validation failures or users downloading the wrong version.\n\n3. **Authenticate and publish:**\n```bash\nmcp-publisher login github      # name must be io.github.\u003Cusername>\u002F... for GitHub auth\nmcp-publisher publish\n```\n\n4. **Verify:**\n```bash\ncurl \"https:\u002F\u002Fregistry.modelcontextprotocol.io\u002Fv0.1\u002Fservers?search=io.github.\u003Cusername>\u002F\u003Cservername>\"\n```\n\n**For Registry details** (namespace conventions, environment variables, CI\u002FCD automation), see [references\u002Fmcp-registry.md](references\u002Fmcp-registry.md).\n\n### Step 5: Security checklist\n\n- [ ] No hardcoded secrets — use environment variables or Key Vault\n- [ ] HTTPS enabled for HTTP transport in production\n- [ ] Health check endpoint implemented\n- [ ] Input validation on all tool parameters\n- [ ] Rate limiting considered for HTTP servers\n\n## Validation\n\n- [ ] **NuGet:** Package installs and runs via `dnx PackageId@version`\n- [ ] **Docker:** Container starts and health check passes\n- [ ] **Azure:** Server is reachable and tools respond\n- [ ] **MCP Registry:** Server appears at `registry.modelcontextprotocol.io`\n- [ ] MCP client can connect and call tools on the deployed server\n\n## Common Pitfalls\n\n| Pitfall | Solution |\n|---------|----------|\n| NuGet package doesn't run as a tool | Missing `\u003CPackAsTool>true\u003C\u002FPackAsTool>` in `.csproj` |\n| Version mismatch between `.csproj` and `server.json` | Keep `\u003CVersion>`, `server.json` root `version`, and `packages[].version` in sync |\n| Docker container exits immediately | Check entrypoint DLL name matches project output. Run `docker logs mymcpserver` for errors |\n| Azure Container App returns 502 | Target port mismatch. Ensure `--target-port` matches `ASPNETCORE_URLS` port in the container |\n| MCP Registry rejects publish | Name must follow namespace convention: `io.github.\u003Cusername>\u002F\u003Cname>` for GitHub auth |\n| API keys leaked in Docker image | Use multi-stage builds. Never `COPY` `.env` files. Pass secrets via `--env-vars` at runtime |\n\n## Related Skills\n\n- `mcp-csharp-create` — Create a new MCP server project\n- `mcp-csharp-debug` — Running and interactive debugging\n- `mcp-csharp-test` — Automated tests and evaluations\n\n## Reference Files\n\n- [references\u002Fnuget-packaging.md](references\u002Fnuget-packaging.md) — Complete NuGet `.csproj` configuration, `server.json` for MCP, NuGet.org push, testing with `dnx`, version management. **Load when:** publishing a stdio server to NuGet.\n- [references\u002Fdocker-azure.md](references\u002Fdocker-azure.md) — Production Dockerfile patterns, ACR setup, Azure Container Apps full configuration, App Service with Key Vault, secrets management. **Load when:** deploying an HTTP server to Docker or Azure.\n- [references\u002Fmcp-registry.md](references\u002Fmcp-registry.md) — `mcp-publisher` CLI installation, `server.json` schema, namespace conventions (GitHub vs DNS auth), CI\u002FCD automation. **Load when:** publishing to the official MCP Registry.\n\n## More Info\n\n- [NuGet publishing](https:\u002F\u002Flearn.microsoft.com\u002Fnuget\u002Fnuget-org\u002Fpublish-a-package) — NuGet.org publishing guide\n- [Azure Container Apps](https:\u002F\u002Flearn.microsoft.com\u002Fazure\u002Fcontainer-apps\u002F) — Serverless container hosting\n- [MCP Registry](https:\u002F\u002Fregistry.modelcontextprotocol.io) — Official MCP server registry\n","# C# MCP Server Publishing\n\nPublish 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.\n\n## When to Use\n\n- Packaging a stdio MCP server for NuGet distribution\n- Creating a Docker container for an HTTP MCP server\n- Deploying to Azure Container Apps or App Service\n- Publishing to the official MCP Registry for discoverability\n- Setting up `server.json` metadata for the MCP Registry\n\n## Stop Signals\n\n- **Server not tested yet?** → Use `mcp-csharp-test` first\n- **Server not working locally?** → Use `mcp-csharp-debug`\n- **No server project yet?** → Use `mcp-csharp-create`\n- **Publishing a non-MCP NuGet package?** → Use `nuget-trusted-publishing` instead\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Transport type | Yes | `stdio` → NuGet path, `http` → Docker\u002FAzure path |\n| Target destination | Yes | NuGet.org, Docker registry, Azure Container Apps, Azure App Service, MCP Registry |\n| Project path | Yes | Path to the `.csproj` file |\n| Package ID \u002F server name | Required for publishing | NuGet `PackageId` or MCP Registry name |\n\n## Workflow\n\n### Step 1: Choose the publishing path\n\n| Transport | Primary Destination | Users Run With |\n|-----------|-------------------|----------------|\n| **stdio** | NuGet.org | `dnx YourPackage@version` |\n| **HTTP** | Docker → Azure | Container URL |\n\nBoth paths can optionally publish to the MCP Registry for discoverability.\n\n### Step 2a: NuGet publishing (stdio servers)\n\n1. **Configure `.csproj`** with package properties:\n```xml\n\u003CPropertyGroup>\n  \u003CPackAsTool>true\u003C\u002FPackAsTool>\n  \u003CToolCommandName>mymcpserver\u003C\u002FToolCommandName>\n  \u003CPackageId>YourUsername.MyMcpServer\u003C\u002FPackageId>\n  \u003CVersion>1.0.0\u003C\u002FVersion>\n  \u003CAuthors>Your Name\u003C\u002FAuthors>\n  \u003CDescription>MCP server for interacting with MyService\u003C\u002FDescription>\n  \u003CPackageLicenseExpression>MIT\u003C\u002FPackageLicenseExpression>\n  \u003CPackageTags>mcp;modelcontextprotocol;ai;llm\u003C\u002FPackageTags>\n  \u003CPackageReadmeFile>README.md\u003C\u002FPackageReadmeFile>\n\u003C\u002FPropertyGroup>\n\n\u003CItemGroup>\n  \u003CNone Include=\"README.md\" Pack=\"true\" PackagePath=\"\\\" \u002F>\n\u003C\u002FItemGroup>\n```\n\n2. **Build and pack:**\n```bash\ndotnet build -c Release\ndotnet pack -c Release\n```\n\n3. **Test locally before publishing:**\n```bash\ndotnet tool install --global --add-source bin\u002FRelease\u002F YourUsername.MyMcpServer\nmymcpserver --help          # verify it runs\ndotnet tool uninstall --global YourUsername.MyMcpServer\n```\n\n4. **Push to NuGet.org:**\n```bash\ndotnet nuget push bin\u002FRelease\u002F*.nupkg \\\n  --api-key YOUR_NUGET_API_KEY \\\n  --source https:\u002F\u002Fapi.nuget.org\u002Fv3\u002Findex.json\n```\n\n5. **Verify** — users configure in `mcp.json`:\n```json\n{\n  \"servers\": {\n    \"MyMcpServer\": {\n      \"type\": \"stdio\",\n      \"command\": \"dnx\",\n      \"args\": [\"YourUsername.MyMcpServer@1.0.0\", \"--yes\"]\n    }\n  }\n}\n```\n\n**For detailed NuGet packaging and trusted publishing setup**, see [references\u002Fnuget-packaging.md](references\u002Fnuget-packaging.md).\n\n### Step 2b: Docker containerization (HTTP servers)\n\n1. **Create Dockerfile:**\n```dockerfile\nFROM mcr.microsoft.com\u002Fdotnet\u002Fsdk:10.0 AS build\nWORKDIR \u002Fsrc\nCOPY *.csproj .\u002F\nRUN dotnet restore\nCOPY . .\u002F\nRUN dotnet publish -c Release -o \u002Fapp\n\nFROM mcr.microsoft.com\u002Fdotnet\u002Faspnet:10.0\nWORKDIR \u002Fapp\nCOPY --from=build \u002Fapp .\n\n# Non-root user for security\nRUN adduser --disabled-password --gecos '' appuser\nUSER appuser\n\nENV ASPNETCORE_URLS=http:\u002F\u002F+:8080\nEXPOSE 8080\nHEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \\\n  CMD curl -f http:\u002F\u002Flocalhost:8080\u002Fhealth || exit 1\nENTRYPOINT [\"dotnet\", \"MyMcpServer.dll\"]\n```\n\n2. **Build and test locally:**\n```bash\ndocker build -t mymcpserver:latest .\ndocker run -d -p 3001:8080 -e API_KEY=test-key --name mymcpserver mymcpserver:latest\ncurl http:\u002F\u002Flocalhost:3001\u002Fhealth\n```\n\n3. **Push to container registry:**\n```bash\n# Docker Hub\ndocker tag mymcpserver:latest \u003Cyourusername>\u002F\u003Cmymcpserver>:1.0.0\ndocker push \u003Cyourusername>\u002F\u003Cmymcpserver>:1.0.0\n\n# Azure Container Registry\naz acr login --name yourregistry\ndocker tag mymcpserver:latest \u003Cyourregistry>.azurecr.io\u002F\u003Cmymcpserver>:1.0.0\ndocker push \u003Cyourregistry>.azurecr.io\u002F\u003Cmymcpserver>:1.0.0\n```\n\n### Step 3: Deploy to Azure (HTTP servers)\n\n**Azure Container Apps** (recommended — serverless with auto-scaling):\n```bash\naz containerapp create \\\n  --name mymcpserver \\\n  --resource-group mygroup \\\n  --environment myenvironment \\\n  --image \u003Cyourregistry>.azurecr.io\u002F\u003Cmymcpserver>:1.0.0 \\\n  --target-port 8080 \\\n  --ingress external \\\n  --min-replicas 0 \\\n  --max-replicas 10 \\\n  --secrets api-key=my-actual-api-key \\\n  --env-vars API_KEY=secretref:api-key\n```\n\n**Azure App Service** (traditional web hosting):\n```bash\naz webapp create \\\n  --name mymcpserver \\\n  --resource-group mygroup \\\n  --plan myplan \\\n  --deployment-container-image-name \u003Cyourregistry>.azurecr.io\u002F\u003Cmymcpserver>:1.0.0\n```\n\n**For detailed Azure deployment**, see [references\u002Fdocker-azure.md](references\u002Fdocker-azure.md).\n\n### Step 4: Publish to MCP Registry (optional)\n\nList your server in the official MCP Registry for discoverability.\n\n1. **Install `mcp-publisher`:**\n```bash\n# macOS\u002FLinux\nbrew install mcp-publisher\n\n# Or download from https:\u002F\u002Fgithub.com\u002Fmodelcontextprotocol\u002Fregistry\u002Freleases\n```\n\n2. **Create `.mcp\u002Fserver.json`** (or run `mcp-publisher init` to generate interactively):\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fstatic.modelcontextprotocol.io\u002Fschemas\u002F2025-12-11\u002Fserver.schema.json\",\n  \"name\": \"io.github.username\u002Fservername\",\n  \"description\": \"Your server description\",\n  \"version\": \"1.0.0\",\n  \"packages\": [{\n    \"registryType\": \"nuget\",\n    \"registryBaseUrl\": \"https:\u002F\u002Fapi.nuget.org\",\n    \"identifier\": \"YourUsername.MyMcpServer\",\n    \"version\": \"1.0.0\",\n    \"transport\": { \"type\": \"stdio\" }\n  }],\n  \"repository\": {\n    \"url\": \"https:\u002F\u002Fgithub.com\u002Fusername\u002Frepo\",\n    \"source\": \"github\"\n  }\n}\n```\n\n> **Version consistency (critical):** The root `version`, `packages[].version`, and `\u003CVersion>` in `.csproj` **must all match**. A mismatch causes registry validation failures or users downloading the wrong version.\n\n3. **Authenticate and publish:**\n```bash\nmcp-publisher login github      # name must be io.github.\u003Cusername>\u002F... for GitHub auth\nmcp-publisher publish\n```\n\n4. **Verify:**\n```bash\ncurl \"https:\u002F\u002Fregistry.modelcontextprotocol.io\u002Fv0.1\u002Fservers?search=io.github.\u003Cusername>\u002F\u003Cservername>\"\n```\n\n**For Registry details** (namespace conventions, environment variables, CI\u002FCD automation), see [references\u002Fmcp-registry.md](references\u002Fmcp-registry.md).\n\n### Step 5: Security checklist\n\n- [ ] No hardcoded secrets — use environment variables or Key Vault\n- [ ] HTTPS enabled for HTTP transport in production\n- [ ] Health check endpoint implemented\n- [ ] Input validation on all tool parameters\n- [ ] Rate limiting considered for HTTP servers\n\n## Validation\n\n- [ ] **NuGet:** Package installs and runs via `dnx PackageId@version`\n- [ ] **Docker:** Container starts and health check passes\n- [ ] **Azure:** Server is reachable and tools respond\n- [ ] **MCP Registry:** Server appears at `registry.modelcontextprotocol.io`\n- [ ] MCP client can connect and call tools on the deployed server\n\n## Common Pitfalls\n\n| Pitfall | Solution |\n|---------|----------|\n| NuGet package doesn't run as a tool | Missing `\u003CPackAsTool>true\u003C\u002FPackAsTool>` in `.csproj` |\n| Version mismatch between `.csproj` and `server.json` | Keep `\u003CVersion>`, `server.json` root `version`, and `packages[].version` in sync |\n| Docker container exits immediately | Check entrypoint DLL name matches project output. Run `docker logs mymcpserver` for errors |\n| Azure Container App returns 502 | Target port mismatch. Ensure `--target-port` matches `ASPNETCORE_URLS` port in the container |\n| MCP Registry rejects publish | Name must follow namespace convention: `io.github.\u003Cusername>\u002F\u003Cname>` for GitHub auth |\n| API keys leaked in Docker image | Use multi-stage builds. Never `COPY` `.env` files. Pass secrets via `--env-vars` at runtime |\n\n## Related Skills\n\n- `mcp-csharp-create` — Create a new MCP server project\n- `mcp-csharp-debug` — Running and interactive debugging\n- `mcp-csharp-test` — Automated tests and evaluations\n\n## Reference Files\n\n- [references\u002Fnuget-packaging.md](references\u002Fnuget-packaging.md) — Complete NuGet `.csproj` configuration, `server.json` for MCP, NuGet.org push, testing with `dnx`, version management. **Load when:** publishing a stdio server to NuGet.\n- [references\u002Fdocker-azure.md](references\u002Fdocker-azure.md) — Production Dockerfile patterns, ACR setup, Azure Container Apps full configuration, App Service with Key Vault, secrets management. **Load when:** deploying an HTTP server to Docker or Azure.\n- [references\u002Fmcp-registry.md](references\u002Fmcp-registry.md) — `mcp-publisher` CLI installation, `server.json` schema, namespace conventions (GitHub vs DNS auth), CI\u002FCD automation. **Load when:** publishing to the official MCP Registry.\n\n## More Info\n\n- [NuGet publishing](https:\u002F\u002Flearn.microsoft.com\u002Fnuget\u002Fnuget-org\u002Fpublish-a-package) — NuGet.org publishing guide\n- [Azure Container Apps](https:\u002F\u002Flearn.microsoft.com\u002Fazure\u002Fcontainer-apps\u002F) — Serverless container hosting\n- [MCP Registry](https:\u002F\u002Fregistry.modelcontextprotocol.io) — Official MCP server registry\n",{"name":5,"license":15,"description":24},"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\u002FCD 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), writing tests (use mcp-csharp-test).\n","master","49e49abf2f670d429e0b7e2c0349739c3fdd5cbe","skills\u002Fmcp-csharp-publish",5,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium","https:\u002F\u002Fgithub.com\u002Fstanfish06","https:\u002F\u002Fwww.stanfish.dev\u002F","2026-11-14 21:31:37",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add stanfish06\u002Fskillquarium --skill mcp-csharp-publish",{"tool":39,"command":40},"bunx","bunx skills add stanfish06\u002Fskillquarium --skill mcp-csharp-publish",{"tool":42,"command":43},"pnpm","pnpm dlx skills add stanfish06\u002Fskillquarium --skill mcp-csharp-publish","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fmcp-csharp-publish\u002FSKILL.md",true,[47,53,57],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fdocker-azure.md","REFERENCE","参考文档",4760,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fmcp-csharp-publish\u002Freferences\u002Fdocker-azure.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fmcp-registry.md",3780,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fmcp-csharp-publish\u002Freferences\u002Fmcp-registry.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fnuget-packaging.md",4215,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fmcp-csharp-publish\u002Freferences\u002Fnuget-packaging.md",[62,69,78,85,92,99],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M76ZJTRVA456GD7K8Y3EP82H","zarr-python","Stores and queries chunked N-D scientific arrays with Zarr-Python 3, including codecs, sharding, S3\u002FGCS storage, and NumPy\u002FDask\u002FXarray integration. Use for array layout, bounded I\u002FO, format migration, or scientific metadata preservation.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":74,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M76ZJQZ15Q1HKC5V85NHE325","yeet","Publish local changes to GitHub by confirming scope, committing intentionally, pushing the branch, and opening a draft PR through the GitHub app from this plugin, with `gh` used only as a fallback where connector coverage is insufficient.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M76ZJ8ASZ4QYQ70Y6SBA4Z4S","xarray","N-dimensional labeled arrays and datasets in Python. Built on top of NumPy and Dask. It introduces labels in the form of dimensions, coordinates, and attributes on top of raw NumPy-like arrays, making data analysis in physical sciences more intuitive and less error-prone. Use for working with multi-dimensional scientific data, NetCDF\u002FGRIB\u002FZarr files, climate\u002Fweather\u002Foceanographic datasets, remote sensing, geospatial imaging, large out-of-memory datasets with Dask, and labeled array operations.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fxarray\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M76ZHFBXD6VXPQ02VCEG202B","writing-mstest-tests","Use when asked to fix, rewrite, update, improve, modernize, show corrected code for, or explain existing MSTest tests or MSTest-specific configuration. Use for \"review\" when corrected code or edits are wanted, even for one pasted assertion or passing tests with bad failure output. Covers expected\u002Factual labels; generic Boolean, collection, string, numeric, null, identity, exception, hard-cast, and object[] checks; TestContext\u002Flifecycle; timeout\u002Fcancellation; OS\u002FCI conditions, retry, cleanup, parallelization, MSTest.Sdk project setup, and MSTESTxxxx. Honor the installed MSTest version. DO NOT USE to design new test cases (code-testing), perform report-only audits, create project files rather than explain MSTest setup, run tests, migrate frameworks, or handle non-MSTest\u002Fnon-.NET code.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwriting-mstest-tests\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M76ZDFDF4N88RH6HSYGS7GP2","wgs-prs","End-to-end WGS to polygenic risk score pipeline. Takes paired-end FASTQ files (or a pre-existing VCF) through nf-core\u002Fsarek for variant calling, applies VCF QC (normalisation, hard filtering, Ti\u002FTv and Het\u002FHom checks), then computes polygenic risk scores via the PGS Catalog. Fills the FASTQ to VCF gap upstream of the gwas-prs skill.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwgs-prs\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":103,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M76ZCC1SC68J42QK4MDC8RCG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[]]