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
git clone https://github.com/MadQ/RoslynMcpTools (52)
roslyn_analyze_regionData flow and control flow for a line range: extract-method inputs and outputs, captures, reachability, exitsroslyn_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 toroslyn_apply_code_fixApply or reject an approved code-fix preview using verified physical writesroslyn_apply_refactoringApply or reject an approved refactoring preview using verified physical writesroslyn_apply_renameApply or reject a previewed renameroslyn_apply_signature_changeApply or reject a previewed signature changeroslyn_build_projectSmart build: Roslyn diagnostics first, MSBuild only if cleanroslyn_change_signatureAdd parameters with non-breaking forwarding overloadroslyn_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 diskroslyn_clean_solutionRemove all build artifactsroslyn_find_callersAll methods that call a named symbol (direct or via interface dispatch)roslyn_find_implementationsAll types implementing an interface or overriding a memberroslyn_find_overloadsAll overloads for a method on a containing type, with full signaturesroslyn_find_referencesEvery reference to a symbol across the solutionroslyn_find_string_literalSearch C# string literals with glob or regex; returns each literal's line and decoded valueroslyn_find_unusedPrivate/internal source symbols with zero direct static referencesroslyn_get_call_graphAll methods invoked within a method body (IOperation tree walk)roslyn_get_diagnosticsCompiler errors and warnings without buildingroslyn_get_file_outlineFile structure (types + member signatures, no bodies)roslyn_get_line_countLine count for one or more filesroslyn_get_member_bodySource of a single method/property/field -- the token saverroslyn_get_project_infoProject metadata: TFM, packages, language version; the evaluated value of any MSBuild property, and where it is setroslyn_get_symbol_definitionJump to where a symbol is declaredroslyn_get_symbol_documentationXML doc comments for any symbolroslyn_get_symbol_infoWhat a name at a location resolves to, with its flow-adjusted type, nullable state, conversions and overloadsroslyn_get_symbols_in_scopeAll symbols accessible at a file locationroslyn_get_triviaWhitespace, comments, formatting trivia (experimental)roslyn_get_type_dependenciesDirect type dependencies from a type declaration and member signaturesroslyn_get_type_hierarchyBase types, interfaces, and derived typesroslyn_get_type_membersAll members of a type with full signatures and doc summariesroslyn_get_usingsUsing directives + implicit global usingsroslyn_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 oneroslyn_infoServer version, PID, uptime, MSBuild discovery, log markers; the default workspace, the workspaces held, and the code-action provider sourcesroslyn_insert_linesInsert lines at a position or anchor patternroslyn_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 filtersroslyn_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 noneroslyn_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 tokenroslyn_preview_refactoringCompute one listed refactoring into a unified diff plus an approval token; names the files it creates or deletesroslyn_preview_renameCompute rename diff + confirmation tokenroslyn_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 clientroslyn_replace_in_codeSemantic C# editing -- replaces syntax nodes by kind, name or position, validates syntaxroslyn_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 memberroslyn_restore_packagesRestore NuGet packagesroslyn_search_filesRegex search across workspace files with pagingroslyn_search_metadataSearch the type and member names of referenced packages and assemblies; signatures, package and version, doc summariesroslyn_semantic_searchContext-aware C# search -- filter by comments, strings, identifiers, xmldocsroslyn_write_fileAtomically write or create a file; returns a backup token for undoSecurity 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
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