gh auth tokenCopy the output (your personal access token).
-
Open Warp MCP Settings
- Method 1:
Cmd+P→ type "MCP" → select "Open MCP Servers" - Method 2: Settings → AI → Manage MCP servers
- Method 3: Warp Drive → Personal → MCP Servers
- Method 1:
-
Add GitHub Server
- Click "+ Add" button
- Choose "CLI Server (Command)"
- Fill in the configuration:
Configuration Details:
- Server Name:
GitHub - Command:
docker - Args (one per line):
run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server - Environment Variables:
{ "GITHUB_PERSONAL_ACCESS_TOKEN": "PASTE_YOUR_TOKEN_HERE" }
- Save and Start
- Click "Save"
- Click the "Start" button next to your GitHub server
- Wait for green "Running" status
Once the server is running, you can use natural language in Warp terminal:
"Show me information about this repository"
"List my recent repositories"
"What's the primary language of this repo?"
"Show me open issues in this repository"
"Create an issue for the email validation bug"
"List issues labeled as bug"
"Show me recent commits"
"What files were changed in the last commit?"
"Search for TODO comments in this repository"
- Ensure Docker is running
- Verify your GitHub token has correct permissions (repo, user scopes)
- Check the server logs in MCP settings
- Make sure you're in a Git repository directory
- Verify the repository exists on GitHub
- Check that your token has access to the repository
Your GitHub token should have these scopes:
repo- Full repository accessuser- User profile accessproject- Project access (optional)workflow- Actions access (optional)
With the MCP server running, you can:
✅ Repository Management
- View repository details and statistics
- List branches, tags, and releases
- Browse file contents
✅ Issue & PR Management
- Create, update, and close issues
- List and search issues/PRs
- Add comments and labels
✅ Code Analysis
- Search code across repositories
- View commit history and diffs
- Analyze file changes
✅ Workflow Operations
- View GitHub Actions runs
- Check workflow status
- Download artifacts
Instead of switching between terminal and browser:
Before:
- Terminal → write code
- Browser → create GitHub issue
- Browser → assign labels
- Browser → check status
After with MCP:
"Analyze this code and create a GitHub issue for any bugs found"
Result: Automatic code analysis + structured GitHub issue creation with appropriate labels and descriptions!
Next: Try the natural language commands above in your Warp terminal once the MCP server is running.