Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
5 changes: 5 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ setopt HIST_VERIFY # don't immediately execute recalled commands
# DEVCONTAINER ZSH HISTORY END
EOF
# Export GitHub token from gh CLI for MCP server auth
RUN echo '' >> /home/vscode/.zshrc && \
Copy link
Copy Markdown
Contributor

@sei-aschlackman sei-aschlackman Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this only work the second time you build after you log in with the gh with the first build?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The creds will just be blank if you haven't auth'd yet. Should not result in any failures.

echo '# GitHub MCP token from gh CLI' >> /home/vscode/.zshrc && \
echo 'export GITHUB_PERSONAL_ACCESS_TOKEN=$(gh auth token 2>/dev/null)' >> /home/vscode/.zshrc
# Switch back to vscode user
USER vscode
Expand Down
2 changes: 2 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
"source=crucible-dev-claude,target=/home/vscode/.claude,type=volume",
// SSH keys and config
"source=crucible-dev-ssh,target=/home/vscode/.ssh,type=volume",
// GitHub CLI auth
"source=crucible-dev-gh,target=/home/vscode/.config/gh,type=volume",
// MSBuild files for local library development
"source=${localWorkspaceFolder}/.devcontainer/msbuild/Directory.Build.props,target=/mnt/data/Directory.Build.props,type=bind",
"source=${localWorkspaceFolder}/.devcontainer/msbuild/Directory.Build.targets,target=/mnt/data/Directory.Build.targets,type=bind"
Expand Down
Loading