mcp server configuration for vscode

We can quickly configure vscode to use github mcp by creating a fille under .vscode/mcp.json. This file should contain the followings:-


{
  "inputs": [
    {
      "type": "promptString",
      "id": "github_token",
      "description": "GitHub Personal Access Token",
      "password": true
    }
  ],
  "servers": {
    "github": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "GITHUB_PERSONAL_ACCESS_TOKEN",
        "ghcr.io/github/github-mcp-server"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}"
      }
    }
  }
}

And then you are good to prompt away






Comments

Popular posts from this blog

gemini cli getting file not defined error

mongosh install properly

vllm : Failed to infer device type