Sherlock.MCP.Server 0.4.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global Sherlock.MCP.Server --version 0.4.0
                    
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 Sherlock.MCP.Server --version 0.4.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Sherlock.MCP.Server&version=0.4.0
                    
nuke :add-package Sherlock.MCP.Server --version 0.4.0
                    

dotnet-sherlock-mcp

dotnet-sherlock-mcp is a .NET-based server that provides a Model Context Protocol (MCP) interface for Language Learning Models (LLMs). It uses reflection to analyze .NET assemblies and provide detailed information about types, members, and their signatures. This enables LLMs to have a deep understanding of the code and provide more accurate and context-aware responses.

Running the Server

You can run the server directly on your machine or using Docker.

Local Execution

To run the MCP server directly, execute the following command:

dotnet run --project src/server/Sherlock.MCP.Server.csproj

Running with Docker

For a more isolated and consistent environment, you can run the server inside a Docker container.

  1. Build the Docker image:

    docker build -t sherlock-mcp .
    
  2. Run the Docker container:

    docker run -p 5000:5000 sherlock-mcp
    

This will start the server and expose it on port 5000.

Development

Building the Project

To build the entire solution, run the following command from the root directory:

dotnet build src/Sherlock.MCP.sln

Running Unit Tests

To run the unit tests, use the following command:

dotnet test src/unit-tests/Sherlock.MCP.Tests.csproj
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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
1.0.1 99 7/12/2025
1.0.0 133 7/7/2025
0.6.0 131 7/7/2025
0.5.0 132 7/7/2025
0.4.0 130 7/6/2025