Svanrj.McpServer.Playground.linux-x64
0.1.4
dotnet add package Svanrj.McpServer.Playground.linux-x64 --version 0.1.4
NuGet\Install-Package Svanrj.McpServer.Playground.linux-x64 -Version 0.1.4
<PackageReference Include="Svanrj.McpServer.Playground.linux-x64" Version="0.1.4" />
<PackageVersion Include="Svanrj.McpServer.Playground.linux-x64" Version="0.1.4" />
<PackageReference Include="Svanrj.McpServer.Playground.linux-x64" />
paket add Svanrj.McpServer.Playground.linux-x64 --version 0.1.4
#r "nuget: Svanrj.McpServer.Playground.linux-x64, 0.1.4"
#:package Svanrj.McpServer.Playground.linux-x64@0.1.4
#addin nuget:?package=Svanrj.McpServer.Playground.linux-x64&version=0.1.4
#tool nuget:?package=Svanrj.McpServer.Playground.linux-x64&version=0.1.4
MCP Server Playground
mcp-server-playground is a small .NET MCP server used for local experimentation, packaging, and publishing practice.
It currently exposes two sample tools:
get_random_number: returns a random integer in a given rangeget_city_weather: returns a sample weather description for a city
Repository
- GitHub: svanrjfei/mcp-server-playground
- NuGet package id:
Svanrj.McpServer.Playground
Run Locally
You can run the MCP server directly from source with dotnet run.
Example Codex MCP configuration:
[mcp_servers.mymcpserver]
enabled = true
cwd = "/Users/svanrj/project/CS/MyMcpServer"
command = "dotnet"
args = ["run", "--project", "."]
env = { WEATHER_CHOICES = "sunny,cloudy,rainy,stormy" }
Build And Pack
Build the project:
dotnet build
Create a NuGet package:
dotnet pack -c Release
The package will be generated under bin/Release.
Publish To NuGet
After creating a NuGet API key, publish with:
dotnet nuget push bin/Release/*.nupkg --api-key <your-api-key> --source https://api.nuget.org/v3/index.json
Notes
This repository is a playground project. The weather tool is currently a sample tool that returns a randomized description rather than real weather data.
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.