1. Conduid
  2. Science
  3. RoslynMcp
MCP server · Science

RoslynMcp

Roslyn-powered MCP server for C# code intelligence

61Good

Scored 20 hours ago · breakdown

About RoslynMcp

RoslynMcp is an MCP server published by MadQ in the Science category: roslyn-powered MCP server for C# code intelligence. Conduid read 52 tools from its source: roslyn_analyze_region, roslyn_annotate_source, roslyn_apply_code_fix, roslyn_apply_refactoring, roslyn_apply_rename, roslyn_apply_signature_change and 46 more. No package is published for it, so it installs from a source checkout.

The repository has 24 stars and 6 forks, is licensed MIT, and its last commit was on 2 Dec 2026. The latest release is v0.8.1-beta. It follows v0.8.0-beta, and the 5 most recent releases go back to v0.7.5-alpha. It passes all 5 static checks Conduid ran on the repository. Its topics include ai-coding-assistant, code-intelligence and roslyn.

Install

From source
git clone https://github.com/MadQ/RoslynMcp

Tools (52)

roslyn_analyze_regionData flow and control flow for a line range: extract-method inputs and outputs, captures, reachability, exits
roslyn_annotate_sourceA member's source and, apart from it, what the text does not say: implicit types, values that may be null, the overload a call to the solution's own method resolved to
roslyn_apply_code_fixApply or reject an approved code-fix preview using verified physical writes
roslyn_apply_refactoringApply or reject an approved refactoring preview using verified physical writes
roslyn_apply_renameApply or reject a previewed rename
roslyn_apply_signature_changeApply or reject a previewed signature change
roslyn_build_projectSmart build: Roslyn diagnostics first, MSBuild only if clean
roslyn_change_signatureAdd parameters with non-breaking forwarding overload
roslyn_check_driftWorkspace health probe on three axes: source drift (files changed without the workspace noticing), load health (projects that loaded with no metadata references, with package assemblies missing, never restored, or with an MSBuild failure on their project file), and pending reload (a change not yet applied — the only signal that can account for a brand-new file)
roslyn_check_syntaxValidate a C# snippet for syntax (and optionally semantic) errors without writing to disk
roslyn_clean_solutionRemove all build artifacts
roslyn_find_callersAll methods that call a named symbol (direct or via interface dispatch)
roslyn_find_implementationsAll types implementing an interface or overriding a member
roslyn_find_overloadsAll overloads for a method on a containing type, with full signatures
roslyn_find_referencesEvery reference to a symbol across the solution
roslyn_find_string_literalSearch C# string literals with glob or regex; returns each literal's line and decoded value
roslyn_find_unusedPrivate/internal source symbols with zero direct static references
roslyn_get_call_graphAll methods invoked within a method body (IOperation tree walk)
roslyn_get_diagnosticsCompiler errors and warnings without building
roslyn_get_file_outlineFile structure (types + member signatures, no bodies)
roslyn_get_line_countLine count for one or more files
roslyn_get_member_bodySource of a single method/property/field -- the token saver
roslyn_get_project_infoProject metadata: TFM, packages, language version; the evaluated value of any MSBuild property, and where it is set
roslyn_get_symbol_definitionJump to where a symbol is declared
roslyn_get_symbol_documentationXML doc comments for any symbol
roslyn_get_symbol_infoWhat a name at a location resolves to, with its flow-adjusted type, nullable state, conversions and overloads
roslyn_get_symbols_in_scopeAll symbols accessible at a file location
roslyn_get_triviaWhitespace, comments, formatting trivia (experimental)
roslyn_get_type_dependenciesDirect type dependencies from a type declaration and member signatures
roslyn_get_type_hierarchyBase types, interfaces, and derived types
roslyn_get_type_membersAll members of a type with full signatures and doc summaries
roslyn_get_usingsUsing directives + implicit global usings
roslyn_ignoreThe directories the server stays out of: `list` shows every rule with its source (built-in, config file, command line, `.gitignore`, a linked worktree), `list` with a `path` says whether one directory is hidden and by which rules, and `add` / `remove` save an entry (`generated`, `docs/api`, `samples/*`, `!Packages/Wanted`) to the `ignore` list of `.madq_roslynmcp.json`, in effect at once. For when the user asks to ignore a directory or cannot see one
roslyn_infoServer version, PID, uptime, MSBuild discovery, log markers; the default workspace, the workspaces held, and the code-action provider sources
roslyn_insert_linesInsert lines at a position or anchor pattern
roslyn_list_filesGlob-based file enumeration (fast, no content)
roslyn_list_refactoringsList the refactorings Roslyn offers at a caret or selection (Move type to file, Extract method, Introduce local, Invert if, …)
roslyn_list_typesAll types in the project with namespace/kind filters
roslyn_local_historyBrowse, preview, and restore crash-safe file backups (list/preview/apply)
roslyn_multi_editSeveral edits of mixed kinds, in one file or several, in one call: all positions refer to the files as last read, and all edits are written or none
roslyn_preview_code_fixPreview a code fix for a diagnostic — Roslyn's own fixers, the project's analyzer packages, bundled and configured providers — and return a reviewed approval token
roslyn_preview_refactoringCompute one listed refactoring into a unified diff plus an approval token; names the files it creates or deletes
roslyn_preview_renameCompute rename diff + confirmation token
roslyn_read_fileFile contents as a short JSON header plus the raw, unescaped lines (tracked text documents from the in-memory workspace)
roslyn_reloadUnloads every workspace the server holds, so the next call loads from disk as a freshly started server would — the remedy for a workspace that loaded badly and no reload repaired. The server keeps running, so it works in every client. The server's settings are not read again: for those, restart the server from the client
roslyn_replace_in_codeSemantic C# editing -- replaces syntax nodes by kind, name or position, validates syntax
roslyn_replace_in_fileText-level find-and-replace with regex (any file type); on C# it checks the syntax of the result and can be limited to one member
roslyn_restore_packagesRestore NuGet packages
roslyn_search_filesRegex search across workspace files with paging
roslyn_search_metadataSearch the type and member names of referenced packages and assemblies; signatures, package and version, doc summaries
roslyn_semantic_searchContext-aware C# search -- filter by comments, strings, identifiers, xmldocs
roslyn_write_fileAtomically write or create a file; returns a backup token for undo

Security checks

  • ✓README presentThe repository's README runs to about 2.6K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionScanned 124 source files and found no eval, dynamic Function or shell execution.

1 check has not been run yet.

Releases

v0.8.1-betav0.8.1-beta
v0.8.0-betav0.8.0-beta
v0.7.8-alphav0.7.8-alpha
v0.7.6-alphav0.7.6-alpha
v0.7.5-alphav0.7.5-alpha

README

The repository's README runs to about 2.6K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About RoslynMcp

How do I install RoslynMcp?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is RoslynMcp safe to use with an AI agent?

Its trust score is 61 out of 100 (good). It passes all 5 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is RoslynMcp still maintained?

Yes — the last commit was yesterday. The repository has 24 stars and 6 forks and 39 open issues.

What tools does RoslynMcp provide?

Conduid read 52 tools from the source: roslyn_analyze_region, roslyn_annotate_source, roslyn_apply_code_fix, roslyn_apply_refactoring, roslyn_apply_rename, roslyn_apply_signature_change, roslyn_build_project, roslyn_change_signature and 44 more.

What license is RoslynMcp released under?

The repository declares the MIT license. That applies to the latest release, v0.8.1-beta, as well.