KC.SolutionServer
1.0.10
{ "servers": { "KC.SolutionServer": { "type": "stdio", "command": "dnx", "args": ["KC.SolutionServer@1.0.10", "--yes"] } } }
.vscode/mcp.json settings file.
dotnet tool install --global KC.SolutionServer --version 1.0.10
dotnet new tool-manifest
dotnet tool install --local KC.SolutionServer --version 1.0.10
#tool dotnet:?package=KC.SolutionServer&version=1.0.10
nuke :add-package KC.SolutionServer --version 1.0.10
SolutionServer
UNDER ACTIVE DEVELOPMENT -- FEATURES ARE BEING ADDED DAILY - UPDATE OFTEN
SolutionServer is a production‑oriented local Model Context Protocol (MCP) server written in C# targeting .NET 10. It provides a read‑only API for inspecting a local workspace – listing projects, enumerating files, and reading file contents – which can be consumed by VS Code, Visual Studio, or any MCP‑compatible client.
Features
- Workspace summary – absolute root path, solution file (if any), and discovered projects.
- Project discovery – supports
*.csproj,*.fsproj,*.vbproj. - File enumeration – walks the workspace while respecting ignored directories (
bin,obj,.git, etc.). - Bounded file reads – safe line‑range reads (max 400 lines).
- MCP integration – ready‑to‑use
.mcpmanifest and VS Code/Visual Studio configuration samples.
Getting Started
See the detailed instructions in the project README for building the executable and configuring MCP in your editor.
Architecture
The server consists of three main parts:
Program.cs– sets up a generic host, registers logging, theWorkspaceService, and the MCP tools.WorkspaceService– core logic for discovering the workspace, projects, and files. It enforces theSOLUTION_SERVER_ROOTenvironment variable to sandbox access.- MCP tools – thin wrappers (
WorkspaceTools) exposing the service methods to the MCP protocol.
The code follows a clean‑architecture style: the service is independent of the hosting layer, making it easy to unit‑test.
Contributing
- Follow the existing coding style (tabs vs spaces, naming conventions).
- Add or update unit tests under a
Testsproject (not currently present). - Keep documentation in sync with code changes.
License
MIT – see the LICENSE.txt file.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.10 | 0 | 6/8/2026 |
RELEASE_NOTES.md