Install four MCP servers globally in the claude image: @modelcontextprotocol/server-github → mcp-server-github @yoda.digital/gitlab-mcp-server → gitlab-mcp-server @aashari/mcp-server-atlassian-jira → mcp-atlassian-jira @aashari/mcp-server-atlassian-confluence → mcp-atlassian-confluence Wire them in managed-settings.json via mcpServers with env var pass-through. Jira and Confluence share ATLASSIAN_* credentials. Add api.github.com, .gitlab.com, .atlassian.net to the squid allowlist. All credentials are optional — servers are skipped if the relevant env vars are unset.
41 lines
2 KiB
Text
41 lines
2 KiB
Text
# Copy this file to .env and fill in your values.
|
|
# .env is git-ignored — never commit it.
|
|
|
|
# ─── Authentication (choose one) ──────────────────────────────────────────────
|
|
|
|
# Option 1: Anthropic API key
|
|
# ANTHROPIC_API_KEY=sk-ant-...
|
|
|
|
# Option 2: OAuth token from a Claude.ai subscription (1-year validity)
|
|
# Generate with: claude setup-token (run on your host, not inside the container)
|
|
# CLAUDE_CODE_OAUTH_TOKEN=...
|
|
|
|
# Option 3: No key set — Claude Code will prompt for browser login on first run.
|
|
# Port 54545 must be reachable from your browser for the OAuth callback.
|
|
# Run: sbx ports <sandbox-name> --publish 54545:54545/tcp
|
|
|
|
# ─── Workspace (CLI mode only) ────────────────────────────────────────────────
|
|
|
|
# Optional: mount a host directory as /workspace inside the Claude container.
|
|
# If unset, a named Docker volume is used (fully isolated from the host).
|
|
# WORKSPACE_DIR=/absolute/path/to/your/project
|
|
|
|
# ─── Web interface ────────────────────────────────────────────────────────────
|
|
|
|
# Required for ./claude.sh web
|
|
# WEBUI_USER=claude
|
|
# WEBUI_PASSWORD=changeme
|
|
|
|
# ─── MCP servers (all optional) ───────────────────────────────────────────────
|
|
|
|
# GitHub — PAT with repo scope
|
|
# GITHUB_TOKEN=ghp_...
|
|
|
|
# GitLab — PAT with api scope; GITLAB_URL defaults to https://gitlab.com
|
|
# GITLAB_TOKEN=glpat_...
|
|
# GITLAB_URL=https://gitlab.com
|
|
|
|
# Jira + Confluence — shared Atlassian credentials
|
|
# ATLASSIAN_SITE_NAME=your-company # subdomain of .atlassian.net
|
|
# ATLASSIAN_USER_EMAIL=you@example.com
|
|
# ATLASSIAN_API_TOKEN=... # https://id.atlassian.com/manage-profile/security/api-tokens
|