Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions src/container-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,18 @@ function buildVolumeMounts(
readonly: false,
});

// Gmail credentials directory (for Gmail MCP inside the container)
const homeDir = os.homedir();
const gmailDir = path.join(homeDir, '.gmail-mcp');
if (fs.existsSync(gmailDir)) {
mounts.push({
hostPath: gmailDir,
containerPath: '/home/node/.gmail-mcp',
readonly: false, // MCP may need to refresh OAuth tokens
});
// Gmail credentials directory — main group only (non-main groups
// should not have access to the owner's email account).
if (isMain) {
const homeDir = os.homedir();
const gmailDir = path.join(homeDir, '.gmail-mcp');
if (fs.existsSync(gmailDir)) {
mounts.push({
hostPath: gmailDir,
containerPath: '/home/node/.gmail-mcp',
readonly: false, // MCP may need to refresh OAuth tokens
});
}
}

// Per-group IPC namespace: each group gets its own IPC directory
Expand Down