Skip to content

Instantly share code, notes, and snippets.

@dudil
Created April 20, 2025 07:15
Show Gist options
  • Select an option

  • Save dudil/e036f3c5757d7ed8a01eb8fa4d6d9694 to your computer and use it in GitHub Desktop.

Select an option

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
{
"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