From aaa9fc507f80d4a82f796371089be20e1e4e7919 Mon Sep 17 00:00:00 2001 From: Connor Peet Date: Tue, 18 Mar 2025 08:15:30 -0700 Subject: [PATCH] Simplify vscode MCP setup with input note: realized this doesn't actually work (https://github.com/microsoft/vscode/issues/243875) but I will fix that today and wait to merge until then --- README.md | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index c68eda2f..8abb649c 100644 --- a/README.md +++ b/README.md @@ -222,27 +222,29 @@ First of all, install `github-mcp-server` with: go install ./cmd/github-mcp-server ``` -Make sure you: - -1. Set your `GITHUB_PERSONAL_ACCESS_TOKEN` environment variable and ensure VS Code has access to it. -2. VS Code Insiders has access to the `github-mcp-server` binary - -Go to settings, find the MCP related settings, and set them to: +Run **Preferences: Open User Settings (JSON)**, and create or append to the `mcp` setting: ```json { - "mcp": { - "inputs": [], - "servers": { - "mcp-github-server": { - "command": "path-to-your/github-mcp-server", - "args": [ - "stdio" - ], - "env": {} - } - } + "mcp": { + "inputs": [ + { + "type": "promptString", + "id": "githubpat", + "description": "GitHub Personal Access Token", + "password": true + } + ], + "servers": { + "mcp-github-server": { + "command": "path-to-your/github-mcp-server", + "args": ["stdio"], + "env": { + "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:githubpat}" + }, + } } + } } ```