Created
April 20, 2025 07:15
-
-
Save dudil/e036f3c5757d7ed8a01eb8fa4d6d9694 to your computer and use it in GitHub Desktop.
An example mcp configuration for VS Code to be used with Github Copilot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "inputs": [ | |
| { | |
| "type": "promptString", | |
| "id": "github_user", | |
| "description": "GitHub Username", | |
| }, | |
| { | |
| "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": { | |
| "DOCKER_USER": "${input:github_user}", | |
| "DOCKER_PASSWORD": "${input:github_token}", | |
| "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}" | |
| } | |
| }, | |
| "filesystem": { | |
| "command": "docker", | |
| "args": [ | |
| "run", | |
| "-i", | |
| "--rm", | |
| "--mount", | |
| "type=bind,src=${workspaceFolder},dst=/projects/worksapce", | |
| "mcp/filesystem", | |
| "/projects" | |
| ] | |
| }, | |
| "git": { | |
| "command": "uvx", | |
| "args": [ | |
| "mcp-server-git", | |
| "--repository", | |
| "${workspaceFolder}" | |
| ] | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment