[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75MMWK95WHDYHP752XZBS7J":3,"skill-same:01M75MMWK95WHDYHP752XZBS7J":57},{"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},"01M75MMWK95WHDYHP752XZBS7J","mcp-csharp-create",null,"Create MCP servers using the C# SDK and .NET project templates. Covers scaffolding, tool\u002Fprompt\u002Fresource implementation, and transport configuration for stdio and HTTP. USE FOR: creating new MCP server projects, scaffolding with dotnet new mcpserver, adding MCP tools\u002Fprompts\u002Fresources, 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.","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-create\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: mcp-csharp-create\ndescription: >\n  Create MCP servers using the C# SDK and .NET project templates. Covers scaffolding,\n  tool\u002Fprompt\u002Fresource implementation, and transport configuration for stdio and HTTP.\n  USE FOR: creating new MCP server projects, scaffolding with dotnet new mcpserver, adding\n  MCP tools\u002Fprompts\u002Fresources, choosing stdio vs HTTP transport, configuring MCP hosting in\n  Program.cs, setting up ASP.NET Core MCP endpoints with MapMcp.\n  DO NOT USE FOR: debugging or running existing servers (use mcp-csharp-debug), writing tests\n  (use mcp-csharp-test), publishing or deploying (use mcp-csharp-publish), building MCP\n  clients, non-.NET MCP servers.\nlicense: MIT\n---\n\n# C# MCP Server Creation\n\nCreate Model Context Protocol servers using the official C# SDK (`ModelContextProtocol` NuGet package) and the `dotnet new mcpserver` project template. Servers expose tools, prompts, and resources that LLMs can discover and invoke via the MCP protocol.\n\n## When to Use\n\n- Starting a new MCP server project from scratch\n- Adding tools, prompts, or resources to an existing MCP server\n- Choosing between stdio (`--transport local`) and HTTP (`--transport remote`) transport\n- Setting up ASP.NET Core hosting for an HTTP MCP server\n- Wrapping an external API or service as MCP tools\n\n## Stop Signals\n\n- **Server already exists and needs debugging?** → Use `mcp-csharp-debug`\n- **Need tests or evaluations?** → Use `mcp-csharp-test`\n- **Ready to publish?** → Use `mcp-csharp-publish`\n- **Building an MCP client, not a server** → This skill is server-side only\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Transport type | Yes | `stdio` (local\u002FCLI) or `http` (remote\u002Fweb). Ask user if not specified — default to stdio |\n| Project name | Yes | PascalCase name for the project (e.g., `WeatherMcpServer`) |\n| .NET SDK version | Recommended | .NET 10.0+ required. Check with `dotnet --version` |\n| Service\u002FAPI to wrap | Recommended | External API or service the tools will interact with |\n\n## Workflow\n\n> **Commit strategy:** Commit after completing each step so scaffolding and implementation are separately reviewable.\n\n### Step 1: Verify prerequisites\n\n1. Confirm .NET 10+ SDK: `dotnet --version` (install from https:\u002F\u002Fdotnet.microsoft.com if \u003C 10.0)\n\n2. Check if the MCP server template is already installed:\n   ```bash\n   dotnet new list mcpserver\n   ```\n   If \"No templates found\" → install: `dotnet new install Microsoft.McpServer.ProjectTemplates`\n\n### Step 2: Choose transport\n\n| Choose **stdio** if… | Choose **HTTP** if… |\n|----------------------|---------------------|\n| Local CLI tool or IDE plugin | Cloud\u002Fweb service deployment |\n| Single user at a time | Multiple simultaneous clients |\n| Running as subprocess (VS Code, GitHub Copilot) | Cross-network access needed |\n| Simpler setup, no network config | Containerized deployment (Docker\u002FAzure) |\n\n**Default:** stdio — simpler, works for most local development. Users can add HTTP later.\n\n### Step 3: Scaffold the project\n\n**stdio server:**\n```bash\ndotnet new mcpserver -n \u003CProjectName>\n```\nIf the template times out or is unavailable, use `dotnet new console -n \u003CProjectName>` and add `dotnet add package ModelContextProtocol`.\n\n**HTTP server:**\n```bash\ndotnet new web -n \u003CProjectName>\ncd \u003CProjectName>\ndotnet add package ModelContextProtocol.AspNetCore\n```\nThis is the recommended approach — faster and more reliable than the template. The template also supports HTTP via `dotnet new mcpserver -n \u003CProjectName> --transport remote`, but `dotnet new web` gives you more control over the project structure.\n\n**Template flags reference:** `--transport local` (stdio, default), `--transport remote` (ASP.NET Core HTTP), `--aot`, `--self-contained`.\n\n### Step 4: Implement tools\n\nTools are the primary way MCP servers expose functionality. Add a class with `[McpServerToolType]` and methods with `[McpServerTool]`:\n\n```csharp\nusing ModelContextProtocol.Server;\nusing System.ComponentModel;\n\n[McpServerToolType]\npublic static class MyTools\n{\n    [McpServerTool, Description(\"Brief description of what the tool does.\")]\n    public static async Task\u003Cstring> DoSomething(\n        [Description(\"What this parameter controls\")] string input,\n        CancellationToken cancellationToken = default)\n    {\n        \u002F\u002F Implementation\n        return $\"Result: {input}\";\n    }\n}\n```\n\n**Critical rules:**\n- Every tool method **must** have a `[Description]` attribute — LLMs use this to decide when to call the tool\n- Every parameter **must** have a `[Description]` attribute\n- Accept `CancellationToken` in all async tools\n- Use `[McpServerTool(Name = \"custom_name\")]` only if the default method name is unclear\n\n**DI injection patterns** — the SDK supports two styles:\n\n1. **Method parameter injection (static class):** DI services appear as method parameters. The SDK resolves them automatically — they do not appear in the tool schema.\n\n2. **Constructor injection (non-static class):** Use when tools need shared state or multiple services:\n```csharp\n[McpServerToolType]\npublic class ApiTools(HttpClient httpClient, ILogger\u003CApiTools> logger)\n{\n    [McpServerTool, Description(\"Fetch a resource by ID.\")]\n    public async Task\u003Cstring> FetchResource(\n        [Description(\"Resource identifier\")] string id,\n        CancellationToken cancellationToken = default)\n    {\n        logger.LogInformation(\"Fetching {Id}\", id);\n        return await httpClient.GetStringAsync($\"\u002Fapi\u002F{id}\", cancellationToken);\n    }\n}\n```\nRegister services in Program.cs:\n```csharp\nvar builder = Host.CreateApplicationBuilder(args);\nbuilder.Logging.AddConsole(options =>\n    options.LogToStandardErrorThreshold = LogLevel.Trace);\n\nbuilder.Services.AddHttpClient();        \u002F\u002F registers IHttpClientFactory + HttpClient\n\u002F\u002F ILogger\u003CT> is registered by default — no extra setup needed.\n\nbuilder.Services.AddMcpServer()\n    .WithStdioServerTransport()\n    .WithToolsFromAssembly();            \u002F\u002F discovers non-static [McpServerToolType] classes\n\nawait builder.Build().RunAsync();\n```\n\n**For the full attribute reference, return types, DI injection, and builder API patterns**, see [references\u002Fapi-patterns.md](references\u002Fapi-patterns.md).\n\n### Step 5: Add prompts and resources (optional)\n\n**Prompts** — reusable LLM interaction templates:\n```csharp\n[McpServerPromptType]\npublic static class MyPrompts\n{\n    [McpServerPrompt, Description(\"Summarize content into one sentence.\")]\n    public static ChatMessage Summarize(\n        [Description(\"Content to summarize\")] string content) =>\n        new(ChatRole.User, $\"Summarize this into one sentence: {content}\");\n}\n```\n\n**Resources** — data the LLM can read:\n```csharp\n[McpServerResourceType]\npublic static class MyResources\n{\n    [McpServerResource(UriTemplate = \"config:\u002F\u002Fapp\", Name = \"App Config\",\n        MimeType = \"application\u002Fjson\"), Description(\"Application configuration\")]\n    public static string GetConfig() => JsonSerializer.Serialize(AppConfig.Current);\n}\n```\n\n### Step 6: Configure Program.cs\n\n**stdio transport:**\n```csharp\nusing Microsoft.Extensions.DependencyInjection;\nusing Microsoft.Extensions.Hosting;\nusing Microsoft.Extensions.Logging;\nusing ModelContextProtocol.Server;\n\nvar builder = Host.CreateApplicationBuilder(args);\nbuilder.Logging.AddConsole(options =>\n    options.LogToStandardErrorThreshold = LogLevel.Trace); \u002F\u002F CRITICAL: stderr only\n\nbuilder.Services.AddMcpServer()\n    .WithStdioServerTransport()\n    .WithToolsFromAssembly();\n\nawait builder.Build().RunAsync();\n```\n\n**HTTP transport:**\n```csharp\nusing ModelContextProtocol.Server;\n\nvar builder = WebApplication.CreateBuilder(args);\nbuilder.Services.AddMcpServer()\n    .WithHttpTransport()\n    .WithToolsFromAssembly();\n\n\u002F\u002F Register services your tools need via DI\n\u002F\u002F builder.Services.AddHttpClient();\n\u002F\u002F builder.Services.AddSingleton\u003CIMyService, MyService>();\n\nvar app = builder.Build();\napp.MapMcp();                     \u002F\u002F exposes MCP endpoint at \u002Fmcp (Streamable HTTP)\napp.MapGet(\"\u002Fhealth\", () => \"ok\"); \u002F\u002F health check for container orchestrators\napp.Run();\n```\n\n**Key HTTP details:** `MapMcp()` defaults to `\u002Fmcp` path. For containers, set `ASPNETCORE_URLS=http:\u002F\u002F+:8080` and `EXPOSE 8080`. The MCP HTTP protocol uses Streamable HTTP — no special client config needed beyond the URL.\n\n**For transport configuration details** (stateless mode, auth, path prefix, `HttpContextAccessor`), see [references\u002Ftransport-config.md](references\u002Ftransport-config.md).\n\n### Step 7: Verify the server starts\n\n```bash\ncd \u003CProjectName>\ndotnet build\ndotnet run\n```\n\nFor stdio: the process starts and waits for JSON-RPC input on stdin.\nFor HTTP: the server listens on the configured port.\n\n## Validation\n\n- [ ] Project builds with no errors (`dotnet build`)\n- [ ] All tool classes have `[McpServerToolType]` attribute\n- [ ] All tool methods have `[McpServerTool]` and `[Description]` attributes\n- [ ] All parameters have `[Description]` attributes\n- [ ] stdio: logging directed to stderr, not stdout\n- [ ] HTTP: `app.MapMcp()` is called in Program.cs\n- [ ] Server starts successfully with `dotnet run`\n\n## Common Pitfalls\n\n| Pitfall | Solution |\n|---------|----------|\n| stdio server outputs garbage or hangs | Logging to stdout corrupts JSON-RPC protocol. Set `LogToStandardErrorThreshold = LogLevel.Trace` |\n| Tool not discovered by LLM clients | Missing `[McpServerToolType]` on the class or `[McpServerTool]` on the method. Verify `.WithToolsFromAssembly()` in Program.cs |\n| LLM doesn't understand when to use a tool | Add clear `[Description]` attributes on both the method and all parameters |\n| `WithToolsFromAssembly()` fails in AOT | Reflection-based discovery is incompatible with Native AOT. Use `.WithTools\u003CMyTools>()` instead |\n| Parameters not appearing in tool schema | `CancellationToken`, `IMcpServer`, and DI services are injected automatically — they do not appear in the schema. Only parameters with `[Description]` are exposed |\n| HTTP server returns 404 | `app.MapMcp()` must be called. Check the request path matches the configured route |\n\n## Related Skills\n\n- `mcp-csharp-debug` — Run, debug, and test with MCP Inspector\n- `mcp-csharp-test` — Unit tests, integration tests, evaluations\n- `mcp-csharp-publish` — NuGet, Docker, Azure deployment\n\n## Reference Files\n\n- [references\u002Fapi-patterns.md](references\u002Fapi-patterns.md) — Complete attribute reference, return types, DI injection, builder API, dynamic tools, experimental APIs. **Load when:** implementing tools, prompts, or resources beyond the basic patterns shown above.\n- [references\u002Ftransport-config.md](references\u002Ftransport-config.md) — Detailed transport configuration: stateless HTTP mode, OAuth\u002Fauth, custom path prefix, `HttpContextAccessor`, OpenTelemetry observability. **Load when:** configuring advanced transport options or authentication.\n\n## More Info\n\n- [C# MCP SDK](https:\u002F\u002Fgithub.com\u002Fmodelcontextprotocol\u002Fcsharp-sdk) — Official SDK repository\n- [Build an MCP server (.NET)](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fai\u002Fquickstarts\u002Fbuild-mcp-server) — Microsoft quickstart\n- [MCP Specification](https:\u002F\u002Fmodelcontextprotocol.io\u002Fspecification\u002F) — Protocol specification\n","# C# MCP Server Creation\n\nCreate Model Context Protocol servers using the official C# SDK (`ModelContextProtocol` NuGet package) and the `dotnet new mcpserver` project template. Servers expose tools, prompts, and resources that LLMs can discover and invoke via the MCP protocol.\n\n## When to Use\n\n- Starting a new MCP server project from scratch\n- Adding tools, prompts, or resources to an existing MCP server\n- Choosing between stdio (`--transport local`) and HTTP (`--transport remote`) transport\n- Setting up ASP.NET Core hosting for an HTTP MCP server\n- Wrapping an external API or service as MCP tools\n\n## Stop Signals\n\n- **Server already exists and needs debugging?** → Use `mcp-csharp-debug`\n- **Need tests or evaluations?** → Use `mcp-csharp-test`\n- **Ready to publish?** → Use `mcp-csharp-publish`\n- **Building an MCP client, not a server** → This skill is server-side only\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Transport type | Yes | `stdio` (local\u002FCLI) or `http` (remote\u002Fweb). Ask user if not specified — default to stdio |\n| Project name | Yes | PascalCase name for the project (e.g., `WeatherMcpServer`) |\n| .NET SDK version | Recommended | .NET 10.0+ required. Check with `dotnet --version` |\n| Service\u002FAPI to wrap | Recommended | External API or service the tools will interact with |\n\n## Workflow\n\n> **Commit strategy:** Commit after completing each step so scaffolding and implementation are separately reviewable.\n\n### Step 1: Verify prerequisites\n\n1. Confirm .NET 10+ SDK: `dotnet --version` (install from https:\u002F\u002Fdotnet.microsoft.com if \u003C 10.0)\n\n2. Check if the MCP server template is already installed:\n   ```bash\n   dotnet new list mcpserver\n   ```\n   If \"No templates found\" → install: `dotnet new install Microsoft.McpServer.ProjectTemplates`\n\n### Step 2: Choose transport\n\n| Choose **stdio** if… | Choose **HTTP** if… |\n|----------------------|---------------------|\n| Local CLI tool or IDE plugin | Cloud\u002Fweb service deployment |\n| Single user at a time | Multiple simultaneous clients |\n| Running as subprocess (VS Code, GitHub Copilot) | Cross-network access needed |\n| Simpler setup, no network config | Containerized deployment (Docker\u002FAzure) |\n\n**Default:** stdio — simpler, works for most local development. Users can add HTTP later.\n\n### Step 3: Scaffold the project\n\n**stdio server:**\n```bash\ndotnet new mcpserver -n \u003CProjectName>\n```\nIf the template times out or is unavailable, use `dotnet new console -n \u003CProjectName>` and add `dotnet add package ModelContextProtocol`.\n\n**HTTP server:**\n```bash\ndotnet new web -n \u003CProjectName>\ncd \u003CProjectName>\ndotnet add package ModelContextProtocol.AspNetCore\n```\nThis is the recommended approach — faster and more reliable than the template. The template also supports HTTP via `dotnet new mcpserver -n \u003CProjectName> --transport remote`, but `dotnet new web` gives you more control over the project structure.\n\n**Template flags reference:** `--transport local` (stdio, default), `--transport remote` (ASP.NET Core HTTP), `--aot`, `--self-contained`.\n\n### Step 4: Implement tools\n\nTools are the primary way MCP servers expose functionality. Add a class with `[McpServerToolType]` and methods with `[McpServerTool]`:\n\n```csharp\nusing ModelContextProtocol.Server;\nusing System.ComponentModel;\n\n[McpServerToolType]\npublic static class MyTools\n{\n    [McpServerTool, Description(\"Brief description of what the tool does.\")]\n    public static async Task\u003Cstring> DoSomething(\n        [Description(\"What this parameter controls\")] string input,\n        CancellationToken cancellationToken = default)\n    {\n        \u002F\u002F Implementation\n        return $\"Result: {input}\";\n    }\n}\n```\n\n**Critical rules:**\n- Every tool method **must** have a `[Description]` attribute — LLMs use this to decide when to call the tool\n- Every parameter **must** have a `[Description]` attribute\n- Accept `CancellationToken` in all async tools\n- Use `[McpServerTool(Name = \"custom_name\")]` only if the default method name is unclear\n\n**DI injection patterns** — the SDK supports two styles:\n\n1. **Method parameter injection (static class):** DI services appear as method parameters. The SDK resolves them automatically — they do not appear in the tool schema.\n\n2. **Constructor injection (non-static class):** Use when tools need shared state or multiple services:\n```csharp\n[McpServerToolType]\npublic class ApiTools(HttpClient httpClient, ILogger\u003CApiTools> logger)\n{\n    [McpServerTool, Description(\"Fetch a resource by ID.\")]\n    public async Task\u003Cstring> FetchResource(\n        [Description(\"Resource identifier\")] string id,\n        CancellationToken cancellationToken = default)\n    {\n        logger.LogInformation(\"Fetching {Id}\", id);\n        return await httpClient.GetStringAsync($\"\u002Fapi\u002F{id}\", cancellationToken);\n    }\n}\n```\nRegister services in Program.cs:\n```csharp\nvar builder = Host.CreateApplicationBuilder(args);\nbuilder.Logging.AddConsole(options =>\n    options.LogToStandardErrorThreshold = LogLevel.Trace);\n\nbuilder.Services.AddHttpClient();        \u002F\u002F registers IHttpClientFactory + HttpClient\n\u002F\u002F ILogger\u003CT> is registered by default — no extra setup needed.\n\nbuilder.Services.AddMcpServer()\n    .WithStdioServerTransport()\n    .WithToolsFromAssembly();            \u002F\u002F discovers non-static [McpServerToolType] classes\n\nawait builder.Build().RunAsync();\n```\n\n**For the full attribute reference, return types, DI injection, and builder API patterns**, see [references\u002Fapi-patterns.md](references\u002Fapi-patterns.md).\n\n### Step 5: Add prompts and resources (optional)\n\n**Prompts** — reusable LLM interaction templates:\n```csharp\n[McpServerPromptType]\npublic static class MyPrompts\n{\n    [McpServerPrompt, Description(\"Summarize content into one sentence.\")]\n    public static ChatMessage Summarize(\n        [Description(\"Content to summarize\")] string content) =>\n        new(ChatRole.User, $\"Summarize this into one sentence: {content}\");\n}\n```\n\n**Resources** — data the LLM can read:\n```csharp\n[McpServerResourceType]\npublic static class MyResources\n{\n    [McpServerResource(UriTemplate = \"config:\u002F\u002Fapp\", Name = \"App Config\",\n        MimeType = \"application\u002Fjson\"), Description(\"Application configuration\")]\n    public static string GetConfig() => JsonSerializer.Serialize(AppConfig.Current);\n}\n```\n\n### Step 6: Configure Program.cs\n\n**stdio transport:**\n```csharp\nusing Microsoft.Extensions.DependencyInjection;\nusing Microsoft.Extensions.Hosting;\nusing Microsoft.Extensions.Logging;\nusing ModelContextProtocol.Server;\n\nvar builder = Host.CreateApplicationBuilder(args);\nbuilder.Logging.AddConsole(options =>\n    options.LogToStandardErrorThreshold = LogLevel.Trace); \u002F\u002F CRITICAL: stderr only\n\nbuilder.Services.AddMcpServer()\n    .WithStdioServerTransport()\n    .WithToolsFromAssembly();\n\nawait builder.Build().RunAsync();\n```\n\n**HTTP transport:**\n```csharp\nusing ModelContextProtocol.Server;\n\nvar builder = WebApplication.CreateBuilder(args);\nbuilder.Services.AddMcpServer()\n    .WithHttpTransport()\n    .WithToolsFromAssembly();\n\n\u002F\u002F Register services your tools need via DI\n\u002F\u002F builder.Services.AddHttpClient();\n\u002F\u002F builder.Services.AddSingleton\u003CIMyService, MyService>();\n\nvar app = builder.Build();\napp.MapMcp();                     \u002F\u002F exposes MCP endpoint at \u002Fmcp (Streamable HTTP)\napp.MapGet(\"\u002Fhealth\", () => \"ok\"); \u002F\u002F health check for container orchestrators\napp.Run();\n```\n\n**Key HTTP details:** `MapMcp()` defaults to `\u002Fmcp` path. For containers, set `ASPNETCORE_URLS=http:\u002F\u002F+:8080` and `EXPOSE 8080`. The MCP HTTP protocol uses Streamable HTTP — no special client config needed beyond the URL.\n\n**For transport configuration details** (stateless mode, auth, path prefix, `HttpContextAccessor`), see [references\u002Ftransport-config.md](references\u002Ftransport-config.md).\n\n### Step 7: Verify the server starts\n\n```bash\ncd \u003CProjectName>\ndotnet build\ndotnet run\n```\n\nFor stdio: the process starts and waits for JSON-RPC input on stdin.\nFor HTTP: the server listens on the configured port.\n\n## Validation\n\n- [ ] Project builds with no errors (`dotnet build`)\n- [ ] All tool classes have `[McpServerToolType]` attribute\n- [ ] All tool methods have `[McpServerTool]` and `[Description]` attributes\n- [ ] All parameters have `[Description]` attributes\n- [ ] stdio: logging directed to stderr, not stdout\n- [ ] HTTP: `app.MapMcp()` is called in Program.cs\n- [ ] Server starts successfully with `dotnet run`\n\n## Common Pitfalls\n\n| Pitfall | Solution |\n|---------|----------|\n| stdio server outputs garbage or hangs | Logging to stdout corrupts JSON-RPC protocol. Set `LogToStandardErrorThreshold = LogLevel.Trace` |\n| Tool not discovered by LLM clients | Missing `[McpServerToolType]` on the class or `[McpServerTool]` on the method. Verify `.WithToolsFromAssembly()` in Program.cs |\n| LLM doesn't understand when to use a tool | Add clear `[Description]` attributes on both the method and all parameters |\n| `WithToolsFromAssembly()` fails in AOT | Reflection-based discovery is incompatible with Native AOT. Use `.WithTools\u003CMyTools>()` instead |\n| Parameters not appearing in tool schema | `CancellationToken`, `IMcpServer`, and DI services are injected automatically — they do not appear in the schema. Only parameters with `[Description]` are exposed |\n| HTTP server returns 404 | `app.MapMcp()` must be called. Check the request path matches the configured route |\n\n## Related Skills\n\n- `mcp-csharp-debug` — Run, debug, and test with MCP Inspector\n- `mcp-csharp-test` — Unit tests, integration tests, evaluations\n- `mcp-csharp-publish` — NuGet, Docker, Azure deployment\n\n## Reference Files\n\n- [references\u002Fapi-patterns.md](references\u002Fapi-patterns.md) — Complete attribute reference, return types, DI injection, builder API, dynamic tools, experimental APIs. **Load when:** implementing tools, prompts, or resources beyond the basic patterns shown above.\n- [references\u002Ftransport-config.md](references\u002Ftransport-config.md) — Detailed transport configuration: stateless HTTP mode, OAuth\u002Fauth, custom path prefix, `HttpContextAccessor`, OpenTelemetry observability. **Load when:** configuring advanced transport options or authentication.\n\n## More Info\n\n- [C# MCP SDK](https:\u002F\u002Fgithub.com\u002Fmodelcontextprotocol\u002Fcsharp-sdk) — Official SDK repository\n- [Build an MCP server (.NET)](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fai\u002Fquickstarts\u002Fbuild-mcp-server) — Microsoft quickstart\n- [MCP Specification](https:\u002F\u002Fmodelcontextprotocol.io\u002Fspecification\u002F) — Protocol specification\n",{"name":5,"license":15,"description":24},"Create MCP servers using the C# SDK and .NET project templates. Covers scaffolding, tool\u002Fprompt\u002Fresource implementation, and transport configuration for stdio and HTTP. USE FOR: creating new MCP server projects, scaffolding with dotnet new mcpserver, adding MCP tools\u002Fprompts\u002Fresources, 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.\n","master","49e49abf2f670d429e0b7e2c0349739c3fdd5cbe","skills\u002Fmcp-csharp-create",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-create",{"tool":39,"command":40},"bunx","bunx skills add stanfish06\u002Fskillquarium --skill mcp-csharp-create",{"tool":42,"command":43},"pnpm","pnpm dlx skills add stanfish06\u002Fskillquarium --skill mcp-csharp-create","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fmcp-csharp-create\u002FSKILL.md",true,[47,53],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fapi-patterns.md","REFERENCE","参考文档",5467,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fmcp-csharp-create\u002Freferences\u002Fapi-patterns.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Ftransport-config.md",3564,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fmcp-csharp-create\u002Freferences\u002Ftransport-config.md",[58,65,74,81,88,95],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"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":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":69,"licenseFileUrl":70,"sourceHtmlUrl":71,"categories":72,"keywords":73,"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":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":69,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"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":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"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":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"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":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":69,"licenseFileUrl":99,"sourceHtmlUrl":100,"categories":101,"keywords":102,"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",[],[]]