Svanrj.McpServer.Playground
0.1.4
{ "inputs": [ { "type": "promptString", "id": "WEATHER_CHOICES", "description": "Optional comma-separated weather descriptions for the sample weather tool." } ], "servers": { "Svanrj.McpServer.Playground": { "type": "stdio", "command": "dnx", "args": ["Svanrj.McpServer.Playground@0.1.4", "--yes"], "env": { "WEATHER_CHOICES": "${input:WEATHER_CHOICES}" } } } }
This package contains an MCP Server. The server can be used in VS Code by copying the generated JSON to your VS Code workspace's
.vscode/mcp.json settings file.
dotnet tool install --global Svanrj.McpServer.Playground --version 0.1.4
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Svanrj.McpServer.Playground --version 0.1.4
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Svanrj.McpServer.Playground&version=0.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Svanrj.McpServer.Playground --version 0.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.4 | 310 | 4/22/2026 |
| 0.1.3 | 286 | 4/22/2026 |
| 0.1.0-beta | 291 | 4/22/2026 |