A closer look

Roslyn Workbench MCP

A local MCP server giving coding agents access to Roslyn navigation, analysis and reviewable source changes.

Background

Why I started it

A text search can find a method name without knowing which method a call refers to. Roslyn resolves symbols and references using the project configuration, giving coding agents the information needed to navigate and change C# code.

I wanted coding agents to use the same analysis and refactoring tools as an IDE, with changes I could review and roll back.

The work

What it offers

Navigate by symbol

Explore definitions, references, implementations and relationships using Roslyn rather than text matching.

Discover Code Actions

Find compiler fixes and refactorings available for the selected code and project.

Review source changes

Stage changes, inspect diffs and commit or roll back a transaction explicitly.

Implementation

Engineering choices

01

Use the compiler as the authority

Resolve symbols through Roslyn so that navigation and changes target the intended code.

02

Preview source changes

Inspect code first, then stage and review edits before committing them.

03

Keep the tool local

Analysis runs on the developer’s machine and works with the projects they choose to open.

Current status

Where it stands

Available as a .NET tool. See the documentation for installation and client setup.