From uniswap-integrations
Guides setup of GitHub Personal Access Token for MCP server authentication in Claude Code. Covers token creation with repo permissions, bash env var config, and verification for repo/file/issue/PR access.
How this skill is triggered — by the user, by Claude, or both
Slash command
/uniswap-integrations:github-setupThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Guide users through configuring their GitHub Personal Access Token (PAT) for the GitHub MCP server integration.
Guide users through configuring their GitHub Personal Access Token (PAT) for the GitHub MCP server integration.
The GitHub MCP server provides repository management, file operations, issue tracking, and PR functionality directly within Claude Code. It requires a GitHub Personal Access Token (PAT) for authentication.
First, check if the token is already configured:
# Check if GITHUB_PERSONAL_ACCESS_TOKEN is set
if [ -n "$GITHUB_PERSONAL_ACCESS_TOKEN" ]; then
echo "GitHub token is configured (length: ${#GITHUB_PERSONAL_ACCESS_TOKEN} chars)"
else
echo "GitHub token is NOT configured"
fi
If no token exists, guide the user:
Navigate to GitHub Token Settings:
Create New Token:
Required Permissions (minimum for full functionality):
Generate and Copy Token:
Add the token to your shell profile for persistence:
For Zsh (default on macOS):
echo 'export GITHUB_PERSONAL_ACCESS_TOKEN="ghp_your_token_here"' >> ~/.zshrc
source ~/.zshrc
For Bash:
echo 'export GITHUB_PERSONAL_ACCESS_TOKEN="ghp_your_token_here"' >> ~/.bashrc
source ~/.bashrc
For Fish:
set -Ux GITHUB_PERSONAL_ACCESS_TOKEN "ghp_your_token_here"
After setting the token, restart Claude Code and verify:
# Verify token is set
echo "Token configured: $([ -n \"$GITHUB_PERSONAL_ACCESS_TOKEN\" ] && echo 'Yes' || echo 'No')"
Then run /mcp in Claude Code to see the GitHub MCP server listed.
If the GitHub MCP server reports a missing token:
Verify the environment variable is set:
echo $GITHUB_PERSONAL_ACCESS_TOKEN
If empty, check your shell profile contains the export
Source your profile or restart the terminal:
source ~/.zshrc # or ~/.bashrc
Restart Claude Code to pick up the new environment
If you get authentication errors:
If certain operations fail:
workflow for GitHub Actions).gitignoreOnce configured, you'll have access to:
| Item | Value |
|---|---|
| Environment Variable | GITHUB_PERSONAL_ACCESS_TOKEN |
| Token Settings URL | https://github.com/settings/tokens |
| Token Type | Fine-grained (recommended) or Classic |
| MCP Server | Hosted at api.githubcopilot.com/mcp |
After successful setup:
/mcp to verify the GitHub server is connectednpx claudepluginhub uniswap/ai-toolkit --plugin uniswap-integrationsProvides copy-paste ready GitHub CLI (gh) installation, authentication, and command usage. Prevents common mistakes like missing full paths or GITHUB_TOKEN prefix errors.
Configures MCP servers in GitHub Actions workflows with tool permissions, environment variables, and multi-server setups using Node.js, Python/uvx examples. Use for MCP integration in CI/CD.
Generates .mcp.json and .claude/settings.json to configure MCP servers, tokens, and tool permissions for agent-flow pipeline. Supports CLI flags for tracker type, instance URL, and source control remote.