Install guide · VS Code
Install Backrest for VS Code
Workspace file .vscode/mcp.json uses the servers key. User settings can hold the same shape.
Open .vscode/mcp.json on macOS, .vscode/mcp.json on Windows, or .vscode/mcp.json on Linux.
Paste the JSON config below.
Replace placeholder secrets, then restart the client if it does not reload on its own.
{ "servers": { "dasred-backrest-mcp": { "type": "stdio", "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/dasred/backrest-mcp:1.2.2" ], "env": { "BACKREST_MCP_BACKREST_URL": "", "BACKREST_MCP_BACKREST_USERNAME": "", "BACKREST_MCP_BACKREST_PASSWORD": "YOUR_BACKREST_MCP_BACKREST_PASSWORD", "BACKREST_MCP_READ_ONLY": "true", "BACKREST_MCP_TOOLS_ALLOW": "", "BACKREST_MCP_TOOLS_DENY": "", "BACKREST_MCP_MASK_SECRETS": "true", "BACKREST_MCP_AUTH_TOKEN": "YOUR_BACKREST_MCP_AUTH_TOKEN", "BACKREST_MCP_BACKREST_PUBLIC_URL": "", "BACKREST_MCP_BACKREST_TIMEOUT": "60000", "BACKREST_MCP_SERVER_LOG_LEVEL": "info" } } }}
Where the config lives
| System | Path |
|---|---|
| macOS | .vscode/mcp.json |
| Windows | .vscode/mcp.json |
| Linux | .vscode/mcp.json |