Agent skill

MCP Csharp

by atherio-danp in 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.

No licenceAuto-check: notesAgent Workflows

Install MCP Csharp

skills CLI
$ npx skills add atherio-danp/cde-dotnetcc --skill mcp-csharp -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install atherio-danp/cde-dotnetcc mcp-csharp --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/atherio-danp/cde-dotnetcc.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/mcp-csharp .claude/skills/mcp-csharp && rm -rf skills-src

Use ~/.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/

Facts

Skill name
mcp-csharp
GitHub stars
109
Token cost
~1.2k tokens
SKILL.md length
363 words
Files
1
Skills in repo
13
Repo updated
First seen
Licence
None found

At a glance

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.

  • Works in 7 steps: Prereqs: dotnet --version (need .NET… → Transport: stdio (local CLI/IDE plugins,… → Scaffold: stdio → dotnet new mcpserver… → …
  • Changing an MCP server in the .NET backend (relevant to your agentic pipeline)
  • SKILL.md covers Create, Debug / Test / Publish… and Ours
  • Calls dotnet

What it does

MCP Csharp is an agent skill from 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. Use when building or changing an MCP server in the .NET backend (relevant to your agentic pipeline).

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering MCP servers. It works with Model Context Protocol, C# and .NET. The repository describes itself as: Claude Code harness for .NET developers.

When your agent uses it

  • Changing an MCP server in the .NET backend (relevant to your agentic pipeline)
  • Tasks that involve MCP servers

Example prompts

  • “/mcp-csharp”

Requirements

  • Docker
  • Pre-approved tools (allowed-tools): Read, Glob, Grep, Edit, Write, Bash, mcp__serena__initial_instructions, mcp__serena__get_symbols_overview, mcp__serena__find_symbol, mcp__serena__find_referencing_symbols, mcp__serena__find_declaration, mcp__serena__find_implementations, mcp__serena__search_for_pattern, mcp__serena__get_diagnostics_for_file, mcp__serena__list_dir, mcp__serena__find_file, mcp__serena__create_text_file, mcp__serena__replace_symbol_body, mcp__serena__insert_after_symbol, mcp__serena__insert_before_symbol, mcp__serena__replace_content, mcp__serena__rename_symbol, mcp__serena__safe_delete_symbol

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Prereqs: dotnet --version (need .NET 10+); dotnet new install Microsoft.McpServer.ProjectTemplates.
  2. Transport: stdio (local CLI/IDE plugins, default) vs HTTP (cloud/web, multiple clients, containers).
  3. Scaffold: stdio → dotnet new mcpserver -n ; HTTP → dotnet new web -n + dotnet add package ModelContextProtocol.AspNetCore.
  4. Tools — [McpServerToolType] on the class, [McpServerTool] + [Description] on the method, **a
  5. Prompts/Resources: [McpServerPromptType]/[McpServerPrompt] (return ChatMessage);
  6. Program.cs
  7. Verify: dotnet build / dotnet run.

What it can do on your machine

Read from SKILL.md and the folder at commit c72a3f9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep
    • Edit
    • Write
    • Bash
    • mcp__serena__initial_instructions
    • mcp__serena__get_symbols_overview
    • mcp__serena__find_symbol
    • mcp__serena__find_referencing_symbols

    …and 13 more on the same allowed-tools line.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • dotnet

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

MCP Csharp loads about 1.2k tokens when it runs. Until then it costs about 75 tokens; SKILL.md has 363 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~75
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

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.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Glob, Grep, Edit, Write, Bash, mcp__serena__initial_instructions, mcp__serena__get_symbols_ove

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.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 363 words (~1,180 tokens).

“For exposing tools/capabilities over the Model Context Protocol from the .NET backend (your agentic pipeline on Microsoft Agent Framework is the natural consumer/producer). C# (.cs) edits via Serena.”

— opening of SKILL.md by atherio-danp
name
mcp-csharp
allowed-tools
Read, Glob, Grep, Edit, Write, Bash, mcp__serena__initial_instructions, mcp__serena__get_symbols_overview, mcp__serena__find_symbol, mcp__serena__find_referencing_symbols, mcp__serena__find_declaration, mcp__serena__find_implementations, mcp__serena__search_for_pattern, mcp__serena__get_diagnostics_for_file, mcp__serena__list_dir, mcp__serena__find_file, mcp__serena__create_text_file, mcp__serena__replace_symbol_body, mcp__serena__insert_after_symbol, mcp__serena__insert_before_symbol, mcp__serena__replace_content, mcp__serena__rename_symbol, mcp__serena__safe_delete_symbol

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/mcp-csharp of atherio-danp/cde-dotnetcc.

Open the folder on GitHubat commit c72a3f9

Compare with similar skills

MCP Csharp 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.

MCP Csharp compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
MCP Csharp this skillatherio-danp/cde-dotnetcc109—~1.2kAutomated safety check: NotesNone
Csharp MCP Server GeneratorILoveDotNet/ilovedotnet155—~560Automated safety check: PassCC0-1.0
Dotnet MCP Builderboshi-xixixi/TraeSkill275—~1.7kAutomated safety check: PassMIT
Dotnet MCP Buildergithub/awesome-copilot40k—~2.1kAutomated safety check: PassMIT
MCPmanagedcode/dotnet-skills486—~3.5kAutomated safety check: PassMIT
Agent Frameworkjihadkhawaja/Egroo178—~1.9kAutomated safety check: PassApache-2.0

Similar skills

  • Csharp MCP Server Generator

    ILoveDotNet/ilovedotnet

    Generate a complete MCP server project in C with tools, prompts, and proper configuration

    155 GitHub stars~560 tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Dotnet MCP Builder

    boshi-xixixi/TraeSkill

    Build Model Context Protocol (MCP) servers in C/.NET against the current ModelContextProtocol 1.x NuGet packages.

    275 GitHub stars~1.7k tokensUpdated 4 mo ago
    Agent WorkflowsAuto-check passed
  • Dotnet MCP Builder

    github/awesome-copilot

    Official

    Build Model Context Protocol (MCP) servers in C/.NET against the current ModelContextProtocol 2.x NuGet packages.

    40k GitHub stars~2.1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • MCP

    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.

    486 GitHub stars~3.5k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Agent Framework

    jihadkhawaja/Egroo

    Build, extend, and debug AI agents in Egroo using the Microsoft Agent Framework (C .NET).

    178 GitHub stars~1.9k tokensUpdated 6 mo ago
    AI & LLM EngineeringAuto-check passed
  • Master C/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications.

    40k GitHub starsUsed in 8 repos~6.6k tokens
    Backend & APIsAuto-check passed

More from atherio-danp/cde-dotnetcc

All 13 skills in this repo
  • Microbenchmarking

    atherio-danp/cde-dotnetcc

    Create, run, configure, and interpret BenchmarkDotNet microbenchmarks in the .NET API — measure and compare approaches, runtime configs, or package versions.

    109 GitHub stars~979 tokensUpdated 2 mo ago
    Auto-check: notes
  • Otel Instrumentation

    atherio-danp/cde-dotnetcc

    Add or change OpenTelemetry tracing, metrics, and structured logging in the .NET API (apps/api) — OTLP exporter setup, custom ActivitySource spans, IMeterFactory metrics, log/trace correlation.

    109 GitHub stars~1.3k tokensUpdated 2 mo ago
    Auto-check: notes
  • Dotnet AI Stack

    atherio-danp/cde-dotnetcc

    Choose and wire AI features in the .NET backend — LLM calls, agentic tool-calling/multi-step workflows, RAG/vector search, structured output, streaming.

    109 GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check: notes
  • Dotnet Performance Review

    atherio-danp/cde-dotnetcc

    Scan .NET/C code for performance anti-patterns (async, memory/strings, collections/LINQ, regex, serialization, I/O) with tiered severity, reporting findings without editing.

    109 GitHub stars~1k tokensUpdated 2 mo ago
    Auto-check: notes
  • Efcore Patterns

    atherio-danp/cde-dotnetcc

    Add or change EF Core (Npgsql/PostgreSQL) persistence in the .NET backend — entities, EF configurations, repositories, queries, migrations.

    109 GitHub stars~1k tokensUpdated 2 mo ago
    Auto-check: notes
  • Efcore Query Performance

    atherio-danp/cde-dotnetcc

    Optimize EF Core (Npgsql/PostgreSQL) queries in the .NET API — fix N+1, choose tracking modes, use compiled queries, split queries, and avoid translation traps.

    109 GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check: notes

Categories

Questions about MCP Csharp

What does MCP Csharp do?

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. MCP Csharp is an agent skill from 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.

When should I use MCP Csharp?

MCP Csharp fits situations like: changing an MCP server in the .NET backend (relevant to your agentic pipeline); tasks that involve MCP servers.

How do I install MCP Csharp in Claude Code?

Run `npx skills add atherio-danp/cde-dotnetcc --skill mcp-csharp -a claude-code`. Or copy the skill folder (.claude/skills/mcp-csharp in atherio-danp/cde-dotnetcc) into .claude/skills/mcp-csharp in your project. Claude Code loads it when a task matches its description.

How do I install MCP Csharp in Codex?

Run `npx skills add atherio-danp/cde-dotnetcc --skill mcp-csharp -a codex`. Or copy the skill folder (.claude/skills/mcp-csharp in atherio-danp/cde-dotnetcc) into .agents/skills/mcp-csharp in your project. Codex loads it when a task matches its description.

Can I use MCP Csharp in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add atherio-danp/cde-dotnetcc --skill mcp-csharp -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mcp-csharp, .gemini/skills/mcp-csharp, .github/skills/mcp-csharp and .opencode/skills/mcp-csharp in your project.

What does MCP Csharp need to run?

Going by SKILL.md and its folder, MCP Csharp needs the command-line tools its instructions call (dotnet). Our summary lists: Docker. Its frontmatter pre-approves these tools: Read, Glob, Grep, Edit, Write, Bash, mcp__serena__initial_instructions, mcp__serena__get_symbols_overview, mcp__serena__find_symbol, mcp__serena__find_referencing_symbols, mcp__serena__find_declaration, mcp__serena__find_implementations, mcp__serena__search_for_pattern, mcp__serena__get_diagnostics_for_file, mcp__serena__list_dir, mcp__serena__find_file, mcp__serena__create_text_file, mcp__serena__replace_symbol_body, mcp__serena__insert_after_symbol, mcp__serena__insert_before_symbol, mcp__serena__replace_content, mcp__serena__rename_symbol, mcp__serena__safe_delete_symbol.

Does MCP Csharp access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is MCP Csharp safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does MCP Csharp use?

No licence was found for MCP Csharp or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does MCP Csharp use?

About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to MCP Csharp?

Skills that share tags, products or a category with MCP Csharp: Csharp MCP Server Generator (ILoveDotNet/ilovedotnet, 155 stars), Dotnet MCP Builder (boshi-xixixi/TraeSkill, 275 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.

Who maintains MCP Csharp?

atherio-danp (a GitHub user) maintains it in atherio-danp/cde-dotnetcc, which has 109 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on July 26, 2026.

Source: atherio-danp/cde-dotnetcc on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.