Sharptools

v1.0.0Developer Toolsstable

A suite of MCP tools for AIs to analyze and modify C# solutions with high signal, Roslyn powered context.

csharpdotneteditoridemcp
Share:
198
Stars
0
Downloads
0
Weekly
0/5

What is Sharptools?

Sharptools is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to suite of mcp tools for ais to analyze and modify c# solutions with high signal, roslyn powered context.

A suite of MCP tools for AIs to analyze and modify C# solutions with high signal, Roslyn powered context.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A suite of MCP tools for AIs to analyze and modify C# soluti

Use Cases

Analyze and modify C# solutions with Roslyn-powered code context.
Provide AI assistants with deep understanding of .NET projects.
Perform semantic code analysis on C# codebases.
kooshi

Maintainer

LicenseMIT
Languagec#
Versionv1.0.0
UpdatedMay 18, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx sharptoolsmcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Sharptools

SharpTools MCP provides AI assistants with deep, Roslyn-powered understanding of C# solutions — enabling semantic code analysis, precise symbol navigation, and safe code modification without relying on text search or file diffs. It exposes tools for loading solutions, inspecting members and types, finding all references to a symbol, analyzing cyclomatic complexity, and performing structured edits like renaming symbols, moving members, and managing using directives. .NET developers use it to give their AI assistant the same rich code intelligence that an IDE provides, making refactoring and architecture analysis far more accurate.

Prerequisites

  • .NET 8 SDK or later installed (dotnet command must be on your PATH)
  • The .NET SDK version matching your target solution (e.g. .NET 6/7/8 depending on your project's TargetFramework)
  • The SharpTools repository cloned and built locally
  • An MCP-compatible client such as Claude Desktop, VS Code Copilot, or Claude Code
1

Clone the SharpToolsMCP repository

Clone the repository to your local machine. SharpTools does not publish a pre-built binary so you must build it from source.

git clone https://github.com/kooshi/SharpToolsMCP.git
cd SharpToolsMCP
2

Build the solution

Build the entire SharpTools solution using the dotnet CLI. This compiles both the SSE server and the stdio server binaries.

dotnet build SharpTools.sln
3

Configure as a stdio MCP server

Add SharpTools to your MCP client configuration using the stdio server binary. Replace /path/to/SharpTools.StdioServer with the actual path to the built binary in your repository's output directory.

{
  "mcpServers": {
    "SharpTools": {
      "type": "stdio",
      "command": "/path/to/SharpTools.StdioServer",
      "args": [
        "--log-directory", "/var/log/sharptools/",
        "--log-level", "Information",
        "--load-solution", "/path/to/YourSolution.sln"
      ]
    }
  }
}
4

Alternative: run as SSE server

For clients that support SSE transport, run the SSE server on a local port. This is useful for web-based MCP clients or when you want to share the server across multiple client connections.

cd SharpTools.SseServer
dotnet run -- --port 3005 --log-file ./logs/mcp-sse-server.log --log-level Debug --load-solution /path/to/YourSolution.sln
5

Load a solution and start analyzing

If you did not pass --load-solution at startup, use the LoadSolution tool from your MCP client to load a .sln file. Then use GetMembers, ViewDefinition, FindReferences, and other tools to explore your codebase.

Sharptools Examples

Client configuration

VS Code Copilot / Claude Desktop stdio configuration pointing to the built SharpTools.StdioServer binary with a solution pre-loaded.

{
  "mcpServers": {
    "SharpTools": {
      "type": "stdio",
      "command": "/Users/you/SharpToolsMCP/SharpTools.StdioServer/bin/Debug/net8.0/SharpTools.StdioServer",
      "args": [
        "--log-directory", "/tmp/sharptools-logs/",
        "--log-level", "Information",
        "--load-solution", "/Users/you/projects/MyApp/MyApp.sln"
      ]
    }
  }
}

Prompts to try

Example prompts that leverage SharpTools' Roslyn-powered code intelligence.

- "Load my solution and list all public classes in the Domain namespace"
- "Find all references to the UserService.CreateUser method"
- "Show me the definition of the IOrderRepository interface"
- "Analyze the cyclomatic complexity of the PaymentProcessor class"
- "Rename the method CalculateTotal to ComputeOrderTotal across the solution"
- "List all classes that implement INotificationHandler"

Troubleshooting Sharptools

dotnet build fails with SDK not found or version mismatch

Ensure you have .NET 8 SDK installed: run dotnet --list-sdks. If your solution targets a different framework (e.g. .NET 6), install that SDK as well. The global.json in the repository may pin a specific SDK version.

LoadSolution returns errors about missing project references

Run dotnet restore on your solution before loading it in SharpTools. Missing NuGet packages will cause Roslyn to report errors. Also ensure all project references in the .sln file point to valid .csproj files on disk.

SSE server is unreachable at the configured port

Check that no firewall or another process is blocking the port. Verify the server started successfully by checking the log file at the path you specified with --log-file. You can also try a different port with --port.

Frequently Asked Questions about Sharptools

What is Sharptools?

Sharptools is a Model Context Protocol (MCP) server that suite of mcp tools for ais to analyze and modify c# solutions with high signal, roslyn powered context. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Sharptools?

Follow the installation instructions on the Sharptools GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Sharptools?

Sharptools works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Sharptools free to use?

Yes, Sharptools is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "sharptoolsmcp": { "command": "npx", "args": ["-y", "sharptoolsmcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Sharptools?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides