MCP Csharp
atherio-danp/cde-dotnetcc
Create, debug, test, and publish MCP (Model Context Protocol) servers in C using the official ModelContextProtocol SDK — tools/prompts/resources, stdio vs HTTP transport, MapMcp hosting.
Build Model Context Protocol (MCP) servers in C/.NET against the current ModelContextProtocol 1.x NuGet packages.
$ npx skills add boshi-xixixi/TraeSkill --skill dotnet-mcp-builder -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install boshi-xixixi/TraeSkill dotnet-mcp-builder --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/boshi-xixixi/TraeSkill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.trae/Skills/.agents/skills/dotnet-mcp-builder .claude/skills/dotnet-mcp-builder && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "dotnet-mcp-builder" agent skill from https://github.com/boshi-xixixi/TraeSkill/tree/main/.trae/Skills/.agents/skills/dotnet-mcp-builder into .claude/skills/dotnet-mcp-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dotnet-mcp-builder", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/boshi-xixixi/TraeSkill/tree/main/.trae/Skills/.agents/skills/dotnet-mcp-builderType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add boshi-xixixi/TraeSkill --skill dotnet-mcp-builder -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install boshi-xixixi/TraeSkill dotnet-mcp-builder --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/boshi-xixixi/TraeSkill.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.trae/Skills/.agents/skills/dotnet-mcp-builder .agents/skills/dotnet-mcp-builder && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "dotnet-mcp-builder" agent skill from https://github.com/boshi-xixixi/TraeSkill/tree/main/.trae/Skills/.agents/skills/dotnet-mcp-builder into .agents/skills/dotnet-mcp-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dotnet-mcp-builder", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add boshi-xixixi/TraeSkill --skill dotnet-mcp-builder -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install boshi-xixixi/TraeSkill dotnet-mcp-builder --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/boshi-xixixi/TraeSkill.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.trae/Skills/.agents/skills/dotnet-mcp-builder .cursor/skills/dotnet-mcp-builder && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "dotnet-mcp-builder" agent skill from https://github.com/boshi-xixixi/TraeSkill/tree/main/.trae/Skills/.agents/skills/dotnet-mcp-builder into .cursor/skills/dotnet-mcp-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dotnet-mcp-builder", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/boshi-xixixi/TraeSkill.git --path .trae/Skills/.agents/skills/dotnet-mcp-builder--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add boshi-xixixi/TraeSkill --skill dotnet-mcp-builder -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install boshi-xixixi/TraeSkill dotnet-mcp-builder --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/boshi-xixixi/TraeSkill.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.trae/Skills/.agents/skills/dotnet-mcp-builder .gemini/skills/dotnet-mcp-builder && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "dotnet-mcp-builder" agent skill from https://github.com/boshi-xixixi/TraeSkill/tree/main/.trae/Skills/.agents/skills/dotnet-mcp-builder into .gemini/skills/dotnet-mcp-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dotnet-mcp-builder", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install boshi-xixixi/TraeSkill dotnet-mcp-builderInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add boshi-xixixi/TraeSkill --skill dotnet-mcp-builder -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/boshi-xixixi/TraeSkill.git skills-src && mkdir -p .github/skills && cp -r skills-src/.trae/Skills/.agents/skills/dotnet-mcp-builder .github/skills/dotnet-mcp-builder && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "dotnet-mcp-builder" agent skill from https://github.com/boshi-xixixi/TraeSkill/tree/main/.trae/Skills/.agents/skills/dotnet-mcp-builder into .github/skills/dotnet-mcp-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dotnet-mcp-builder", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add boshi-xixixi/TraeSkill --skill dotnet-mcp-builder -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install boshi-xixixi/TraeSkill dotnet-mcp-builder --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/boshi-xixixi/TraeSkill.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.trae/Skills/.agents/skills/dotnet-mcp-builder .opencode/skills/dotnet-mcp-builder && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "dotnet-mcp-builder" agent skill from https://github.com/boshi-xixixi/TraeSkill/tree/main/.trae/Skills/.agents/skills/dotnet-mcp-builder into .opencode/skills/dotnet-mcp-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dotnet-mcp-builder", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
dotnet-mcp-builderBuild Model Context Protocol (MCP) servers in C/.NET against the current ModelContextProtocol 1.x NuGet packages.
Dotnet MCP Builder is an agent skill from boshi-xixixi/TraeSkill. Build Model Context Protocol (MCP) servers in C/.NET against the current ModelContextProtocol 1.x NuGet packages. Especially helps with cases the model often gets wrong without guidance — stale preview versions (it tends to pick 0.3 or 0.4 preview), MCP Apps (interactive UI rendered in the host), elicitation URL mode, per-session HTTP wiring, OAuth and reverse-proxy deploy specifics, and debugging concrete MapMcp / STDIO / Streamable-HTTP errors. Also covers the routine work — STDIO and Streamable HTTP transports…
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 14 other files, including reference files (for example `references/client.md`, `references/elicitation.md` and `references/mcp-apps.md`).
It sits in Agent Workflows, covering MCP servers. It works with Model Context Protocol, .NET and C#. The repository describes itself as: 为 Trae IDE 打造的全流程标准化 AI 开发技能库,内置调度分发与多角色研发技能,一键导入规范 AI 编码工作流 🚀. The licence is MIT.
7 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 9cf38e6. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
dotnetFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
nuget.orgcsharp.sdk.modelcontextprotocol.iogithub.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Dotnet MCP Builder loads about 1.7k tokens when it runs, and up to ~21k if it reads all its reference files. Until then it costs about 243 tokens; SKILL.md has 672 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from boshi-xixixi/TraeSkill at commit 9cf38e6, republished under its MIT licence (© boshi-xixixi). 672 words, ~1,721 tokens.
.claude/skills/dotnet-mcp-builder/SKILL.md (or your agent's skills folder). This skill also uses 13 other files; get the full folder from GitHub.This skill helps you write production-quality MCP servers and basic clients in C#/.NET against the official ModelContextProtocol NuGet packages, maintained by Microsoft and the MCP project. It targets the stable 1.x line and the current spec (2025-11-25).
The .NET MCP SDK had years of preview packages (0.x-preview) before reaching 1.0. Without help, the model tends to:
If the task is one of those, load the matching reference and follow it. If it's truly trivial (e.g. "rename this tool method"), you don't need to read everything — the cardinal rules below are the minimum.
A .NET MCP server is an ordinary Microsoft.Extensions.Hosting (or WebApplication) app that wires an MCP server through DI:
builder.Services
.AddMcpServer()
.WithStdioServerTransport() // OR .WithHttpTransport(...)
.WithToolsFromAssembly() // discover [McpServerToolType] classes
.WithPrompts<MyPrompts>() // optional
.WithResources<MyResources>(); // optionalPrimitives are plain C# methods on classes marked with attributes ([McpServerToolType] + [McpServerTool], [McpServerPromptType] + [McpServerPrompt], [McpServerResourceType] + [McpServerResource]). Parameters bind from JSON-RPC; the SDK builds the JSON Schema from the signature plus [Description] attributes.
Server-to-client features (sampling, elicitation, roots, log/progress notifications) are methods on the injected IMcpServer.
Always load references/packages.md if you're creating a new project or unsure of the current package version.
| Task | Load |
|---|---|
| New STDIO server | references/transport-stdio.md |
| New HTTP (Streamable) server | references/transport-http.md |
| Add/modify a tool | references/tool-primitive.md |
| Add/modify a prompt | references/prompt-primitive.md |
| Add/modify a resource | references/resource-primitive.md |
| Ask the user a question mid-tool | references/elicitation.md |
| Call the client's LLM from a tool | references/sampling.md |
| Read the user's project roots | references/roots.md |
| Return an interactive UI | references/mcp-apps.md |
| Argument completions, log/progress notifications, filters, server instructions | references/server-features.md |
| Write a .NET program that consumes an MCP server | references/client.md |
| MCP Inspector, in-memory tests, mocks, CI | references/testing.md |
For multi-primitive tasks, load several at once. For trivial edits in an existing file, you usually don't need any.
ModelContextProtocol / ModelContextProtocol.AspNetCore / ModelContextProtocol.Core at the latest 1.x. If you find yourself writing 0.3-preview or 0.4-preview, stop and check NuGet — preview APIs have breaking differences.LogToStandardErrorThreshold = LogLevel.Trace before anything else and never Console.WriteLine from a tool.options.Stateless = true. Server-to-client features (sampling, elicitation, roots, unsolicited notifications) require stateful HTTP or STDIO — Stateless = true will break them at runtime.EnableLegacySse = true) for an old client you must support, and call it out.[Description] tools and parameters. This is what the LLM sees when picking and shaping calls. Vague descriptions are the #1 reason tools don't get used.[McpServerPromptType] class without .WithPrompts<...>() (or .WithPromptsFromAssembly()) is invisible.dotnet build. Catches missing usings, attribute typos, and TFM mismatches before the user sees them.Walk this checklist before guessing:
Console.WriteLine, library banner).app.MapMcp() is root, app.MapMcp("/mcp") puts it under /mcp.[McpServerToolType] on the class, or no .WithToolsFromAssembly() / .WithTools<T>() registered.arguments keys; complex types bind via System.Text.Json.Still stuck? Point the user at the EverythingServer sample — it exercises every feature.
© boshi-xixixi, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 13 other files (references) in .trae/Skills/.agents/skills/dotnet-mcp-builder of boshi-xixixi/TraeSkill.
Open the folder on GitHubat commit 9cf38e6
Dotnet MCP Builder next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Dotnet MCP Builder this skillboshi-xixixi/TraeSkill | 276 | — | ~1.7k | Automated safety check: Pass | MIT | |
| MCP Csharpatherio-danp/cde-dotnetcc | 109 | — | ~1.2k | Automated safety check: Notes | None | |
| Csharp MCP Server GeneratorILoveDotNet/ilovedotnet | 155 | — | ~560 | Automated safety check: Pass | CC0-1.0 | |
| Dotnet MCP Buildergithub/awesome-copilot | 40k | — | ~2.1k | Automated safety check: Pass | MIT | |
| MCPmanagedcode/dotnet-skills | 486 | — | ~3.5k | Automated safety check: Pass | MIT | |
| Agent Frameworkjihadkhawaja/Egroo | 178 | — | ~1.9k | Automated safety check: Pass | Apache-2.0 |
atherio-danp/cde-dotnetcc
Create, debug, test, and publish MCP (Model Context Protocol) servers in C using the official ModelContextProtocol SDK — tools/prompts/resources, stdio vs HTTP transport, MapMcp hosting.
ILoveDotNet/ilovedotnet
Generate a complete MCP server project in C with tools, prompts, and proper configuration
github/awesome-copilot
Build Model Context Protocol (MCP) servers in C/.NET against the current ModelContextProtocol 2.x NuGet packages.
managedcode/dotnet-skills
Build or consume Model Context Protocol (MCP) servers and clients in .NET using the official MCP C SDK, including stdio, Streamable HTTP, tools, prompts, resources, and capability negotiation.
jihadkhawaja/Egroo
Build, extend, and debug AI agents in Egroo using the Microsoft Agent Framework (C .NET).
wshobson/agents
Master C/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications.
boshi-xixixi/TraeSkill
Bootstrap and run a multi-agent AI development team. An agent skill from boshi-xixixi/TraeSkill.
boshi-xixixi/TraeSkill
INVOKE THIS SKILL when adding Arize AX tracing or observability to an app for the first time, or when the user wants to instrument their LLM app or get started with LLM observability.
boshi-xixixi/TraeSkill
当用户需要创建新 Skill 或更新现有 Skill 时使用。此 Skill 提供技能创建的完整工作流指导,包括需求分析、编写规范、工程化构建、质量评估和迭代优化。
boshi-xixixi/TraeSkill
Trae 项目规范化配置专家。用于快速初始化 Trae 项目配置文件、生成项目规则、用户偏好设置和 Skill 模板。当用户需要:(1) 初始化新项目的 Trae 配置 (2) 生成 .trae 目录结构 (3) 创建 USERPREFERENCES.md 用户偏好文件 (4) 创建 projectrules.md 项目规则文件 (5) 创建新的 Skill 模板 时使用此 Skill。
boshi-xixixi/TraeSkill
Expert 10x engineer with comprehensive knowledge of web development, internet protocols, and web standards.
boshi-xixixi/TraeSkill
Windows App Development CLI (winapp) for building, packaging, signing, debugging, and UI-automating Windows applications.
Works with
Categories
Build Model Context Protocol (MCP) servers in C/.NET against the current ModelContextProtocol 1.x NuGet packages. Dotnet MCP Builder is an agent skill from boshi-xixixi/TraeSkill.x NuGet packages.
Dotnet MCP Builder fits situations like: implies any .NET MCP server work: ModelContextProtocol; withStdioServerTransport; MCP server in C; MCP tool in dotnet.
Run `npx skills add boshi-xixixi/TraeSkill --skill dotnet-mcp-builder -a claude-code`. Or copy the skill folder (.trae/Skills/.agents/skills/dotnet-mcp-builder in boshi-xixixi/TraeSkill) into .claude/skills/dotnet-mcp-builder in your project. Claude Code loads it when a task matches its description.
Run `npx skills add boshi-xixixi/TraeSkill --skill dotnet-mcp-builder -a codex`. Or copy the skill folder (.trae/Skills/.agents/skills/dotnet-mcp-builder in boshi-xixixi/TraeSkill) into .agents/skills/dotnet-mcp-builder in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add boshi-xixixi/TraeSkill --skill dotnet-mcp-builder -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dotnet-mcp-builder, .gemini/skills/dotnet-mcp-builder, .github/skills/dotnet-mcp-builder and .opencode/skills/dotnet-mcp-builder in your project.
Going by SKILL.md and its folder, Dotnet MCP Builder needs the command-line tools its instructions call (dotnet).
SKILL.md names 3 domains. As links in the text: nuget.org, csharp.sdk.modelcontextprotocol.io and github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Dotnet MCP Builder is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 19k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Dotnet MCP Builder: MCP Csharp (atherio-danp/cde-dotnetcc, 109 stars), Csharp MCP Server Generator (ILoveDotNet/ilovedotnet, 155 stars), Dotnet MCP Builder (github/awesome-copilot, 40k stars) and MCP (managedcode/dotnet-skills, 486 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
boshi-xixixi (a GitHub user) maintains it in boshi-xixixi/TraeSkill, which has 276 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on May 12, 2026.
Source: boshi-xixixi/TraeSkill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.