Sherlock.MCP.Server
0.4.0
See the version list below for details.
dotnet tool install --global Sherlock.MCP.Server --version 0.4.0
dotnet new tool-manifest
dotnet tool install --local Sherlock.MCP.Server --version 0.4.0
#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.
Build the Docker image:
docker build -t sherlock-mcp .
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 | Versions 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. |
This package has no dependencies.