KC.DotNetSolution.McpServer 0.1.0-beta

This is a prerelease version of KC.DotNetSolution.McpServer.

                    
dotnet tool install --global KC.DotNetSolution.McpServer --version 0.1.0-beta
                    
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 KC.DotNetSolution.McpServer --version 0.1.0-beta
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=KC.DotNetSolution.McpServer&version=0.1.0-beta&prerelease
                    
nuke :add-package KC.DotNetSolution.McpServer --version 0.1.0-beta
                    

DotNet-McpServer

A lightweight MCP (Microsoft Communication Protocol) server built with .NET 10.0. This server is packaged as a .NET tool (MCP server) that runs as a self‑contained, single‑file executable.

Features

  • Self‑contained: No external .NET runtime needed.
  • Single file: Publishes to a single executable for easy distribution.
  • Tool packaging: Packaged as a .NET tool (PackAsTool), ready to be installed via dotnet tool install.
  • MCP C# SDK: Uses the StreamJsonRpc library for JSON‑RPC communication.

Prerequisites

  • .NET SDK 10.0 or later (matching the target framework net10.0).
  • PowerShell (or any shell) to run the tool.

Building the Server

# From the solution root
cd src/DotNetMcpServer

# Restore packages and build
dotnet restore
dotnet build -c Release

Publishing a Self‑Contained Single File

dotnet publish -c Release -r win-x64 --self-contained true /p:PublishSingleFile=true

The output will be placed under the ../mcp-servers directory as configured by the project.

Installing as a .NET Tool

The project is configured to generate a NuGet package that can be installed as a tool:

# Pack the project
dotnet pack -c Release

# Install the tool locally
dotnet tool install --global KC.DotNetSolution.McpServer --version 0.1.0-beta

After installation, you can run the server with:

dotnet-mcpserver

Usage

The server communicates over standard input/output using the MCP protocol. It can be integrated with any client that speaks MCP/JSON‑RPC.

License

This project is provided under the MIT License. See the LICENSE file for details.


Generated by Copilot.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.1.0-beta 181 6/5/2026