Lancelot.Playground.MCP 2026.321.8

dotnet tool install --global Lancelot.Playground.MCP --version 2026.321.8
                    
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 Lancelot.Playground.MCP --version 2026.321.8
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Lancelot.Playground.MCP&version=2026.321.8
                    
nuke :add-package Lancelot.Playground.MCP --version 2026.321.8
                    

McpServers

A collection of experimental MCP servers and tools that use .NET for the backend. It shows you how to write an mcp server using .NET, but also how to publish an MCP server as a .NET SDK Tool (NuGet package), an npm package or a docker image.

Workflow Status
main Build Main (smoketest)
publish (NuGet) Publish package to NuGet
publish (npm) Publish package to npm
publish (docker) Publish image to DockerHub

Tools

This package currently exposes 3 tools:

  • GetFibonacci

    • Input: length (string, optional, default: "20")
    • Behavior: Generates Fibonacci numbers up to the numeric limit.
  • GetLucas

    • Input: length (string, optional, default: "20")
    • Behavior: Generates Lucas numbers up to the numeric limit.
  • GetLatLongInfo

    • Input: coordinates (string, required, format: "lat,long")
    • Behavior: Returns current date/time and location/timezone info for the coordinates.

Installation

To add an mcp server to GitHub Copilot chat, open the appropriate file:

  • For Visual Studio, use %UserProfile%/.mcp.json
  • For VSCode, use %appdata%/Code/User/mcp.json

Once open, update it with one of the config options. If you want to speed testing up, you can use one option for VS2022 and the other for VSCode!

Option 1 - NuGet Tool

Add the MCP server to your mcp config with the following entry

{
  "servers": {
    "mcp-playground": {
      "type": "stdio",
      "command": "dnx",
      "args": ["Lancelot.Playground.MCP", "--yes"]
    },
  }
}

If you are using .NET 9 or earlier, you need to install the tool witjh dotnet tool install -g Lancelot.Playground.MCP

Option 2 - NPM Package

Add the MCP server to your mcp config with the following entry

{
  "servers": {
    "mcp-playground": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@lancemccarthy/mcp-playground@latest"]
    }
  }
}

Option 3 - Docker Image

If you have docker installed, you can add the MCP server to your mcp config with the following entry

{
  "servers": {
    "mcp-playground": {
      "type": "stdio",
      "command": "docker",
      "args": ["run", "-i", "--rm", "docker.io/lancemccarthy/mcp-playground:latest"]
    }
  }
}
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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
2026.321.8 140 3/21/2026