Test and demo of MCP servers
Starting with VS Code 1.102, MCP support has moved out of preview and is ready for everyday use. This means you can confidently integrate MCP servers into your development workflow to extend Copilot’s capabilities with your own tools, resources, and APIs.
https://code.visualstudio.com/docs/copilot/chat/mcp-servers
MCP servers are configured in ~/.config/Code/User/mcp.json
.
https://playbooks.com/mcp/modelcontextprotocol-gitlab
"inputs": [
{
"type": "promptString",
"id": "gitlab_token",
"description": "GitLab Personal Access Token",
"password": true
},
{
"type": "promptString",
"id": "gitlab_url",
"description": "GitLab API URL (optional)",
"default": "https://gitlab.com/api/v4"
}
],
"servers": {
"gitlab": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-gitlab"
],
"env": {
"GITLAB_PERSONAL_ACCESS_TOKEN": "${input:gitlab_token}",
"GITLAB_API_URL": "${input:gitlab_url}"
}
}
}