mcp-csharp-create

Creates C# MCP server projects with stdio or HTTP ASP.NET Core transports.

1|Updated May 21, 2026
One-click install
npx skills add https://github.com/1k-off/umbraco-observability-playground --skill mcp-csharp-create-1k-off
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-csharp-create
Source: https://github.com/1k-off/umbraco-observability-playground/tree/main/.agents/skills/mcp-csharp-create
Command: npx skills add https://github.com/1k-off/umbraco-observability-playground --skill mcp-csharp-create-1k-off

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill removes the friction of creating a new Model Context Protocol (MCP) server in C# by giving you a reliable, step-by-step setup for tools, prompts, and resources.

Core Features & Use Cases

  • Server scaffolding with the C# SDK: creates a new MCP server project using dotnet new mcpserver (or a safer dotnet new web fallback) for rapid startup.
  • Tool, prompt, and resource implementation: helps you implement [McpServerToolType]/[McpServerTool], [McpServerPromptType]/[McpServerPrompt], and [McpServerResourceType]/[McpServerResource] with correct LLM-visible metadata via [Description].
  • Transport configuration (stdio and HTTP): configures MCP hosting for local stdio servers or ASP.NET Core HTTP servers using MapMcp() and appropriate host setup.

Quick Start

Tell me: "Create a new C# MCP server named WeatherMcpServer using stdio transport, add one tool that wraps my weather API, and show the Program.cs wiring so it starts successfully."

Frequently Asked Questions about mcp-csharp-create

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an MCP server in C#?

To create an MCP server in C#, scaffold a new project using `dotnet new mcpserver` or a `dotnet new web` fallback, then configure Program.cs hosting with the ModelContextProtocol SDK to expose tools, prompts, and resources over stdio or HTTP.

How do I configure stdio transport for a C# MCP server?

Configure stdio transport for a C# MCP server by setting up local subprocess hosting in Program.cs, ensuring the server starts cleanly without stdout logging corruption to maintain valid standard input/output communication.

How do I expose tools and prompts in a C# Model Context Protocol server?

Expose tools and prompts in a C# MCP server by implementing `[McpServerToolType]`/`[McpServerTool]` and `[McpServerPromptType]`/`[McpServerPrompt]` attributes with `[Description]` metadata for correct LLM-visible schema generation.

Can I host an MCP server using ASP.NET Core HTTP?

Yes, you can host an MCP server using ASP.NET Core HTTP by configuring the HTTP transport with `MapMcp()` and appropriate host setup in Program.cs for network-accessible tool, prompt, and resource discovery.

What is the best way to avoid stdout logging corruption in stdio MCP servers?

Avoid stdout logging corruption in stdio MCP servers by validating server startup logs and ensuring standard output is reserved strictly for protocol messaging, redirecting diagnostic logs to standard error.