roslyn-mcp-version-bump

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

A project rule for a Roslyn MCP server, a tool that lets agents work with .NET code. It tells the agent when and how to increase the server's patch version after a successful build or test.

In plain words
What is it for?
Use it when changing, building, testing, publishing, or reloading the Roslyn MCP server.
Why use it?
It prevents code or tool changes from being shipped under an old version number. It also keeps related version references and documentation in sync.

Cursor rule for Cursor

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

Good fit Use it when changing, building, testing, publishing, or reloading the Roslyn MCP server.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/vudz/roslynmcpserver/roslyn-mcp-version-bump
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-version-bump

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/vudz/roslynmcpserver/roslyn-mcp-version-bump"><img src="https://agentmods.dev/badge/rules/vudz/roslynmcpserver/roslyn-mcp-version-bump.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 514 This file is loaded in full into every session.
When invoked 514 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.00514 $0.00514
Opus 5 $0.00257 $0.00257
Sonnet 5 $0.00103 $0.00103
Haiku 4.5 $0.00051 $0.00051

Measured 2d ago against content hash caf2ed622efe, 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-version-bump 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-version-bump.mdc · 35 lines

What it actually says

Auto version bump (this MCP server)

When changing RoslynMcpServer itself and verifying with this same MCP (build/test/run via MCP tools, then use the new binary):

When to bump

After a successful run_dotnet_build / dotnet test (and before or with dotnet publish + MCP reload):

  1. Bump patch in RoslynMcpServer.csproj: Version, AssemblyVersion, FileVersion together (e.g. 1.0.141.0.15, 1.0.14.01.0.15.0).
  2. Do not leave shippable behavior changes at the old version — agents check get_mcp_server_info against the number in csproj/docs.
  3. Skip bump only for pure docs/typos/rules with no code or tool-behavior change.

SemVer in this repo

  • Patch (1.0.x): fixes, tool UX, parsers, path resolve, logging — default for almost every ship.
  • Minor (1.x.0): new MCP tools or clearly additive public capabilities.
  • Do not bump PackageVersion (0.1.0-beta) unless packaging intentionally changes.

After bump

  1. Update README «Agent tools by version» (+ RU pointer) when user-visible tools/behavior change.
  2. Sync AGENTS.md.sample / expected version hints (get_mcp_server_info → new version).
  3. Publish (publish-and-verify.ps1 or dotnet publish … -r win-x64), reload MCP host, confirm get_mcp_server_info shows the new version.

Dogfooding

Prefer MCP run_dotnet_build / run_dotnet_test / run_dotnet_run on this repo’s workspace — same as app repos. Shell dotnet only if MCP is unavailable or for publish/reload scripts that are outside tool coverage.

publish-and-verify.ps1 stops leftover RoslynMcpServer.exe under this repo/publish (Cursor often keeps MCP alive after disconnect and locks publish DLLs). Pass -SkipKill to disable. Then reload MCP and confirm get_mcp_server_info.

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 · 35 lines · 514 tokens per session scan A caf2ed622efe

Subscribe to this mod's changes

roslyn-mcp-version-bump is a cursor rule published in the GitHub repository VuDZ/RoslynMcpServer (7 stars, last pushed yesterday), licensed MIT. It adds 514 tokens to every session, about $0.0026 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.