1. Conduid
  2. Data
  3. pzalutski-pixel/sharplens-mcp
MCP server · Data

pzalutski-pixel/sharplens-mcp

Roslyn-powered MCP server for AI-driven C# semantic analysis, refactoring, and code generation

55Fair

Scored 22 hours ago · breakdown

About pzalutski-pixel/sharplens-mcp

pzalutski-pixel/sharplens-mcp is an MCP server published by pzalutski-pixel in the Data category: roslyn-powered MCP server for AI-driven C# semantic analysis, refactoring, and code generation. Conduid read 92 tools from its source: add_missing_imports, add_null_checks, analyze_change_impact, analyze_control_flow, analyze_data_flow, analyze_method and 86 more. No package is published for it, so it installs from a source checkout.

The repository has 41 stars and 8 forks, is licensed MIT, and its last commit was on 17 Oct 2026. The latest release is v1.6.4 (17 Oct 2026): Patch release — cross-project test coverage, find_tests speed and test detection, plus fixes across every tool so its answers and edits can be trusted. It follows v1.6.3 (16 Aug 2026), and the 5 most recent releases go back to v1.6.0 (3 Jul 2026). It passes 3 of the 6 static checks Conduid ran on the repository; it does not pass Dependencies pinned, No dynamic code execution and Scoped permissions. Its topics include code-analysis, devtools, semantic-analysis and roslyn.

Install

From source
git clone https://github.com/pzalutski-pixel/sharplens-mcp

Tools (92)

add_missing_importsCompute the usings that fix CS0246/CS0103 (generation-only)
add_null_checksGenerate ArgumentNullException guards
analyze_change_impactWhat breaks if changed?
analyze_control_flowBranching/reachability
analyze_data_flowVariable assignments and usage
analyze_methodSignature + callers + outgoing calls + location
apply_code_action_by_titleApply any refactoring by title
apply_code_fixApply a specific code fix
change_signatureAdd/remove/reorder parameters
check_architectureEnforce namespace/project dependency rules over the type graph
check_type_compatibilityCan A assign to B?
dependency_graphProject dependencies
diff_api_surfacePublic-API breaking-change report vs a git ref
encapsulate_fieldField to property
extract_interfaceGenerate interface from class
extract_methodExtract with data flow analysis
extract_variableExtract expression to variable
find_async_issuesasync void / blocking-on-async / unforwarded CancellationToken
find_attribute_usagesFind types/members by attribute
find_callersImpact analysis - who calls this?
find_catch_blocksWhere an exception type is caught (optionally via a base clause)
find_circular_dependenciesProject and namespace cycle detection
find_dead_branchesUnreachable basic blocks per method (real CFG, not heuristics)
find_god_objectsDetect over-coupled types via efferent + afferent coupling + member-count thresholds
find_implementationsInterface/abstract implementations
find_interceptorsSurface [InterceptsLocation] call rerouting, generated code included
find_naming_violationsNaming audit honoring .editorconfig rules, with conventional defaults
find_path_betweenReachability + the connecting call path(s) between two methods; follows dispatch, with barriers and a checkpoint
find_pattern_usagesWhere a type appears in is/as/pattern matches
find_referencesAll references; each classified read/write/invocation/cast/typeof/nameof/attribute; optional `kind` filter
find_reflection_usageDetect reflection/dynamic usage
find_similar_codeStructural similarity search (token-shingle fingerprints)
find_testsWhich tests cover a symbol — the inverse of find_untested_code
find_throw_sitesWhere an exception type is thrown (optionally derived)
find_type_instantiationsWhere a type is constructed (`new T`)
find_untested_codeFind public surface no test reaches — tests detected as xUnit, NUnit, MSTest, TUnit, Reqnroll and SpecFlow discover them, with setup, fixtures and step bindings
find_unused_codeDead code detection
find_unused_dependenciesPackageReferences/ProjectReferences the compiler never needs
fix_allCompute the fix for every instance of a diagnostic id (generation-only)
format_document_batchBatch format files in project
generate_constructorFrom fields/properties
generate_equality_membersEquals/GetHashCode/operators
generate_test_stubCompilable test skeleton for a method (framework auto-detected)
get_attributesList attributes on a symbol
get_base_typesFull inheritance chain
get_call_graphMulti-hop callers/callees graph with depth bound + cycle detection
get_code_actions_at_positionAll Roslyn refactorings at position
get_code_fixesAvailable fixes for a diagnostic
get_complexity_metricsCyclomatic, nesting, LOC, cognitive
get_containing_memberEnclosing symbol at position
get_derived_typesFind all subclasses
get_di_registrationsScan DI service registrations
get_diagnosticsCompiler errors/warnings + configured analyzer findings (StyleCop, Roslynator, NetAnalyzers); matches CI
get_documentationFull XML docs for a symbol with `<inheritdoc>` expanded
get_exception_flowWhich exceptions can escape a method, and where they're caught
get_extension_methodsExtensions applying to a type — classic and C# 14 blocks
get_external_type_infoInspect NuGet/BCL/external assembly types — members + XML docs
get_file_overviewFile summary with diagnostics
get_generated_codeView generated source code
get_instantiation_optionsHow to create a type
get_method_overloadsAll overloads of a method
get_method_signatureDetailed signature by name
get_method_sourceSource code by name
get_method_source_batchMultiple method sources in one call
get_missing_membersUnimplemented interface/abstract members
get_nuget_dependenciesNuGet package listing per project
get_outgoing_callsWhat does this method call?
get_project_healthComposite audit dashboard: diagnostics + unused + coupling + coverage per project
get_project_structureSolution structure
get_source_generatorsList active source generators
get_super_methodNavigate to the base member / interface members a member implements
get_symbol_infoSemantic info at position
get_type_hierarchyInheritance chain
get_type_membersAll members by type name
get_type_members_batchMultiple types in one call
get_type_overviewFull type info in one call
go_to_definitionJump to symbol definition
health_checkServer status + load fidelity (`partial` flag, declared-vs-loaded projects, `loadFailures`, `loadWarnings`, `lastLoadFailure`) — check without reloading
implement_missing_membersGenerate interface stubs
inline_variableInline temp variable
load_solutionLoad .sln/.slnx/.slnf; reports partial loads (`partial` + `loadFailures`: dropped projects, failed restores, projects loaded without references) and MSBuild warnings (`loadWarnings`) separately
move_type_to_fileCompute the contents to move a type into its own file (generation-only)
organize_usingsSort and remove unused
organize_usings_batchBatch organize multiple files
remove_unused_codeCompute dead-code removals + newly unused usings (generation-only)
rename_symbolSafe rename across solution
resolve_stack_traceMap a pasted stack trace to file/line/symbol, mangling undone
search_symbolsGlob pattern search (`*Handler`, `Get*`)
semantic_queryMulti-filter search (async, public, etc.)
split_typeCompute a partial-class split for selected members (generation-only)
sync_documentsSync file changes into loaded solution
validate_codeCompile check without writing

Security checks

Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 2.8K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
  • !No dynamic code executionScanned 180 source files and found 4 calls to eval or shell execution, in npm/bin/sharplens-mcp.js:8, npm/bin/sharplens-mcp.js:20 and npm/bin/sharplens-mcp.js:38 among others. Review how tool inputs reach them before granting credentials.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
None found in the source
Starts other programs
6 callsnpm/bin/sharplens-mcp.js:8, npm/bin/sharplens-mcp.js:20, npm/bin/sharplens-mcp.js:38
Outbound network calls
No outbound network calls
Writes or deletes files
3 callssrc/SourceFileIO.cs:34, src/SourceFileIO.cs:35, src/SourceFileWorkspace.cs:90
Lockfile
None in the repository

Pattern matches on the source text of 180 files: places to read, not proof of what the code does at run time.

Releases

v1.6.4v1.6.4 · 17 Oct 2026Patch release — cross-project test coverage, `find_tests` speed and test detection, plus fixes across every tool so its answers and edits can be trusted. Fixed Coverage across projects — `find_tests` and `find_untested_code` find tests in…
v1.6.3v1.6.3 · 16 Aug 2026Patch release — fixes a silent partial-load blind spot in `load_solution`. Fixed `load_solution` no longer silently drops projects it can't load. When MSBuild can't resolve a `ProjectReference` (or a project fails to load for any reason),…
v1.6.2v1.6.2 · 8 Aug 2026Adds `find_path_between` — point-to-point reachability over the call graph. Added `find_path_between` — can any source method reach any target method, and through what call chain? A bounded bidirectional search that fills the gap between…
v1.6.1v1.6.1 · 6 Aug 2026Patch release — two bug fixes reported against 1.6.0. Fixed `get_missing_members` no longer reports an inherited abstract member as missing when an intermediate abstract base already overrides it. Satisfaction is resolved by walking the…
v1.6.0SharpLensMcp 1.6.0 · 3 Jul 2026MCP server for .NET/C# — 91 semantic analysis, navigation, refactoring, and code-generation tools built on Microsoft Roslyn 5.3. Added — 24 new tools (67 → 91) `move_type_to_file`, `split_type` — move a type into its own file, or split…

README

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

Read full README
Questions

About pzalutski-pixel/sharplens-mcp

How do I install pzalutski-pixel/sharplens-mcp?

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

Is pzalutski-pixel/sharplens-mcp safe to use with an AI agent?

Its trust score is 55 out of 100 (fair). It passes 3 of the 6 static checks Conduid ran on the repository; it does not pass Dependencies pinned, No dynamic code execution and Scoped permissions. Conduid's scan of 180 source files found that it starts other programs (6 calls) and writes or deletes files (3 calls). It has no ConduID identity yet, so agent calls to it are not receipted.

Is pzalutski-pixel/sharplens-mcp still maintained?

Yes — the latest release is v1.6.4 (17 Oct 2026), and the last commit was a month ago. The repository has 41 stars and 2 open issues.

What tools does pzalutski-pixel/sharplens-mcp provide?

Conduid read 92 tools from the source: add_missing_imports, add_null_checks, analyze_change_impact, analyze_control_flow, analyze_data_flow, analyze_method, apply_code_action_by_title, apply_code_fix and 84 more.

What license is pzalutski-pixel/sharplens-mcp released under?

The repository declares the MIT license. That applies to the latest release, v1.6.4, as well.