{"id":"399d47ba-0209-484c-bab8-f71bfff503cd","shortId":"JGUK9C","kind":"skill","title":"csharp-mcp-server-generator","tagline":"Generate a complete MCP server project in C# with tools, prompts, and proper configuration","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","agent-skills","agents","custom-agents","github-copilot","hacktoberfest"],"capabilities":["skill","source-github","skill-csharp-mcp-server-generator","topic-agent-skills","topic-agents","topic-awesome","topic-custom-agents","topic-github-copilot","topic-hacktoberfest","topic-prompt-engineering"],"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":{"cli":"npx skills add github/awesome-copilot","source_repo":"https://github.com/github/awesome-copilot","install_from":"skills.sh"}},"qualityScore":"0.700","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 32597 github stars · SKILL.md body (2,088 chars)","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-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-10T18:52:20.085Z","embedding":null,"createdAt":"2026-04-18T20:26:10.191Z","updatedAt":"2026-05-10T18:52:20.085Z","lastSeenAt":"2026-05-10T18:52:20.085Z","tsv":"'1':39 '2':52 '3':60 '4':74 '5':86 '6':99 '8.0':115 'add':122,173 'addmcpserv':143 'analyz':228 'api':230 'applic':47,121 'appropri':184 'async':181 'attribut':96,163,169,175 'automat':150 'avoid':69 'basic':110 'builder':80 'c':13,21,33,45,192 'check':238 'class':166 'client':259 'code':189 'command':237,254 'comment':198 'complet':8,26,265 'comprehens':272 'configur':19,62,63,85,129,134,142 'consid':218 'consol':46,120 'context':28 'convent':194 'creat':24,42,88,118 'csharp':2 'csharp-mcp-server-gener':1 'data':224 'databas':240 'debug':213 'descript':98,174 'detail':109 'di':84,138 'directori':50 'discoveri':152 'document':197,273 'ensur':153 'error':100,104,205,275 'exampl':214,253 'execut':236 'explain':246 'extern':229 'file':219 'flag':128 'follow':36,191 'generat':5,6,20,263 'guidanc':245 'handl':101,105,206,276 'host':79 'host.createapplicationbuilder':136 'http':232 'implement':108,160,203 'includ':55,102,185,195,260 'integr':231 'interf':70 'later':117 'least':90 'lifecycl':140 'log':61,65,130,211 'manag':141 'mcp':3,9,22,30,258,269 'mcpprotocolexcept':208 'mcpservertool':168 'mcpservertooltyp':162 'method':172 'microsoft.extensions.hosting':59 'model':27 'modelcontextprotocol':56 'name':193 'necessari':123 'net':114 'new':44 'nuget':53,124 'nullabl':200 'one':91 'oper':182,220,235,241 'packag':54,125 'paramet':179,187 'pattern':81 'prereleas':57,127 'process':225 'product':267 'production-readi':266 'project':11,40,111 'prompt':16 'proper':18,49,83,95,103,186,204 'protocol':29 'provid':252 'qualiti':190 'queri':242 'read':221 'readi':268 'refer':201 'request':233 'requir':38 'run':156,249 'runasync':158 'search':223 'server':4,10,23,31,75,133,155,251,270 'setup':76,112 'skill' 'skill-csharp-mcp-server-generator' 'source-github' 'specif':37 'status':239 'stderr':67,132 'stdio':72,145 'structur':41,51,210 'support':180 'system':234 'test':244,256 'tip':262 'tool':15,87,93,151,159,165,171,177,215 'topic-agent-skills' 'topic-agents' 'topic-awesome' 'topic-custom-agents' 'topic-github-copilot' 'topic-hacktoberfest' 'topic-prompt-engineering' 'transform':226 'transport':73,146 'troubleshoot':261 'type':202,216 'updat':243 'use':77,92,113,135,147,161,167,199,209 'valid':107,188,227 'withtoolsfromassembl':148 'write':222 'xml':196","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-05-10T18:52:20.085Z"},{"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-05-07T22:40:18.864Z"}],"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","github":{"repo":"github/awesome-copilot","stars":32597,"topics":["agent-skills","agents","ai","awesome","custom-agents","github-copilot","hacktoberfest","prompt-engineering"],"license":"mit","html_url":"https://github.com/github/awesome-copilot","pushed_at":"2026-05-09T19:45:23Z","description":"Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.","skill_md_sha":"e36ae2fe5331ef3c83293bda99820484274a1543","skill_md_path":"skills/csharp-mcp-server-generator/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/github/awesome-copilot/tree/main/skills/csharp-mcp-server-generator"},"layout":"multi","source":"github","category":"awesome-copilot","frontmatter":{"name":"csharp-mcp-server-generator","description":"Generate a complete MCP server project in C# with tools, prompts, and proper configuration"},"skills_sh_url":"https://skills.sh/github/awesome-copilot/csharp-mcp-server-generator"},"updatedAt":"2026-05-10T18:52:20.085Z"}}