roslyn-mcp-docs-agents

roslyn-mcp-docs-agents is a cursor rule for Cursor from VuDZ/RoslynMcpServer. It costs 603 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 603 This file is loaded in full into every session.
When invoked 603 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.00603 $0.00603
Opus 5 $0.00302 $0.00302
Sonnet 5 $0.00121 $0.00121
Haiku 4.5 $0.00060 $0.00060

Measured 2d ago against content hash dd53217be3c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-16, 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 2d 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 · 48 lines

How it starts

The opening of the file, as written. The whole thing — 48 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
README «Agent tools by version» + Reference: MCP Tools Human changelog + 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. README.md — «Agent tools by version» (semver row) and Reference: MCP Tools (EN; RU Reference as needed) when the public tool surface changes.
  3. Version in RoslynMcpServer.csproj when shipping tool changes (see roslyn-mcp-version-bump.mdc).

Copy AGENTS.md.sample → app repo AGENTS.mdno 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.1.0+).
  • 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).

Engineering style (this repo)

Base Truth: minimal diffs; no wholesale rewrites. Async I/O; no .Result/.Wait(). Null-check references. Tests: xUnit (+ Moq when mocking). Prefer Options/IOptions for config if adding settings.

Read the full file on GitHub · 48 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. 2d 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 (7 stars, last pushed yesterday), licensed MIT. It adds 603 tokens to every session, about $0.0030 per session on Opus 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.