FS Sandbox for VS Code
io.github.cardinelabs/fs-sandbox-mcp
Filesystem MCP server with folder allow-list, tamper-evident audit log, dry-run writes and undo.
client:VS Code
transport:stdio
runtime:npm
Install FS Sandbox in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "fs-sandbox-rw-dir",
"description": "FS_SANDBOX_RW_DIR",
"password": true
},
{
"type": "promptString",
"id": "fs-sandbox-ro-dir",
"description": "FS_SANDBOX_RO_DIR",
"password": true
},
{
"type": "promptString",
"id": "fs-sandbox-policy",
"description": "FS_SANDBOX_POLICY",
"password": true
}
],
"servers": {
"fs-sandbox-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cardinelabs/fs-sandbox-mcp"
],
"env": {
"FS_SANDBOX_RW_DIR": "${input:fs-sandbox-rw-dir}",
"FS_SANDBOX_RO_DIR": "${input:fs-sandbox-ro-dir}",
"FS_SANDBOX_POLICY": "${input:fs-sandbox-policy}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs