Skip to content
VS Code

ampleMcpServer for VS Code

io.github.duiduixu/amplemcpserver

生成随机数MCP Server

client:VS Code transport:stdio runtime:nuget

Install ampleMcpServer in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "weather-choices",
      "description": "WEATHER_CHOICES",
      "password": true
    }
  ],
  "servers": {
    "amplemcpserver": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "sterlingxu_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

ampleMcpServer in other clients