microsoft_xiaomgao.WindowsDevelopmentMcpServer.win-x64 0.0.2-beta

This is a prerelease version of microsoft_xiaomgao.WindowsDevelopmentMcpServer.win-x64.
dotnet add package microsoft_xiaomgao.WindowsDevelopmentMcpServer.win-x64 --version 0.0.2-beta
                    
NuGet\Install-Package microsoft_xiaomgao.WindowsDevelopmentMcpServer.win-x64 -Version 0.0.2-beta
                    
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="microsoft_xiaomgao.WindowsDevelopmentMcpServer.win-x64" Version="0.0.2-beta" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="microsoft_xiaomgao.WindowsDevelopmentMcpServer.win-x64" Version="0.0.2-beta" />
                    
Directory.Packages.props
<PackageReference Include="microsoft_xiaomgao.WindowsDevelopmentMcpServer.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 microsoft_xiaomgao.WindowsDevelopmentMcpServer.win-x64 --version 0.0.2-beta
                    
#r "nuget: microsoft_xiaomgao.WindowsDevelopmentMcpServer.win-x64, 0.0.2-beta"
                    
#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 microsoft_xiaomgao.WindowsDevelopmentMcpServer.win-x64@0.0.2-beta
                    
#: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=microsoft_xiaomgao.WindowsDevelopmentMcpServer.win-x64&version=0.0.2-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=microsoft_xiaomgao.WindowsDevelopmentMcpServer.win-x64&version=0.0.2-beta&prerelease
                    
Install as a Cake Tool

MCP Server

This README was created using the C# MCP server project template. It demonstrates how you can easily create an MCP server using C# and publish it as a NuGet package.

The MCP server is built as a self-contained application and does not require the .NET runtime to be installed on the target machine. However, since it is self-contained, it must be built for each target platform separately. By default, the template is configured to build for:

  • win-x64
  • win-arm64
  • osx-arm64
  • linux-x64
  • linux-arm64
  • linux-musl-x64

If your users require more platforms to be supported, update the list of runtime identifiers in the project's <RuntimeIdentifiers /> element.

See aka.ms/nuget/mcp/guide for the full guide.

Please note that this template is currently in an early preview stage. If you have feedback, please take a brief survey.

Checklist before publishing to NuGet.org

  • Test the MCP server locally using the steps below.
  • Update the package metadata in the .csproj file, in particular the <PackageId>.
  • Update .mcp/server.json to declare your MCP server's inputs.
  • Pack the project using dotnet pack.

The bin/Release directory will contain the package file (.nupkg), which can be published to NuGet.org.

Developing locally

To test this MCP server from source code (locally) without using a built MCP server package, you can configure your IDE to run the project directly using dotnet run.

{
  "servers": {
    "WindowsDevelopmentMcpServer": {
      "type": "stdio",
      "command": "dotnet",
      "args": [
        "run",
        "--project",
        "<PATH TO PROJECT DIRECTORY>"
      ]
    }
  }
}

Testing the MCP Server

Once configured, you can ask Copilot Chat for a random number, for example, Give me 3 random numbers. It should prompt you to use the get_random_number tool on the WindowsDevelopmentMcpServer MCP server and show you the results.

Publishing to NuGet.org

  1. Run dotnet pack -c Release to create the NuGet package
  2. Publish 2.1 Publish to NuGet.org with dotnet nuget push bin/Release/*.nupkg --api-key <your-api-key> --source https://api.nuget.org/v3/index.json 2.2 PUblish to NuGetTest with
dotnet nuget push bin/Release/microsoft_xiaomgao.WindowsDevelopmentMcpServer.*.nupkg --api-key <your-api-key> --source https://apiint.nugettest.org/v3/index.json

Using the MCP Server from NuGet.org

Once the MCP server package is published to NuGet.org, you can configure it in your preferred IDE. Both VS Code and Visual Studio use the dnx command to download and install the MCP server package from NuGet.org.

  • VS Code: Create a <WORKSPACE DIRECTORY>/.vscode/mcp.json file
  • Visual Studio: Create a <SOLUTION DIRECTORY>\.mcp.json file

For both VS Code and Visual Studio, the configuration file uses the following server definition:

{
  "servers": {
		"microsoft_xiaomgao.WindowsDevelopmentMcpServer": {
			"type": "stdio",
			"command": "dnx",
			"args": ["microsoft_xiaomgao.WindowsDevelopmentMcpServer@0.0.2-beta", "--yes"
						, "--add-source", "https://apiint.nugettest.org/v3/index.json"
					]
		}
  }
}

More information

.NET MCP servers use the ModelContextProtocol C# SDK. For more information about MCP:

Refer to the VS Code or Visual Studio documentation for more information on configuring and using MCP servers:

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.2-beta 0 12/12/2025
0.0.1-beta 0 12/12/2025