← Back to Plugins
MCP Server MCP

io.github.joelverhagen/Knapcode.SampleMcpServer

github By github 👁 1 views ▲ 0 votes

A sample MCP server using the MCP C# SDK. Generates random numbers and random weather.

Homepage Verified source GitHub

Install

nuget:[email protected]

Configuration Example

{
  "remotes": [],
  "packages": [
    {
      "registryType": "nuget",
      "registryBaseUrl": "https://api.nuget.org/v3/index.json",
      "identifier": "Knapcode.SampleMcpServer",
      "version": "0.7.0-beta",
      "transport": {
        "type": "stdio"
      },
      "packageArguments": [
        {
          "value": "mcp",
          "type": "positional",
          "valueHint": "mcp"
        },
        {
          "value": "start",
          "type": "positional",
          "valueHint": "start"
        }
      ],
      "environmentVariables": [
        {
          "value": "{weather_choices}",
          "variables": {
            "weather_choices": {
              "description": "Comma separated list of weather descriptions to randomly select.",
              "isRequired": true
            }
          },
          "name": "WEATHER_CHOICES"
        }
      ]
    }
  ]
}
mcp model-context-protocol nuget

Comments

Sign in to leave a comment

Loading comments...