This extension provides a command to easily set up your MCP (Model Context Protocol) configurations in VS Code's global settings.
Sync MCP Settings:
- Quickly adds or updates the
mcp
configuration block in your global VS Code user settings. - To run the command:
- Open the Command Palette (
Ctrl+Shift+P
on Windows/Linux orCmd+Shift+P
on macOS). - Type
Sync MCP Settings
and select the command.
- Open the Command Palette (
- This will automatically add the necessary server configurations (like the GitHub MCP server) to your global settings, making them available across all your projects.
Example of the configuration added:
"mcp": {
"servers": {
"github": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_TOKEN_HERE" // Remember to replace placeholder tokens
}
}
// Other MCP server configurations can be added here
}
}