MCP-Plugin-dotnet: Instructions file for Codex

AGENTS.md

MCP-Plugin-dotnet AGENTS.md is an instructions file for Codex, OpenCode from IvanMurzak/MCP-Plugin-dotnet. It costs 613 tokens per session, scanned A, original, Apache-2.0.

A set of repository instructions for a .NET plugin made of three NuGet libraries. It explains how to build and test the code, where files belong, and rules for public APIs, namespaces, versions, and license headers.

In plain words
What is it for?
Use it when changing the .NET client, server bridge, shared library, tests, version, or public API. NuGet is the package system used to distribute .NET libraries.
Why use it?
It reduces mistakes in a multi-package codebase where changes to shared APIs can affect Unity integrations and other users.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is IvanMurzak/MCP-Plugin-dotnet's own configuration. It tells Codex and OpenCode how to work on MCP-Plugin-dotnet itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything MCP-Plugin-dotnet configures →

Reuse

Borrowing it

Nothing to install: this file belongs to IvanMurzak/MCP-Plugin-dotnet. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/IvanMurzak/MCP-Plugin-dotnet/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/IvanMurzak/MCP-Plugin-dotnet

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for MCP-Plugin-dotnet AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ivanmurzak/mcp-plugin-dotnet/agents-md/github.svg)](https://agentmods.dev/instructions/ivanmurzak/mcp-plugin-dotnet/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/ivanmurzak/mcp-plugin-dotnet/agents-md"><img src="https://agentmods.dev/badge/instructions/ivanmurzak/mcp-plugin-dotnet/agents-md/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.

agentmods 80×15 button for MCP-Plugin-dotnet AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ivanmurzak/mcp-plugin-dotnet/agents-md"><img src="https://agentmods.dev/badge/instructions/ivanmurzak/mcp-plugin-dotnet/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 613 This file is loaded in full into every session.
When invoked 613 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00613 $0.00613
Opus 5.5 $0.00245 $0.00245
Sonnet 5.5 $0.00123 $0.00123
Haiku 4.5 $0.00061 $0.00061

Measured 11d ago against content hash 2e5ab7727d13, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

MCP-Plugin-dotnet AGENTS.md 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 11d ago.

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.

AGENTS.md · 42 lines

How it starts

The opening of the file, as written. The whole thing — 42 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

MCP Plugin for .NET — a SignalR bridge that lets heavy .NET apps (Unity, WPF, game servers) expose MCP tools/prompts/resources to AI clients without being spawned as subprocesses. Three NuGet packages: McpPlugin (client), McpPlugin.Server (bridge), McpPlugin.Common (shared).

Build / run

dotnet build McpPlugin.sln
dotnet test
cd DemoWebApp && dotnet run port=11111 client-transport=stdio

Critical invariants

  • ALL .cs files must start with the ASCII art Apache 2.0 license header — copy from any existing file.
  • Namespaces are reverse-domain com.IvanMurzak.McpPlugin.* — not standard C# convention.
  • Version is single-sourced in McpPlugin/McpPlugin.csproj; use commands/bump-version.ps1 to change it.
  • Public API changes here cascade to Unity-MCP and downstream extensions — call them out to the owner in the PR.

Layout

  • McpPlugin/, McpPlugin.Server/, McpPlugin.Common/ — the three packed libraries; source under src/<area>/.
  • McpPlugin.Tests/, McpPlugin.Server.Tests/ — xUnit tests for the client and the server; put a test in the project of the code it covers.
  • McpPlugin.Tests.LockHarness/, McpPlugin.Tests.RefreshHarness/ — helper processes used by tests.
  • McpPlugin.NullEngine/ — engine-free test host (see its README).
  • DemoWebApp/, DemoConsoleApp/ — runnable demos.
  • commands/ — maintainer PowerShell (version bump, ReflectorNet update, release notes).
  • scripts/ + tests/chain-fixtures/ — chain-testing fixture tooling (docs/chain-fixtures.md).
  • docs/agents/ — agent reference docs (below); other docs/ — design notes and migration guides.
  • .specify/, specs/ — spec-kit constitution, templates and feature specs.

Find detail in

  • docs/agents/architecture.md — Bridge architecture, packages, SignalR hub endpoint
  • docs/agents/patterns.md — [AiToolType] / [AiTool] examples (and the [McpPlugin*] obsolete-alias compatibility note), builder & server registration
  • docs/agents/style.md — Code style mandates (LangVersion, R3, NLog, DI, disposal)
  • docs/agents/testing.md — xUnit + Shouldly + Moq conventions, filtered test commands
  • docs/agents/release.md — Versioning, bump-version, ReflectorNet updates, CI release flow

Read the full file on GitHub · 42 lines

Changes

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.

  1. 11d ago First seen · 42 lines · 613 tokens per session scan A 2e5ab7727d13

Subscribe to this mod's changes

MCP-Plugin-dotnet AGENTS.md is an instructions file published in the GitHub repository IvanMurzak/MCP-Plugin-dotnet (20 stars, last pushed today), licensed Apache-2.0. It adds 613 tokens to every session, about $0.0025 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-10-12.