[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M756D95RK81XP39HJ2SRS3BD":3,"skill-same:01M756D95RK81XP39HJ2SRS3BD":56},{"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":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M756D95RK81XP39HJ2SRS3BD","mcp-csharp-debug",null,"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).","weiflycc-cmd\u002Fskills","weiflycc-cmd","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F250846518?v=4","01M756C4PFGZJWKK04WFB9S5XF","威飛工作室","01M756C4QJJ66QDXN2RN6SXY87",0,"MIT","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-ai\u002Fskills\u002Fmcp-csharp-debug\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: mcp-csharp-debug\ndescription: >\n  Run and debug C# MCP servers locally. Covers IDE configuration, MCP Inspector testing,\n  GitHub Copilot Agent Mode integration, logging setup, and troubleshooting.\n  USE FOR: running MCP servers locally with dotnet run, configuring VS Code or Visual Studio\n  for MCP debugging, testing tools with MCP Inspector, testing with GitHub Copilot Agent Mode,\n  diagnosing tool registration issues, setting up mcp.json configuration, debugging MCP\n  protocol messages, configuring logging for stdio and HTTP servers.\n  DO NOT USE FOR: creating new MCP servers (use mcp-csharp-create), writing automated tests\n  (use mcp-csharp-test), publishing or deploying to production (use mcp-csharp-publish).\nlicense: MIT\n---\n\n# C# MCP Server Debugging\n\nRun, debug, and interactively test C# MCP servers. Covers local execution, IDE debugging with breakpoints, MCP Inspector for protocol-level testing, and GitHub Copilot Agent Mode integration.\n\n## When to Use\n\n- Running an MCP server locally for the first time\n- Configuring VS Code or Visual Studio to debug an MCP server\n- Testing tools interactively with MCP Inspector\n- Verifying tools appear in GitHub Copilot Agent Mode\n- Diagnosing issues: tools not discovered, protocol errors, server crashes\n- Setting up `mcp.json` or `.mcp.json` configuration\n\n## Stop Signals\n\n- **No project yet?** → Use `mcp-csharp-create` first\n- **Need automated tests?** → Use `mcp-csharp-test`\n- **Production deployment issue?** → Use `mcp-csharp-publish`\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Project path | Yes | Path to the `.csproj` file or project directory |\n| Transport type | Recommended | `stdio` or `http` — detect from `.csproj` if not specified |\n| IDE | Recommended | VS Code or Visual Studio — detect from environment if not specified |\n\n**Agent behavior:** Detect transport type by checking the `.csproj` for a `PackageReference` to `ModelContextProtocol.AspNetCore`. If present → HTTP, otherwise → stdio.\n\n## Workflow\n\n### Step 1: Run the server locally\n\n**stdio transport:**\n```bash\ncd \u003CProjectDir>\ndotnet run\n```\nThe process starts and waits for JSON-RPC messages on stdin. No output on stdout means it's working correctly.\n\n**HTTP transport:**\n```bash\ncd \u003CProjectDir>\ndotnet run\n# Server listens on http:\u002F\u002Flocalhost:3001 (or configured port)\n```\n\n### Step 2: Generate MCP configuration\n\nDetect the IDE and transport, then create the appropriate config file.\n\n**For VS Code** — create `.vscode\u002Fmcp.json`:\n\nstdio:\n```json\n{\n  \"servers\": {\n    \"\u003CProjectName>\": {\n      \"type\": \"stdio\",\n      \"command\": \"dotnet\",\n      \"args\": [\"run\", \"--project\", \"\u003Cpath\u002Fto\u002FProjectFile.csproj>\"]\n    }\n  }\n}\n```\n\nHTTP:\n```json\n{\n  \"servers\": {\n    \"\u003CProjectName>\": {\n      \"type\": \"http\",\n      \"url\": \"http:\u002F\u002Flocalhost:3001\"\n    }\n  }\n}\n```\n\n**For Visual Studio** — create `.mcp.json` at solution root (same JSON structure).\n\n**For detailed IDE-specific configuration** (launch.json, environment variables, secrets), see [references\u002Fide-config.md](references\u002Fide-config.md).\n\n### Step 3: Test with MCP Inspector\n\nThe MCP Inspector provides a UI for testing tools, viewing schemas, and inspecting protocol messages.\n\n**stdio server:**\n```bash\nnpx @modelcontextprotocol\u002Finspector dotnet run --project \u003Cpath\u002Fto\u002FProjectFile.csproj>\n```\n\n**HTTP server:**\n1. Start your server: `dotnet run`\n2. Run Inspector: `npx @modelcontextprotocol\u002Finspector`\n3. Connect to `http:\u002F\u002Flocalhost:3001`\n\n**For detailed Inspector capabilities, usage, and troubleshooting**, see [references\u002Fmcp-inspector.md](references\u002Fmcp-inspector.md).\n\n### Step 4: Test with GitHub Copilot Agent Mode\n\n1. Open GitHub Copilot Chat → switch to **Agent** mode\n2. Click **Select Tools** (wrench icon) → verify your server and tools are listed\n3. Test with a prompt that should trigger your tool\n4. Approve tool execution when prompted\n\n**If tools don't appear — troubleshoot tool discovery:**\n\n1. **Rebuild first** — stale builds are the #1 cause:\n   ```bash\n   dotnet build\n   ```\n   Then restart the MCP server (click Stop → Start in VS Code, or restart `dotnet run`).\n\n2. **Check attributes and registration:**\n   - Verify `[McpServerToolType]` on the class and `[McpServerTool]` on each public method\n   - Methods can be `static` or instance (instance types need DI registration)\n   - Verify `.WithTools\u003CT>()` or `.WithToolsFromAssembly()` in Program.cs\n\n3. **Check `mcp.json`** points to the correct project path\n\n4. If still not appearing, reference the tool explicitly: `Using #tool_name, do X`\n\n### Step 5: Set up breakpoint debugging\n\n1. Set breakpoints in your tool methods\n2. Launch with the debugger:\n   - **VS Code:** F5 (requires `launch.json` — see [references\u002Fide-config.md](references\u002Fide-config.md))\n   - **Visual Studio:** F5 or right-click project → Debug → Start\n3. Trigger the tool (via Inspector, Copilot, or test client)\n4. Execution pauses at breakpoints\n\n**Critical:** Build in Debug configuration. Breakpoints won't hit in Release builds.\n\n### Diagnosing Tool Errors\n\nWhen a tool works standalone but fails through MCP, work through these checks:\n\n1. **Check the MCP output channel** — In VS Code: View → Output → select your MCP server name. Shows protocol errors and server stderr. In Visual Studio: check the Output window for MCP-related messages.\n2. **Attach a debugger** — Set a breakpoint in the failing tool method and step through execution (see Step 5). Check for exceptions being swallowed or unexpected parameter values.\n3. **Test with MCP Inspector** — Call the tool directly through Inspector to isolate whether the issue is in the tool code or the client integration: `npx @modelcontextprotocol\u002Finspector dotnet run --project \u003Cpath>`\n4. **Check stdout contamination (stdio only)** — Any `Console.WriteLine()` or logging to stdout corrupts the JSON-RPC protocol. Redirect all output to stderr (see Step 6).\n5. **Check common culprits:**\n   - **Serialization errors** — Return types must be JSON-serializable. Avoid circular references.\n   - **DI registration** — Missing service registrations cause runtime exceptions. Check `Program.cs`.\n   - **Parameter binding** — Ensure parameter names and types match the tool schema.\n   - **Unhandled exceptions** — Wrap tool logic in try-catch and log to stderr or a file.\n6. **Enable file logging** — For post-mortem analysis, log to a file:\n   ```csharp\n   builder.Logging.AddFile(\"mcp-debug.log\"); \u002F\u002F or use Serilog\u002FNLog\n   ```\n\n### Step 6: Configure logging\n\n**Critical for stdio transport:** Any output to stdout (including `Console.WriteLine`) **corrupts the MCP JSON-RPC protocol** and causes garbled responses or crashes. All logging and diagnostic output must go to stderr.\n\n**stdio transport** — log to stderr only:\n```csharp\nbuilder.Logging.AddConsole(options =>\n    options.LogToStandardErrorThreshold = LogLevel.Trace);\n```\n\n**HTTP transport** — For HTTP transport logging configuration, see [references\u002Fide-config.md](references\u002Fide-config.md).\n\n**In tool methods** — inject `ILogger\u003CT>` via constructor and use `logger.LogDebug()` \u002F `logger.LogError()`. Logging through `ILogger` respects the stderr configuration above.\n\n## Validation\n\n- [ ] Server starts without errors via `dotnet run`\n- [ ] MCP Inspector connects and lists all expected tools\n- [ ] Tool calls via Inspector return expected results\n- [ ] Breakpoints hit when debugging in IDE\n- [ ] Tools appear in GitHub Copilot Agent Mode tool list\n- [ ] stdio: no logging output on stdout (stderr only)\n\n## Common Pitfalls\n\n| Pitfall | Solution |\n|---------|----------|\n| Tools not appearing or stale after changes | **Rebuild first:** `dotnet build`, then restart the server. If still missing, verify `[McpServerToolType]` on class, `[McpServerTool]` on methods, and `WithTools\u003CT>()` or `WithToolsFromAssembly()` in Program.cs |\n| stdio server produces garbled output | `Console.WriteLine()` or logging is writing to stdout. All output **must** go to stderr. Set `LogToStandardErrorThreshold = LogLevel.Trace` on the console logger |\n| HTTP server returns 404 at MCP endpoint | Missing `app.MapMcp()` in Program.cs |\n| Breakpoints not hit | Building in Release mode. Rebuild in Debug: `dotnet build -c Debug`, then restart |\n| Environment variables not passed to server | Add `\"env\"` section to `mcp.json`. For secrets in VS Code, use `\"${input:var_id}\"` syntax |\n| MCP Inspector can't connect to HTTP server | Server not running, or wrong port. Check `dotnet run` output for the listening URL |\n\n## Related Skills\n\n- `mcp-csharp-create` — Create a new MCP server project\n- `mcp-csharp-test` — Automated tests and evaluations\n- `mcp-csharp-publish` — NuGet, Docker, Azure deployment\n\n## Reference Files\n\n- [references\u002Fmcp-inspector.md](references\u002Fmcp-inspector.md) — Detailed MCP Inspector usage: installation, connecting to servers, feature walkthrough, troubleshooting. **Load when:** user needs detailed Inspector guidance or is having connection issues.\n- [references\u002Fide-config.md](references\u002Fide-config.md) — Complete VS Code and Visual Studio configuration: mcp.json templates, launch.json, environment variables, conditional breakpoints. **Load when:** setting up IDE debugging or configuring environment-specific settings.\n\n## More Info\n\n- [MCP Inspector](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@modelcontextprotocol\u002Finspector\u002Fv\u002F0.21.1) — Interactive debugging tool for MCP servers\n- [VS Code MCP documentation](https:\u002F\u002Fcode.visualstudio.com\u002Fdocs\u002Fcopilot\u002Fchat\u002Fmcp-servers) — Configuring MCP servers in VS Code\n","# C# MCP Server Debugging\n\nRun, debug, and interactively test C# MCP servers. Covers local execution, IDE debugging with breakpoints, MCP Inspector for protocol-level testing, and GitHub Copilot Agent Mode integration.\n\n## When to Use\n\n- Running an MCP server locally for the first time\n- Configuring VS Code or Visual Studio to debug an MCP server\n- Testing tools interactively with MCP Inspector\n- Verifying tools appear in GitHub Copilot Agent Mode\n- Diagnosing issues: tools not discovered, protocol errors, server crashes\n- Setting up `mcp.json` or `.mcp.json` configuration\n\n## Stop Signals\n\n- **No project yet?** → Use `mcp-csharp-create` first\n- **Need automated tests?** → Use `mcp-csharp-test`\n- **Production deployment issue?** → Use `mcp-csharp-publish`\n\n## Inputs\n\n| Input | Required | Description |\n|-------|----------|-------------|\n| Project path | Yes | Path to the `.csproj` file or project directory |\n| Transport type | Recommended | `stdio` or `http` — detect from `.csproj` if not specified |\n| IDE | Recommended | VS Code or Visual Studio — detect from environment if not specified |\n\n**Agent behavior:** Detect transport type by checking the `.csproj` for a `PackageReference` to `ModelContextProtocol.AspNetCore`. If present → HTTP, otherwise → stdio.\n\n## Workflow\n\n### Step 1: Run the server locally\n\n**stdio transport:**\n```bash\ncd \u003CProjectDir>\ndotnet run\n```\nThe process starts and waits for JSON-RPC messages on stdin. No output on stdout means it's working correctly.\n\n**HTTP transport:**\n```bash\ncd \u003CProjectDir>\ndotnet run\n# Server listens on http:\u002F\u002Flocalhost:3001 (or configured port)\n```\n\n### Step 2: Generate MCP configuration\n\nDetect the IDE and transport, then create the appropriate config file.\n\n**For VS Code** — create `.vscode\u002Fmcp.json`:\n\nstdio:\n```json\n{\n  \"servers\": {\n    \"\u003CProjectName>\": {\n      \"type\": \"stdio\",\n      \"command\": \"dotnet\",\n      \"args\": [\"run\", \"--project\", \"\u003Cpath\u002Fto\u002FProjectFile.csproj>\"]\n    }\n  }\n}\n```\n\nHTTP:\n```json\n{\n  \"servers\": {\n    \"\u003CProjectName>\": {\n      \"type\": \"http\",\n      \"url\": \"http:\u002F\u002Flocalhost:3001\"\n    }\n  }\n}\n```\n\n**For Visual Studio** — create `.mcp.json` at solution root (same JSON structure).\n\n**For detailed IDE-specific configuration** (launch.json, environment variables, secrets), see [references\u002Fide-config.md](references\u002Fide-config.md).\n\n### Step 3: Test with MCP Inspector\n\nThe MCP Inspector provides a UI for testing tools, viewing schemas, and inspecting protocol messages.\n\n**stdio server:**\n```bash\nnpx @modelcontextprotocol\u002Finspector dotnet run --project \u003Cpath\u002Fto\u002FProjectFile.csproj>\n```\n\n**HTTP server:**\n1. Start your server: `dotnet run`\n2. Run Inspector: `npx @modelcontextprotocol\u002Finspector`\n3. Connect to `http:\u002F\u002Flocalhost:3001`\n\n**For detailed Inspector capabilities, usage, and troubleshooting**, see [references\u002Fmcp-inspector.md](references\u002Fmcp-inspector.md).\n\n### Step 4: Test with GitHub Copilot Agent Mode\n\n1. Open GitHub Copilot Chat → switch to **Agent** mode\n2. Click **Select Tools** (wrench icon) → verify your server and tools are listed\n3. Test with a prompt that should trigger your tool\n4. Approve tool execution when prompted\n\n**If tools don't appear — troubleshoot tool discovery:**\n\n1. **Rebuild first** — stale builds are the #1 cause:\n   ```bash\n   dotnet build\n   ```\n   Then restart the MCP server (click Stop → Start in VS Code, or restart `dotnet run`).\n\n2. **Check attributes and registration:**\n   - Verify `[McpServerToolType]` on the class and `[McpServerTool]` on each public method\n   - Methods can be `static` or instance (instance types need DI registration)\n   - Verify `.WithTools\u003CT>()` or `.WithToolsFromAssembly()` in Program.cs\n\n3. **Check `mcp.json`** points to the correct project path\n\n4. If still not appearing, reference the tool explicitly: `Using #tool_name, do X`\n\n### Step 5: Set up breakpoint debugging\n\n1. Set breakpoints in your tool methods\n2. Launch with the debugger:\n   - **VS Code:** F5 (requires `launch.json` — see [references\u002Fide-config.md](references\u002Fide-config.md))\n   - **Visual Studio:** F5 or right-click project → Debug → Start\n3. Trigger the tool (via Inspector, Copilot, or test client)\n4. Execution pauses at breakpoints\n\n**Critical:** Build in Debug configuration. Breakpoints won't hit in Release builds.\n\n### Diagnosing Tool Errors\n\nWhen a tool works standalone but fails through MCP, work through these checks:\n\n1. **Check the MCP output channel** — In VS Code: View → Output → select your MCP server name. Shows protocol errors and server stderr. In Visual Studio: check the Output window for MCP-related messages.\n2. **Attach a debugger** — Set a breakpoint in the failing tool method and step through execution (see Step 5). Check for exceptions being swallowed or unexpected parameter values.\n3. **Test with MCP Inspector** — Call the tool directly through Inspector to isolate whether the issue is in the tool code or the client integration: `npx @modelcontextprotocol\u002Finspector dotnet run --project \u003Cpath>`\n4. **Check stdout contamination (stdio only)** — Any `Console.WriteLine()` or logging to stdout corrupts the JSON-RPC protocol. Redirect all output to stderr (see Step 6).\n5. **Check common culprits:**\n   - **Serialization errors** — Return types must be JSON-serializable. Avoid circular references.\n   - **DI registration** — Missing service registrations cause runtime exceptions. Check `Program.cs`.\n   - **Parameter binding** — Ensure parameter names and types match the tool schema.\n   - **Unhandled exceptions** — Wrap tool logic in try-catch and log to stderr or a file.\n6. **Enable file logging** — For post-mortem analysis, log to a file:\n   ```csharp\n   builder.Logging.AddFile(\"mcp-debug.log\"); \u002F\u002F or use Serilog\u002FNLog\n   ```\n\n### Step 6: Configure logging\n\n**Critical for stdio transport:** Any output to stdout (including `Console.WriteLine`) **corrupts the MCP JSON-RPC protocol** and causes garbled responses or crashes. All logging and diagnostic output must go to stderr.\n\n**stdio transport** — log to stderr only:\n```csharp\nbuilder.Logging.AddConsole(options =>\n    options.LogToStandardErrorThreshold = LogLevel.Trace);\n```\n\n**HTTP transport** — For HTTP transport logging configuration, see [references\u002Fide-config.md](references\u002Fide-config.md).\n\n**In tool methods** — inject `ILogger\u003CT>` via constructor and use `logger.LogDebug()` \u002F `logger.LogError()`. Logging through `ILogger` respects the stderr configuration above.\n\n## Validation\n\n- [ ] Server starts without errors via `dotnet run`\n- [ ] MCP Inspector connects and lists all expected tools\n- [ ] Tool calls via Inspector return expected results\n- [ ] Breakpoints hit when debugging in IDE\n- [ ] Tools appear in GitHub Copilot Agent Mode tool list\n- [ ] stdio: no logging output on stdout (stderr only)\n\n## Common Pitfalls\n\n| Pitfall | Solution |\n|---------|----------|\n| Tools not appearing or stale after changes | **Rebuild first:** `dotnet build`, then restart the server. If still missing, verify `[McpServerToolType]` on class, `[McpServerTool]` on methods, and `WithTools\u003CT>()` or `WithToolsFromAssembly()` in Program.cs |\n| stdio server produces garbled output | `Console.WriteLine()` or logging is writing to stdout. All output **must** go to stderr. Set `LogToStandardErrorThreshold = LogLevel.Trace` on the console logger |\n| HTTP server returns 404 at MCP endpoint | Missing `app.MapMcp()` in Program.cs |\n| Breakpoints not hit | Building in Release mode. Rebuild in Debug: `dotnet build -c Debug`, then restart |\n| Environment variables not passed to server | Add `\"env\"` section to `mcp.json`. For secrets in VS Code, use `\"${input:var_id}\"` syntax |\n| MCP Inspector can't connect to HTTP server | Server not running, or wrong port. Check `dotnet run` output for the listening URL |\n\n## Related Skills\n\n- `mcp-csharp-create` — Create a new MCP server project\n- `mcp-csharp-test` — Automated tests and evaluations\n- `mcp-csharp-publish` — NuGet, Docker, Azure deployment\n\n## Reference Files\n\n- [references\u002Fmcp-inspector.md](references\u002Fmcp-inspector.md) — Detailed MCP Inspector usage: installation, connecting to servers, feature walkthrough, troubleshooting. **Load when:** user needs detailed Inspector guidance or is having connection issues.\n- [references\u002Fide-config.md](references\u002Fide-config.md) — Complete VS Code and Visual Studio configuration: mcp.json templates, launch.json, environment variables, conditional breakpoints. **Load when:** setting up IDE debugging or configuring environment-specific settings.\n\n## More Info\n\n- [MCP Inspector](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@modelcontextprotocol\u002Finspector\u002Fv\u002F0.21.1) — Interactive debugging tool for MCP servers\n- [VS Code MCP documentation](https:\u002F\u002Fcode.visualstudio.com\u002Fdocs\u002Fcopilot\u002Fchat\u002Fmcp-servers) — Configuring MCP servers in VS Code\n",{"name":5,"license":15,"description":24},"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).\n","main","5810d492c9b301d8227f932bf87b5c954c4fa4d6","plugins\u002Fdotnet-ai\u002Fskills\u002Fmcp-csharp-debug","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd","weiflycc.com","2026-11-10 03:26:55",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add weiflycc-cmd\u002Fskills --skill mcp-csharp-debug",{"tool":38,"command":39},"bunx","bunx skills add weiflycc-cmd\u002Fskills --skill mcp-csharp-debug",{"tool":41,"command":42},"pnpm","pnpm dlx skills add weiflycc-cmd\u002Fskills --skill mcp-csharp-debug","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-ai\u002Fskills\u002Fmcp-csharp-debug\u002FSKILL.md",true,[46,52],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fide-config.md","REFERENCE","参考文档",4506,"https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-ai\u002Fskills\u002Fmcp-csharp-debug\u002Freferences\u002Fide-config.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fmcp-inspector.md",2387,"https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-ai\u002Fskills\u002Fmcp-csharp-debug\u002Freferences\u002Fmcp-inspector.md",[57,64,71,78,85,92],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M76SGT4WG5682JQJ0V3NSK6X","system-text-json-net11","Provides guidance on new System.Text.Json APIs introduced in .NET 11. It covers typed JsonTypeInfo access via GetTypeInfo\u003CT> and TryGetTypeInfo\u003CT> on JsonSerializerOptions, and the new JsonNamingPolicy.PascalCase static property. Use when serializing or deserializing JSON in .NET 11 applications and needing typed metadata access or PascalCase property naming.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet11\u002Fskills\u002Fsystem-text-json-net11\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M76SGPNZYYV9BCZJW7BF7J8A","nuget-trusted-publishing","Set up NuGet trusted publishing (OIDC) on a GitHub Actions repo — replaces long-lived API keys with short-lived tokens. USE FOR: trusted publishing, NuGet OIDC, keyless NuGet publish, migrate from NuGet API key, NuGet\u002Flogin, secure NuGet publishing. DO NOT USE FOR: publishing to private feeds or Azure Artifacts (OIDC is nuget.org only). INVOKES: shell (powershell or bash), edit, create, ask_user for guided repo setup.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet\u002Fskills\u002Fnuget-trusted-publishing\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M76SGHVNBNVM1DMVDYTMAE5G","dotnet-pinvoke","Correctly call native (C\u002FC++) libraries from .NET using P\u002FInvoke and LibraryImport. Covers function signatures, string marshalling, memory lifetime, SafeHandle, and cross-platform patterns. USE FOR: writing new P\u002FInvoke or LibraryImport declarations, reviewing or debugging existing native interop code, wrapping a C or C++ library for use in .NET, diagnosing crashes, memory leaks, or corruption at the managed\u002Fnative boundary. DO NOT USE FOR: COM interop, C++\u002FCLI mixed-mode assemblies, or pure managed code with no native dependencies.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet\u002Fskills\u002Fdotnet-pinvoke\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":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M76SGDB9Z3GSB1CFW314NC84","csharp-scripts","Run file-based C# apps with the .NET CLI when the user explicitly wants C#\u002F.NET code without creating a project. Use for C# language\u002FAPI experiments, one-file C# apps, small multi-file C# apps composed with `#:include`\u002F`#:exclude`, or C# file-based apps linked with `#:ref`. Do not use for language-agnostic throwaway scripts, generic computations, Python\u002FPowerShell-style automation, full projects, or existing app integration.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet\u002Fskills\u002Fcsharp-scripts\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},"01M76SG805T8W764WAKB1NP3CJ","thread-abort-migration","Guides migration of .NET Framework Thread.Abort usage to cooperative cancellation in modern .NET. USE FOR: modernizing code that calls Thread.Abort, catching ThreadAbortException, replacing Thread.ResetAbort, replacing Thread.Interrupt for thread termination, resolving PlatformNotSupportedException or SYSLIB0006 after retargeting to .NET 6+, migrating ASP.NET Response.End or Response.Redirect(url, true) which internally call Thread.Abort. DO NOT USE FOR: code that only uses Thread.Join, Thread.Sleep, or Thread.Start without any abort, interrupt, or ThreadAbortException usage — these APIs work identically in modern .NET and need no migration. Also not for projects staying on .NET Framework, or Thread.Abort usage inside third-party libraries you do not control.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fthread-abort-migration\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},"01M76SG2588ZJBE5C51HYJJSKV","migrate-nullable-references","Enable nullable reference types in a C# project and systematically resolve all warnings. USE FOR: adopting NRTs in existing codebases, file-by-file or project-wide migration, fixing CS8602\u002FCS8618\u002FCS86xx warnings, annotating APIs for nullability, cleaning up null-forgiving operators, upgrading dependencies with new nullable annotations. DO NOT USE FOR: projects already fully migrated with zero warnings (unless auditing suppressions), fixing a handful of nullable warnings in code that already has NRTs enabled, suppressing warnings without fixing them, C# 7.3 or earlier projects. INVOKES: Get-NullableReadiness.ps1 scanner script.","https:\u002F\u002Fgithub.com\u002Fweiflycc-cmd\u002Fskills\u002Fblob\u002Fmain\u002Fplugins\u002Fdotnet-upgrade\u002Fskills\u002Fmigrate-nullable-references\u002FSKILL.md",[],[]]