sharplint 0.2.0-prealpha.3

This is a prerelease version of sharplint.
dotnet tool install --global sharplint --version 0.2.0-prealpha.3
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local sharplint --version 0.2.0-prealpha.3
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=sharplint&version=0.2.0-prealpha.3&prerelease
                    
nuke :add-package sharplint --version 0.2.0-prealpha.3
                    

Sharplint

Sharplint logo

Build status Test coverage License: Apache 2.0 Open issues

Sharplint is a local MCP server that gives coding agents C# compiler and analyzer feedback from Microsoft's official Roslyn language server.

The agent selects the repository it is working on, checks a file or directory, uses diagnostic codes and source locations to guide an edit, and checks again. Sharplint keeps Roslyn sessions warm across these tool calls, including when the agent switches between repositories.

The sharplint executable starts the MCP server and configures agent connections.

Requirements and installation

Sharplint is available as a .NET tool in pre-alpha.

dotnet tool install --global sharplint --prerelease
dotnet tool install --global roslyn-language-server --prerelease
sharplint --version

Build and install from source

Use the SDK selected by global.json. From a checkout:

dotnet build SharpLint.slnx -m:1
dotnet pack src/SharpLint.Cli -c Release -o artifacts/packages
dotnet tool install --global sharplint --prerelease --add-source ./artifacts/packages

On Windows, you can also build with .\build.ps1 from PowerShell. Each repository .sh script has a matching .ps1 script with the same arguments.

Use trusted projects: loading projects through Roslyn evaluates MSBuild and may run project build logic.

Set up GitHub Copilot

Register Sharplint for both Copilot CLI and VS Code:

sharplint setup copilot

To configure one client:

sharplint setup copilot --client cli
sharplint setup copilot --client vscode

Setup merges the Sharplint entry into the clients' user configuration, preserving other servers and settings. It registers the executable you are running. Restart the client's MCP connection after setup, then ask the agent to use Sharplint for its working repository.

For custom profiles or portable installations, use --copilot-config or --vscode-config to select the configuration file. --server selects a custom Roslyn executable or DLL.

MCP configuration

For other MCP clients, add a server using this configuration:

{
  "mcpServers": {
    "sharplint": {
      "command": "sharplint",
      "args": ["mcp"]
    }
  }
}

The same server connection can serve multiple repositories. The agent passes its repository directory in each tool call, or an absolute source path to discover the repository. Clients advertising MCP workspace roots can also supply the context.

  • sharplint_check(workspace?, path?, solution?) returns C# document diagnostics for the selected repository, file or directory.
  • sharplint_status(workspace?, solution?) reports the selected repository's Roslyn session, readiness and capabilities.

workspace is an absolute repository directory. path can be absolute or relative to that repository; an omitted path checks its C# documents. solution selects a solution when a repository contains several.

The server keeps up to four repository/solution contexts warm and releases the least recently used context when it needs another. Source edits reuse the session; changes to project inputs or source file membership reload it. Diagnostics include scope, completion and freshness metadata.

Start the server

sharplint mcp

Running sharplint without arguments also starts MCP stdio. --server selects Roslyn explicitly; otherwise Sharplint discovers it through SHARPLINT_ROSLYN_PATH, PATH, and the .NET global tool directory. --timeout sets the tool request deadline.

During development, launch the built sharplint.dll with dotnet. Logs go to stderr; stdout carries MCP messages.

Sharplint is licensed under Apache 2.0.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.2.0-prealpha.3 59 11/3/2026
0.2.0-prealpha.2 51 11/3/2026
0.2.0-prealpha.1 55 11/3/2026