KC.SolutionServer.win-x64 1.0.8

dotnet add package KC.SolutionServer.win-x64 --version 1.0.8
                    
NuGet\Install-Package KC.SolutionServer.win-x64 -Version 1.0.8
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="KC.SolutionServer.win-x64" Version="1.0.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KC.SolutionServer.win-x64" Version="1.0.8" />
                    
Directory.Packages.props
<PackageReference Include="KC.SolutionServer.win-x64" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add KC.SolutionServer.win-x64 --version 1.0.8
                    
#r "nuget: KC.SolutionServer.win-x64, 1.0.8"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package KC.SolutionServer.win-x64@1.0.8
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=KC.SolutionServer.win-x64&version=1.0.8
                    
Install as a Cake Addin
#tool nuget:?package=KC.SolutionServer.win-x64&version=1.0.8
                    
Install as a Cake Tool

SolutionServer

SolutionServer is a production-oriented local Model Context Protocol (MCP) server built with C# and .NET 10. It is designed for public distribution and gives MCP clients a safe, focused set of tools for inspecting a local solution or workspace.

The server is intended for developer workflows in Visual Studio, VS Code, and other MCP-capable clients that can launch a local stdio executable directly.

What it does

SolutionServer exposes a small, practical toolset for local workspace inspection:

  • GetWorkspaceSummary - discovers the current workspace root, solution file, and available projects
  • ListProjects - lists supported project files under the configured workspace root
  • ListProjectFiles - enumerates files under a selected project directory
  • ReadTextFile - reads a bounded range of lines from a text file inside the configured workspace root

The server only inspects files inside the configured SOLUTION_SERVER_ROOT directory and rejects paths outside that boundary.

Requirements

  • .NET 10 SDK or newer on the client machine
  • An MCP-capable client such as Visual Studio or VS Code
  • A published SolutionServer executable available on disk

Build the executable

Publish the server before configuring your MCP client:

dotnet publish .\SolutionServer.csproj -c Release -r win-x64

The published executable is typically written to:

SolutionServer\bin\Release\net10.0\win-x64\publish\SolutionServer.exe

Configuration inputs

SolutionServer requires one environment variable:

  • SOLUTION_SERVER_ROOT - absolute path to the local workspace root the server is allowed to inspect

Visual Studio setup

Visual Studio discovers repository-local MCP settings from <solution-directory>\.mcp.json.

This repository includes a ready-to-edit example in .mcp.json:

{
  "$schema": "https://json.schemastore.org/mcp.json",
  "servers": {
    "SolutionServer": {
      "type": "stdio",
      "command": "F:/_dev_drv_root_/Repos/SolutionServer/SolutionServer/SolutionServer/bin/Release/net10.0/win-x64/publish/SolutionServer.exe",
      "args": [],
      "env": {
        "SOLUTION_SERVER_ROOT": "F:/_dev_drv_root_/Repos/SolutionServer/SolutionServer"     
      }
    }
  }
}

Update the executable path and SOLUTION_SERVER_ROOT to match your environment.

VS Code setup

VS Code discovers repository-local MCP settings from .vscode/mcp.json.

This repository includes a ready-to-edit example in .vscode/mcp.json:

{
  "$schema": "https://json.schemastore.org/mcp.json",
  "servers": {
    "SolutionServer": {
      "type": "stdio",
      "command": "F:/_dev_drv_root_/Repos/SolutionServer/SolutionServer/SolutionServer/bin/Release/net10.0/win-x64/publish/SolutionServer.exe",
      "args": [],
      "env": {
        "SOLUTION_SERVER_ROOT": "F:/_dev_drv_root_/Repos/SolutionServer/SolutionServer"
      }
    }
  }
}

Update the executable path and SOLUTION_SERVER_ROOT before using the server.

Local executable development

To run the built executable directly from a local publish output:

{
  "servers": {
    "SolutionServer": {
      "type": "stdio",
      "command": "<ABSOLUTE PATH TO SolutionServer.exe>",
      "args": [],
      "env": {
        "SOLUTION_SERVER_ROOT": "<ABSOLUTE WORKSPACE ROOT>" 
      }
    }
  }
}

Example prompts

Once connected, try prompts such as:

  • Summarize the current solution using SolutionServer.
  • List the projects in my workspace.
  • Show me the files in SolutionServer/SolutionServer.csproj's project directory.
  • Read the first 120 lines of SolutionServer/Program.cs.

Packaging and publishing checklist

Before publishing to NuGet.org:

  1. Update the repository URLs in SolutionServer.csproj and .mcp/server.json
  2. Verify the package ID and version are correct
  3. Review the checked-in .mcp.json and .vscode/mcp.json samples so they point to valid executable and workspace paths
  4. Build and test locally
  5. Review RELEASE_NOTES.md
  6. Pack the server
  7. Publish the .nupkg to NuGet.org

Pack the server:

dotnet pack -c Release

Publish the server:

dotnet nuget push bin/Release/*.nupkg --api-key <your-api-key> --source https://api.nuget.org/v3/index.json

Public package metadata

The package is configured to:

  • pack as an MCP server NuGet package
  • publish as a self-contained single-file executable
  • use native AOT
  • embed .mcp/server.json for MCP discovery on NuGet.org
  • include this README, release notes, and an MIT license file in the package

Security model

SolutionServer is intentionally limited to read-oriented local inspection. It does not write files, execute arbitrary shell commands, or access paths outside the configured workspace root.

Because the server exposes local file content to an MCP client, only configure it for directories you trust the connected AI workflow to inspect.

Repository notes

Before publishing for broad public consumption, replace the placeholder repository URL values in:

  • SolutionServer.csproj
  • .mcp/server.json

More information

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.8 319 6/8/2026
1.0.6 250 6/8/2026
1.0.5 240 6/6/2026
1.0.0 239 6/5/2026

RELEASE_NOTES.md