Sharplens MCP
UnclaimedRoslyn-powered MCP server for AI-driven C# semantic analysis, refactoring, and code generation
Install
npx -y sharplens-mcpUnclaimed listing
Is this your MCP server?
This listing was auto-indexed from the public record. Claim it to edit the page, set compatibility and unlock growth tools. Takes under two minutes.
Claim this serverTools (40)
add_missing_imports
Compute the usings that fix CS0246/CS0103 (generation-only)
analyze_change_impact
What breaks if changed?
analyze_control_flow
Branching/reachability
analyze_data_flow
Variable assignments and usage
check_type_compatibility
Can A assign to B?
diff_api_surface
Public-API breaking-change report vs a git ref
find_attribute_usages
Find types/members by attribute
find_callers
Impact analysis - who calls this?
find_circular_dependencies
Project and namespace cycle detection
find_dead_branches
Unreachable basic blocks per method (real CFG, not heuristics)
find_implementations
Interface/abstract implementations
find_path_between
Reachability + the connecting call path(s) between two methods; follows dispatch, with barriers and a checkpoint
find_references
All references; each classified read/write/invocation/cast/typeof/nameof/attribute; optional kind filter
find_similar_code
Structural similarity search (token-shingle fingerprints)
find_unused_code
Dead code detection
get_attributes
List attributes on a symbol
get_base_types
Full inheritance chain
get_call_graph
Multi-hop callers/callees graph with depth bound + cycle detection
get_complexity_metrics
Cyclomatic, nesting, LOC, cognitive
get_containing_member
Enclosing symbol at position
get_derived_types
Find all subclasses
get_diagnostics
Compiler errors/warnings + configured analyzer findings (StyleCop, Roslynator, NetAnalyzers); matches CI
get_documentation
Full XML docs for a symbol with <inheritdoc> expanded
get_exception_flow
Which exceptions can escape a method, and where they're caught
get_extension_methods
Extensions applying to a type — classic and C# 14 blocks
get_external_type_info
Inspect NuGet/BCL/external assembly types — members + XML docs
get_method_overloads
All overloads of a method
get_method_signature
Detailed signature by name
get_outgoing_calls
What does this method call?
get_super_method
Navigate to the base member / interface members a member implements
get_symbol_info
Semantic info at position
get_type_hierarchy
Inheritance chain
get_type_members
All members by type name
get_type_members_batch
Multiple types in one call
go_to_definition
Jump to symbol definition
remove_unused_code
Compute dead-code removals + newly unused usings (generation-only)
resolve_stack_trace
Map a pasted stack trace to file/line/symbol, mangling undone
search_symbols
Glob pattern search (Handler, Get)
semantic_query
Multi-filter search (async, public, etc.)
validate_code
Compile check without writing