feat(claude.sh): mount ~/.claude-jail/mcp read-only at /opt/mcp #28

Merged
claudiomaradonna merged 1 commit from feat/mcp-dir-mount into main 2026-08-25 14:08:39 +02:00

Custom MCP server binaries need a stable path inside every container so
that claude mcp add <name> -- <cmd> keeps resolving across sessions.
CLAUDE_JAIL_MOUNTS cannot carry that convention: it is a single key, so
a project .env.claude defining its own mounts replaces the shared value
and the binary silently vanishes in that project.

Like env.default, the directory is optional: when ~/.claude-jail/mcp
exists it is bind-mounted read-only at /opt/mcp; when it is absent (or
not a directory) nothing changes.

Claude-Session: https://claude.ai/code/session_019JtF9QULHtmmA7Kq5kjkGL

Custom MCP server binaries need a stable path inside every container so that `claude mcp add <name> -- <cmd>` keeps resolving across sessions. CLAUDE_JAIL_MOUNTS cannot carry that convention: it is a single key, so a project .env.claude defining its own mounts replaces the shared value and the binary silently vanishes in that project. Like env.default, the directory is optional: when ~/.claude-jail/mcp exists it is bind-mounted read-only at /opt/mcp; when it is absent (or not a directory) nothing changes. Claude-Session: https://claude.ai/code/session_019JtF9QULHtmmA7Kq5kjkGL
Custom MCP server binaries need a stable path inside every container so
that `claude mcp add <name> -- <cmd>` keeps resolving across sessions.
CLAUDE_JAIL_MOUNTS cannot carry that convention: it is a single key, so
a project .env.claude defining its own mounts replaces the shared value
and the binary silently vanishes in that project.

Like env.default, the directory is optional: when ~/.claude-jail/mcp
exists it is bind-mounted read-only at /opt/mcp; when it is absent (or
not a directory) nothing changes.

Claude-Session: https://claude.ai/code/session_019JtF9QULHtmmA7Kq5kjkGL
claudiomaradonna deleted branch feat/mcp-dir-mount 2026-08-25 14:08:42 +02:00
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
claudiomaradonna/claude-jail!28
No description provided.