{"id":"399d47ba-0209-484c-bab8-f71bfff503cd","shortId":"JGUK9C","kind":"skill","title":"Csharp Mcp Server Generator","tagline":"Awesome Copilot skill by Github","description":"# Generate C# MCP Server\n\nCreate a complete Model Context Protocol (MCP) server in C# with the following specifications:\n\n## Requirements\n\n1. **Project Structure**: Create a new C# console application with proper directory structure\n2. **NuGet Packages**: Include ModelContextProtocol (prerelease) and Microsoft.Extensions.Hosting\n3. **Logging Configuration**: Configure all logs to stderr to avoid interfering with stdio transport\n4. **Server Setup**: Use the Host builder pattern with proper DI configuration\n5. **Tools**: Create at least one useful tool with proper attributes and descriptions\n6. **Error Handling**: Include proper error handling and validation\n\n## Implementation Details\n\n### Basic Project Setup\n- Use .NET 8.0 or later\n- Create a console application\n- Add necessary NuGet packages with --prerelease flag\n- Configure logging to stderr\n\n### Server Configuration\n- Use `Host.CreateApplicationBuilder` for DI and lifecycle management\n- Configure `AddMcpServer()` with stdio transport\n- Use `WithToolsFromAssembly()` for automatic tool discovery\n- Ensure the server runs with `RunAsync()`\n\n### Tool Implementation\n- Use `[McpServerToolType]` attribute on tool classes\n- Use `[McpServerTool]` attribute on tool methods\n- Add `[Description]` attributes to tools and parameters\n- Support async operations where appropriate\n- Include proper parameter validation\n\n### Code Quality\n- Follow C# naming conventions\n- Include XML documentation comments\n- Use nullable reference types\n- Implement proper error handling with McpProtocolException\n- Use structured logging for debugging\n\n## Example Tool Types to Consider\n- File operations (read, write, search)\n- Data processing (transform, validate, analyze)\n- External API integrations (HTTP requests)\n- System operations (execute commands, check status)\n- Database operations (query, update)\n\n## Testing Guidance\n- Explain how to run the server\n- Provide example commands to test with MCP clients\n- Include troubleshooting tips\n\nGenerate a complete, production-ready MCP server with comprehensive documentation and error handling.","tags":["csharp","mcp","server","generator","awesome","copilot","github"],"capabilities":["skill","source-github","category-awesome-copilot"],"categories":["awesome-copilot"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/github/awesome-copilot/csharp-mcp-server-generator","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"install_from":"skills.sh"}},"qualityScore":"0.300","qualityRationale":"deterministic score 0.30 from registry signals: · indexed on skills.sh · published under github/awesome-copilot","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill:v1","enrichmentVersion":1,"enrichedAt":"2026-04-22T10:40:20.724Z","embedding":null,"createdAt":"2026-04-18T20:26:10.191Z","updatedAt":"2026-04-22T10:40:20.724Z","lastSeenAt":"2026-04-22T10:40:20.724Z","tsv":"'1':29 '2':42 '3':50 '4':64 '5':76 '6':89 '8.0':105 'add':112,163 'addmcpserv':133 'analyz':218 'api':220 'applic':37,111 'appropri':174 'async':171 'attribut':86,153,159,165 'automat':140 'avoid':59 'awesom':5 'basic':100 'builder':70 'c':11,23,35,182 'category-awesome-copilot' 'check':228 'class':156 'client':249 'code':179 'command':227,244 'comment':188 'complet':16,255 'comprehens':262 'configur':52,53,75,119,124,132 'consid':208 'consol':36,110 'context':18 'convent':184 'copilot':6 'creat':14,32,78,108 'csharp':1 'data':214 'databas':230 'debug':203 'descript':88,164 'detail':99 'di':74,128 'directori':40 'discoveri':142 'document':187,263 'ensur':143 'error':90,94,195,265 'exampl':204,243 'execut':226 'explain':236 'extern':219 'file':209 'flag':118 'follow':26,181 'generat':4,10,253 'github':9 'guidanc':235 'handl':91,95,196,266 'host':69 'host.createapplicationbuilder':126 'http':222 'implement':98,150,193 'includ':45,92,175,185,250 'integr':221 'interf':60 'later':107 'least':80 'lifecycl':130 'log':51,55,120,201 'manag':131 'mcp':2,12,20,248,259 'mcpprotocolexcept':198 'mcpservertool':158 'mcpservertooltyp':152 'method':162 'microsoft.extensions.hosting':49 'model':17 'modelcontextprotocol':46 'name':183 'necessari':113 'net':104 'new':34 'nuget':43,114 'nullabl':190 'one':81 'oper':172,210,225,231 'packag':44,115 'paramet':169,177 'pattern':71 'prereleas':47,117 'process':215 'product':257 'production-readi':256 'project':30,101 'proper':39,73,85,93,176,194 'protocol':19 'provid':242 'qualiti':180 'queri':232 'read':211 'readi':258 'refer':191 'request':223 'requir':28 'run':146,239 'runasync':148 'search':213 'server':3,13,21,65,123,145,241,260 'setup':66,102 'skill':7 'source-github' 'specif':27 'status':229 'stderr':57,122 'stdio':62,135 'structur':31,41,200 'support':170 'system':224 'test':234,246 'tip':252 'tool':77,83,141,149,155,161,167,205 'transform':216 'transport':63,136 'troubleshoot':251 'type':192,206 'updat':233 'use':67,82,103,125,137,151,157,189,199 'valid':97,178,217 'withtoolsfromassembl':138 'write':212 'xml':186","prices":[{"id":"d5604ec5-01e2-4c21-acd4-4575e11bd09c","listingId":"399d47ba-0209-484c-bab8-f71bfff503cd","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"github","category":"awesome-copilot","install_from":"skills.sh"},"createdAt":"2026-04-18T20:26:10.191Z"}],"sources":[{"listingId":"399d47ba-0209-484c-bab8-f71bfff503cd","source":"github","sourceId":"github/awesome-copilot/csharp-mcp-server-generator","sourceUrl":"https://github.com/github/awesome-copilot/tree/main/skills/csharp-mcp-server-generator","isPrimary":false,"firstSeenAt":"2026-04-18T21:49:00.095Z","lastSeenAt":"2026-04-22T06:52:18.802Z"},{"listingId":"399d47ba-0209-484c-bab8-f71bfff503cd","source":"skills_sh","sourceId":"github/awesome-copilot/csharp-mcp-server-generator","sourceUrl":"https://skills.sh/github/awesome-copilot/csharp-mcp-server-generator","isPrimary":true,"firstSeenAt":"2026-04-18T20:26:10.191Z","lastSeenAt":"2026-04-22T10:40:20.724Z"}],"details":{"listingId":"399d47ba-0209-484c-bab8-f71bfff503cd","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"github","slug":"csharp-mcp-server-generator","source":"skills_sh","category":"awesome-copilot","skills_sh_url":"https://skills.sh/github/awesome-copilot/csharp-mcp-server-generator"},"updatedAt":"2026-04-22T10:40:20.724Z"}}