Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Arasz/ai-raccoon --skill dotnet-mcp-servergit clone --depth 1 https://github.com/Arasz/ai-raccoonWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-mcp-server)<a href="https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-mcp-server"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-mcp-server/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-mcp-server"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-mcp-server.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00106 | $0.04935 |
| Opus 5.5 | $0.00042 | $0.01974 |
| Sonnet 5.5 | $0.00021 | $0.00987 |
| Haiku 4.5 | $0.00011 | $0.00494 |
Grade A, and why
dotnet-mcp-server scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 277 lines — stays where its author put it; the contents beside it link to each section on GitHub.
dotnet-mcp-server
Implement MCP servers in .NET using the ModelContextProtocol NuGet package (SDK v1.4+).
Prerequisites
- .NET 10+ (the SDK targets
net10.0but works onnet8.0+) - NuGet packages:
ModelContextProtocol,Microsoft.Extensions.Hosting - For HTTP-calling tools:
Microsoft.Extensions.Http
1. Project setup
<!-- .csproj -->
<PropertyGroup>
<OutputType>Exe</OutputType>
<PackAsTool>true</PackAsTool>
<PackageType>McpServer</PackageType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" />
<PackageReference Include="Microsoft.Extensions.Http" /> <!-- for REST-calling tools -->
<PackageReference Include="ModelContextProtocol" />
</ItemGroup>
<!-- Let tests access internal tool classes -->
<ItemGroup>
<InternalsVisibleTo Include="YourProject.Mcp.Tests" />
</ItemGroup>
2. Tool class pattern
Tools are plain C# classes annotated with [McpServerTool] and [Description]. The MCP SDK discovers them via DI.
using System.ComponentModel;
using System.Net.Http.Json;
using System.Text.Json;
using ModelContextProtocol.Server;
namespace YourProject.Mcp.Tools;
internal sealed class MyTools(HttpClient httpClient)
{
private static readonly JsonSerializerOptions JsonOptions = new()
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
WriteIndented = true
};
[McpServerTool]
[Description("Does something useful with the given input.")]
public async Task<string> DoSomething(
[Description("The resource ID.")] string resourceId,
[Description("Amount value.")] decimal amount,
[Description("Optional period.")] string period = "Monthly")
{
var request = new { Amount = amount, Period = period };
var response = await httpClient.PostAsJsonAsync(
$"/api/resources/{resourceId}/action", request, JsonOptions);
response.EnsureSuccessStatusCode();
return await response.Content.ReadAsStringAsync();
}
}
What ships with it
19 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/access-control.md 3.0 KB
- references/adding-tools.md 2.8 KB
- references/cli-args-for-stdio-mcp.md 6.6 KB
- references/di-host-pitfalls.md 3.6 KB
- references/docs-foldin-checklist.md 808 B
- references/e2e-http-transport-testing.md 6.3 KB
- references/http-transport.md 9.7 KB
- references/managed-sqlite-store-patterns.md 6.9 KB
- references/mcp-csharp-sdk-2.0-apis.md 7.1 KB
- references/sdk-2-apis.md 8.1 KB
- references/serve-mode-client-contract-and-di.md 3.1 KB
- references/serve-mode-probe-attach.md 3.3 KB
- references/serve-probe-attach-verified.md 4.1 KB
- references/stdio-host-port-bind.md 6.5 KB
- references/testing-pattern.md 3.0 KB
- references/tool-registration-surface-test.md 3.0 KB
- references/web-sdk-packaging-pitfalls.md 5.6 KB
- scripts/mcp-stdio-probe.py 3.4 KB runs code
- templates/MockHttpHandler.cs 1.7 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 277 lines · 106 tokens per session scan A 8a9a60128825
dotnet-mcp-server is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 106 tokens to every session and 4,935 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-05.
dotnet-mcp-server compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dotnet-mcp-serverArasz/ai-raccoon | Skill | 7 | today | MIT | A | 106 | Claude Code, Codex |
| http-client-migrationGen-Verse/PAST-Bench | Skill | 40 | 4mo ago | Apache-2.0 | A | 14 | Claude Code, Codex |
| azure-eventgrid-dotnetrootcastleco/rei-skills | Skill | 11 | 5d ago | none | A | 80 | Claude Code, Codex |
| Cursor rules for Aspnet AbpAmariahAK/atlarix-skills | Skill | 0 | 2mo ago | Apache-2.0 | A | 7 | Claude Code, Codex |
| C# PatternsAmariahAK/atlarix-skills | Skill | 0 | 2mo ago | Apache-2.0 | A | 3 | Claude Code, Codex |
| .NET PatternsAmariahAK/atlarix-skills | Skill | 0 | 2mo ago | Apache-2.0 | A | 2 | Claude Code, Codex |
| agui-dotnet-streaming-chatag-ui-protocol/ag-ui | Skill | 23k | yesterday | MIT | A | 223 | Claude Code |