Sharplens MCP logo

Sharplens MCP

未认领

作者:pzalutski-pixel

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

aiclaude-codecode-analysiscsharpdotnetmcproslynsemantic-analysis

01 / 选择客户端

02 / 连接前的准备

认证方式尚未指定。连接前请查看项目说明。

安装项目所需的运行环境,并确保客户端能够使用它。

项目说明

输入项目说明中的变量名,用逗号分隔。只输入名称,不要输入密钥值。

03 / 添加配置

来源:根据公开安装说明生成

claude mcp add --transport stdio 'sharplens-mcp' -- 'npx' '-y' 'sharplens-mcp'

替换占位符后在终端中运行。

04 / 在客户端中确认

打开客户端的 MCP 设置,确认服务器已连接并列出工具。复制配置不代表连接成功。

更多AI & ML服务器

浏览完整目录

未认领列表

这个 MCP 服务器是你的吗?

此列表根据公开信息自动生成。认领后,你可以编辑页面、设置兼容性并解锁增长工具。全程不超两分钟。

认领此服务器

安全概况

已认领和已认证的服务器每周接受一次静态扫描,显示代码能触及的范围(外部服务、环境变量、shell 命令、代理配置目录)以及带有已知公告的依赖。认领此列表即可获得。 安全概况的工作原理

40 个工具中显示 40 个

文档中列出的工具 (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

工具变更历史

比较相同配置的完整检查。只列出工具,未调用工具。此处不测量输入结构的变化。

尚无完整工具检查。