About SharpLS.MCP
SharpLS.MCP is an MCP server published by adainrivers in the Blockchain category: mCP server providing C# code navigation tools powered by Roslyn. Exposes definition lookup, references, type hierarchy, diagnostics, rename, and more via the Model Context Protocol. Designed for use with Claude Code and other MCP-compatible clients.
The repository has 5 stars and 0 forks, with the last commit 7 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.
Install
git clone https://github.com/adainrivers/SharpLS.MCPThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (7)
find_definitionFind the definition of a symbol by name in a file
Parameters not published.
find_document_symbolsList all symbols defined in a C# file
Parameters not published.
find_referencesFind all references to a symbol across the workspace
Parameters not published.
find_workspace_symbolsSearch for symbols across the entire workspace
Parameters not published.
get_hoverGet hover documentation and type info for a symbol
Parameters not published.
go_to_implementationFind implementations of an interface or abstract method
Parameters not published.
go_to_type_definitionJump to the type definition of a symbol
Parameters not published.
Ask AI
Ask AI about SharpLS.MCP
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
SharpLS.MCP
MCP server that wraps roslyn-language-server to provide C# code intelligence tools.
Requirements
- .NET 10
roslyn-language-serverinstalled globally:dotnet tool install -g roslyn-language-server --prerelease
Usage
Pass the solution/project path as a CLI argument:
SharpLS.MCP.exe /path/to/MyProject.slnx
Or use load_solution tool at runtime to load/switch solutions.
Claude MCP config
{
"mcpServers": {
"SharpLS": {
"command": "dotnet",
"args": ["run", "--project", "/path/to/SharpLS.MCP", "--", "/path/to/MyProject.slnx"]
}
}
}
Or using a pre-built binary:
{
"mcpServers": {
"SharpLS": {
"command": "/path/to/SharpLS.MCP/bin/Debug/net10.0/SharpLS.MCP.exe",
"args": ["/path/to/MyProject.slnx"]
}
}
}
Environment variables
| Variable | Description |
|---|---|
SHARPLSMCP_TIMEOUT |
LSP request timeout in seconds (default: 60) |
Tools
Navigation
| Tool | Description |
|---|---|
find_definition |
Find the definition of a symbol by name in a file |
find_references |
Find all references to a symbol across the workspace |
get_hover |
Get hover documentation and type info for a symbol |
find_document_symbols |
List all symbols defined in a C# file |
find_workspace_symbols |
Search for symbols across the entire workspace |
go_to_implementation |
Find implementations of an interface or abstract method |
go_to_type_definition |
Jump to the type definition of a symbol |
Hierarchy
| Tool | Description |
|---|---|
incoming_calls |
Find all functions/methods that call the specified symbol |
outgoing_calls |
Find all functions/methods called by the specified symbol |
supertypes |
Find base types and interfaces of a type |
subtypes |
Find derived types and implementations of a type |
type_hierarchy |
Show full inheritance chain from a type up to its root base type |
Editing & Diagnostics
| Tool | Description |
|---|---|
get_diagnostics |
Get compiler errors and warnings for a file without building |
get_workspace_diagnostics |
Get errors and warnings across the entire workspace/solution |
rename_symbol |
Rename a symbol across the workspace and apply changes to disk |
format_document |
Format a file (or line range) using project formatting rules |
Code Actions
| Tool | Description |
|---|---|
get_code_actions |
List available quick fixes and refactorings for a line or range |
apply_code_action |
Apply a code action by title (quick fix, refactoring, etc.) |
IntelliSense
| Tool | Description |
|---|---|
get_completion |
Get code completion suggestions at a symbol position |
get_signature_help |
Get method signature overloads and parameter info |
Lifecycle
| Tool | Description |
|---|---|
load_solution |
Load a solution or project file (.sln/.slnx/.csproj) |
restart_lsp |
Restart the language server |
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.