-
-
Notifications
You must be signed in to change notification settings - Fork 34
GitHub Integration
Saros Industries edited this page Jun 28, 2025
·
1 revision
Integrate GitHub directly into your CursorRIPERβ¦Ξ£ workflow for seamless repository management, code collaboration, and version control.
GitHub integration enables:
- π Repository search and discovery
- π Repository creation and management
- π File operations and commits
- π Pull request workflows
- π Issue tracking
- πΏ Branch management
npm install -g @modelcontextprotocol/server-github# Create a GitHub Personal Access Token
# Go to: GitHub β Settings β Developer settings β Personal access tokens
# Set environment variable
export GITHUB_TOKEN=ghp_your_token_hereIn .cursor/mcp.json:
{
"mcpServers": {
"github": {
"command": "mcp-server-github",
"env": {
"GITHUB_TOKEN": "${env:GITHUB_TOKEN}"
}
}
}
}Uncomment GitHub section in your framework rules.
| Command | Function | Example |
|---|---|---|
!gr |
Search repositories | !gr oauth2 typescript |
!gc |
Create repository | !gc my-new-project |
!gf |
Fork repository | !gf torvalds/linux |
!ginfo |
Get repo info | !ginfo owner/repo |
| Command | Function | Example |
|---|---|---|
!gp |
Push files | !gp |
!gget |
Get file contents | !gget README.md |
!gcf |
Create/update file | !gcf src/new.js |
| Command | Function | Example |
|---|---|---|
!gpr |
Create pull request | !gpr |
!gpl |
List pull requests | !gpl |
!gpm |
Merge pull request | !gpm 123 |
!gprr |
Review pull request | !gprr 123 |
| Command | Function | Example |
|---|---|---|
!gi |
Create issue | !gi "Bug in auth" |
!gil |
List issues | !gil |
!giu |
Update issue | !giu 45 |
!gic |
Comment on issue | !gic 45 "Fixed" |
| Command | Function | Example |
|---|---|---|
!gb |
Create branch | !gb feature/auth |
!gbl |
List branches | !gbl |
!gco |
Checkout branch | !gco develop |
| Operation | Research | Innovate | Plan | Execute | Review |
|---|---|---|---|---|---|
| Search repos | β | β | β | β | β |
| Read files | β | β | β | β | β |
| Create repo | β | β | β | β | β |
| Push files | β | β | β | β | β |
| Create PR | β | β | β | β | β |
| Create issue | β | β | β | β | β |
| Merge PR | β | β | β | β | β |
/research
!gr "authentication best practices" # Search for examples
!gget owner/repo auth/README.md # Read implementation
!gil owner/repo # Check known issues
/plan
!gb feature/user-auth # Plan branch
/execute
!gco feature/user-auth # Switch branch
# ... implement feature ...
!gp # Push changes
!gpr # Create pull request
/review
!gpl # List open PRs
!gget PR#123 src/auth.js # Review specific file
!gprr 123 "LGTM" # Approve PR
/research
!gil label:bug # Find bug reports
/plan
!gi "Plan: Fix authentication bug" # Create planning issue
/execute
!gic 45 "Fixed in commit abc123" # Update issue
!giu 45 --close # Close issue
Use in RESEARCH mode to find examples:
// Symbol: Ξβ
operation: search_repositories
command: !gr
permissions: All modes
// Example usage
!gr "jwt authentication nodejs"
// Returns: List of relevant repositories// In EXECUTE mode
1. Create feature branch
!gb feature/new-feature
2. Implement changes
// ... code implementation ...
3. Push changes
!gp
4. Create pull request
!gpr --title "Add new feature" --body "Implements [βοΈΟβ:Rβ
]"// In REVIEW mode
1. List pull requests
!gpl --state open
2. Get PR details
!gget PR#123
3. Review changes
// Analyze implementation
4. Add review
!gprr 123 --approve "Meets requirements [βοΈΟβ:Rβ
]"Recommended scopes for Personal Access Token:
-
repo- Full repository access -
workflow- GitHub Actions (if needed) -
read:org- Organization read (if needed)
-
Never commit tokens
# .gitignore .env *.token
-
Use environment variables
# .env (local only) GITHUB_TOKEN=ghp_xxxxxxxxxxxx -
Rotate tokens regularly
- Set expiration dates
- Revoke unused tokens
- Monitor token usage
// Push multiple files
!gp --files "src/*.js" --message "Update all services"
// Create multiple issues
!gi --bulk issues.json
// Update multiple PRs
!gpm --auto-merge label:ready// Complex repository search
!gr "language:typescript stars:>100 authentication"
// Issue search with filters
!gil "is:open label:bug assignee:@me"
// PR search
!gpl "is:open review:required base:main"// Auto-merge approved PRs
!gpm --auto label:approved checks:passing
// Bulk close stale issues
!giu --close "is:open updated:<2024-01-01"
// Create release
!gt v1.0.0 --notes "Release notes [βοΈΟβ
:Mβ]"Error: Bad credentials
Solution:
- Check GITHUB_TOKEN is set
- Verify token hasn't expired
- Ensure token has required scopes
Error: Not found
Solution:
- Check repository name format:
owner/repo - Verify repository exists
- Check access permissions
Error: API rate limit exceeded
Solution:
- Wait for rate limit reset
- Use authenticated requests
- Implement caching
β οΈ GitHub push not allowed in RESEARCH mode
Solution:
- Switch to EXECUTE mode
- Follow mode workflow
- RESEARCH: Search and read only
- PLAN: Create issues for planning
- EXECUTE: Full repository operations
- REVIEW: Read and review only
feat: Add user authentication [βοΈΟβ:Rβ]
fix: Resolve login timeout [βοΈΟβ
:Iββ]
docs: Update API documentation
feature/user-authentication
bugfix/login-timeout
refactor/auth-service
## Description
Implements user authentication as specified in [βοΈΟβ:Rβ]
## Changes
- Added JWT authentication
- Created login endpoint
- Added tests
## Testing
- [ ] Unit tests pass
- [ ] Integration tests pass
- [ ] Manual testing complete// Weekly metrics
!gstats --period week
- Commits: 47
- PRs merged: 3
- Issues closed: 5
- Code reviews: 8!ghealth owner/repo
- Open issues: 12
- Open PRs: 3
- Last commit: 2 hours ago
- Contributors: 5GitHub operations automatically update:
- Οβ (activeContext.md) - Current PR/issue
- Οβ (progress.md) - Completed PRs/issues
- Οβ (protection.md) - Protected branches
Use in commits and PRs:
Implements [βοΈΟβ:Rβ
] # Requirement reference
Fixes [βοΈΟβ
:Iββ] # Issue reference
Updates [βοΈΟβ:Pβ] # Pattern reference
- ποΈ Framework Overview
- π RIPER Modes
- πΎ Memory System
- π£ Symbolic Notation
- π Phase Management
- π‘οΈ Code Protection
- π Context References
- π Permission System
- π Cross-References
- πΎ Backup System
- π Mode Transitions
- πΎ Memory Management
- π‘οΈ Protection Workflow
- π Context Management
- π₯ Team Collaboration
- π£ Symbol Reference
- β¨οΈ Command Reference
- π Mode Reference
- π Permission Matrix
- π API Reference
- π Overview
- π GitHub Integration
- π Web Search
- π Browser Automation
- π³ Docker Integration
-
Installation Issues
- Node.js Version Compatibility
- Package Installation Failures
- Framework Dependencies Missing
- Database Connection Issues
- Port Conflicts
- Environment Setup Issues
- Build and Development Issues
- Framework CLI Issues
-
Configuration & Runtime Issues
- Framework Configuration Problems
- Runtime Performance Issues
- Module Loading and Plugin Issues
- Database and Storage Issues
- Memory Leaks and High Memory Usage
- High CPU Usage
-
BMAD Module Issues
- BMAD Module Initialization Problems
- Business Model Canvas Issues
- Stakeholder Management Issues
- Analytics and Reporting Issues
- Performance Optimization
-
Database & API Issues
- Database Connection Problems
- Database Migration Issues
- API Performance and Reliability Issues
- Data Consistency Issues
- Transaction Problems
-
Performance & Memory Issues
- Memory Management
- CPU Optimization
- Database Query Performance
- Caching Issues
- Resource Monitoring
-
Security & Authentication Issues
- Authentication Failures
- Authorization Problems
- JWT Token Issues
- Session Management
- CORS and Security Headers
- SSL/TLS Configuration
-
Deployment & Production Issues
- Production Deployment Failures
- Environment Configuration
- Load Balancing Issues
- Monitoring and Logging
- Backup and Recovery
When reporting issues, please include:
- Framework version (
npm list @cursoriper/core) - Node.js version (
node --version) - Operating system and version
- Error messages and stack traces
- Steps to reproduce the issue
- Configuration files (sanitized)
- Recent changes or deployments
- Technical Support: support@cursoriper.com
- Documentation: https://docs.cursoriper.com
- Community Forum: https://community.cursoriper.com