roslyn-mcp-docs-agents

roslyn-mcp-docs-agents is a cursor rule for Cursor from VuDZ/RoslynMcpServer. It costs 707 tokens per session, scanned A, original, MIT.

Documentation and agent-contribution rules for a C# MCP server. They define which files describe the tools, which files describe session policy, and when those files must be kept in sync.

In plain words
What is it for?
Use them when changing MCP tools or agent-visible behaviour, updating README files, maintaining AGENTS.md templates, documenting PowerShell or secrets, or preparing a tool release.
Why use it?
They prevent tool details from being copied into the wrong guide and keep public documentation, agent instructions, and version information consistent after changes.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions AGENTS.md.

Good fit Use them when changing MCP tools or agent-visible behaviour, updating README files, maintaining AGENTS.md templates, documenting PowerShell or secrets, or preparing a tool release.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/vudz/roslynmcpserver/roslyn-mcp-docs-agents
Install

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.

Clone the repo
git clone --depth 1 https://github.com/VuDZ/RoslynMcpServer

Made for: Cursor.

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 roslyn-mcp-docs-agents

README.md
[![agentmods](https://agentmods.dev/badge/rules/vudz/roslynmcpserver/roslyn-mcp-docs-agents/github.svg)](https://agentmods.dev/rules/vudz/roslynmcpserver/roslyn-mcp-docs-agents)
Your own site
<a href="https://agentmods.dev/rules/vudz/roslynmcpserver/roslyn-mcp-docs-agents"><img src="https://agentmods.dev/badge/rules/vudz/roslynmcpserver/roslyn-mcp-docs-agents/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 roslyn-mcp-docs-agents

Your own site · 80×15
<a href="https://agentmods.dev/rules/vudz/roslynmcpserver/roslyn-mcp-docs-agents"><img src="https://agentmods.dev/badge/rules/vudz/roslynmcpserver/roslyn-mcp-docs-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 707 This file is loaded in full into every session.
When invoked 707 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.00707 $0.00707
Opus 5.5 $0.00283 $0.00283
Sonnet 5.5 $0.00141 $0.00141
Haiku 4.5 $0.00071 $0.00071

Measured 1mo ago against content hash 25496edc3a6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

roslyn-mcp-docs-agents 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 1mo 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.

.cursor/rules/roslyn-mcp-docs-agents.mdc · 51 lines

How it starts

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

Docs & agent conventions

Layers

Layer Role
MCP tool [Description] Per-tool API: params, caps, anti-patterns
AGENTS.md.sample Session policy only (when / MCP vs host / bans) — copy to app repos as AGENTS.md
CHANGELOG.md Human changelog of agent-visible tools and behavior
README Reference: MCP Tools Tool catalog
README Agent Initialization Short pointer to sample — not a full copy of AGENTS

Keep in sync (when tools change)

When adding/changing MCP tools, Descriptions, or agent-visible behavior, update together:

  1. AGENTS.md.sample — only if session policy changes (init, bans, hybrid search, edit/secrets). Do not paste tool params/caps into AGENTS.
  2. CHANGELOG.md — semver row when agent-visible behavior changes. README.md — Reference: MCP Tools (EN; RU Reference as needed) when the public tool surface changes. The README keeps a link to the changelog.
  3. Version in RoslynMcpServer.csproj when shipping tool changes (see roslyn-mcp-version-bump.mdc).

Copy AGENTS.md.sample → app repo AGENTS.md — no machine-specific paths.

Agent workflow (summary)

  • Quick read-only: load_workspace → symbol tools / Grep.
  • Edit/build/test/run: full init → MCP dotnet_* only (no shell dotnet build/test).
  • After MCP rebuild: get_mcp_server_info expect current version (1.3.32+; source of truth — RoslynMcpServer.csproj).
  • Windows PowerShell 5.x: use ; between commands, not &&.
  • Secrets: never PAT/passwords in chat/commits; env / user-secrets; report configured yes/no only.
  • IDE edits: host edit/write; headless: MCP apply_patch / AST tools.
  • Rename: previewOnly=true first.

App repos should document

Executable .csproj for run_dotnet_run, sample args, global.json pin, integration notes (TFS vs Azure) in README or .cursor/rules — not in portable AGENTS alone.

Spec archive

Epoch plans and review packages: see roslyn-mcp-docs-lifecycle.mdc (start-of-work junk check; remind to archive when the series is closed).

Read the full file on GitHub · 51 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. 1mo ago Changed · +1 lines · +19 tokens per session 25496edc3a6d
  2. 1mo ago Changed · +2 lines · +71 tokens per session deeaafa385e2
  3. 1mo ago Changed 9c398efbb682
  4. 1mo ago Changed 68b5defc786b
  5. 1mo ago Changed · +14 tokens per session 8459a0c67d84
  6. 1mo ago First seen · 48 lines · 603 tokens per session scan A dd53217be3c2

Subscribe to this mod's changes

roslyn-mcp-docs-agents is a cursor rule published in the GitHub repository VuDZ/RoslynMcpServer (8 stars, last pushed today), licensed MIT. It adds 707 tokens to every session, about $0.0028 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-09-14.