Skip to content
VS Code

samplemcp server for VS Code

io.github.quangsumi/samplemcp-server

A sample MCP server that returns random weather descriptions.

client:VS Code transport:stdio runtime:nuget

Install samplemcp server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "weather-choices",
      "description": "WEATHER_CHOICES",
      "password": true
    }
  ],
  "servers": {
    "samplemcp-server": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "Quangsumi.SampleMcpServer",
        "--yes"
      ],
      "env": {
        "WEATHER_CHOICES": "${input:weather-choices}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

samplemcp server in other clients