We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/markjoyeuxcom/mcp-github-actions'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
usage-examples.md•4.7 KiB
# GitHub MCP Usage Examples
## Repository Management
### List Repositories
```
"List my repositories sorted by last updated"
"Show me all my public repositories"
"List repositories in my organization"
```
### Repository Details
```
"Get details for my project-name repository"
"Show me the README.md from my project-name repository"
"What files are in the src/ directory of my project?"
```
### Code Search
```
"Search for 'authentication' across all my repositories"
"Find all TypeScript files containing 'MCP'"
"Search for 'TODO' comments in my project-name repository"
```
## Issue Management
### View Issues
```
"Show me open issues in my project-name repository"
"List all closed issues in project-name from last month"
"What issues are assigned to me?"
```
### Create Issues
```
"Create an issue titled 'Fix login bug' in my project-name repository"
"Create a feature request for dark mode in project-name"
```
## Pull Request Management
### View Pull Requests
```
"Show me open pull requests in project-name"
"List all my pull requests across repositories"
"What pull requests need my review?"
```
## GitHub Actions & Workflows ⭐
### Workflow Overview
```
"Show me all workflows in my project-name repository"
"What workflows are available in my project?"
"Get details for the 'Deploy' workflow"
```
### Workflow Runs
```
"Show me recent workflow runs in project-name"
"What's the status of the latest deployment?"
"Show me failed workflow runs from the last week"
"Get details for workflow run #142"
```
### Workflow Management
```
"Trigger the deployment workflow for production"
"Run the test workflow on the feature branch"
"Cancel the currently running workflow in project-name"
"Re-run the failed jobs in workflow run #140"
```
### Advanced Workflow Operations
```
"Trigger the deploy workflow with environment=staging and version=1.2.3"
"Show me jobs for workflow run #142"
"List artifacts from the latest build"
"Get workflow usage statistics for the CI workflow"
```
### Workflow Monitoring
```
"Show me the status of all running workflows"
"What workflows failed in the last 24 hours?"
"Check if any deployments are currently running"
"Show me the latest workflow run for each workflow"
```
## Advanced Examples
### Multi-Repository Operations
```
"Show me all repositories that have open issues"
"List workflow failures across all my repositories"
"What repositories have the most recent commits?"
```
### DevOps Workflows
```
"Check if the production deployment workflow completed successfully"
"Show me all failed CI runs that need attention"
"List all artifacts from builds in the last week"
"Trigger emergency rollback workflow"
```
### Development Workflows
```
"What's the status of the feature branch CI?"
"Show me test results from the latest pull request"
"Check if the release workflow is ready to run"
"Get performance test results from latest workflow"
```
### Monitoring & Analytics
```
"How much GitHub Actions time have I used this month?"
"Show me workflow usage statistics"
"What workflows consume the most runner time?"
"List all workflow artifacts and their sizes"
```
## Integration Examples
### with Other Tools
```
"After checking workflow status, create an issue if deployments are failing"
"Search for configuration files and check their deployment status"
"Show me commits and their corresponding workflow results"
```
### Team Collaboration
```
"Show me pull requests that passed all checks"
"List issues that were mentioned in recent commits"
"What workflows are blocking the current release?"
```
## Error Handling Examples
### Troubleshooting
```
"Why did workflow run #123 fail?"
"Show me error logs from the latest deployment"
"What jobs failed in the CI workflow?"
"Check if there are any permission issues with workflows"
```
### Recovery Actions
```
"Re-run only the failed tests from the last workflow"
"Cancel all running workflows and start fresh"
"Trigger the manual deployment workflow"
```
## Pro Tips
### Efficient Workflow Management
- Use specific workflow names when triggering: "Run the 'Deploy to Production' workflow"
- Check status before re-running: "Show me the status before re-running workflow #142"
- Monitor long-running workflows: "Check if the security scan workflow is still running"
### Best Practices
- Always check workflow status before deploying
- Use branch-specific workflow triggers for testing
- Monitor artifact sizes and cleanup old builds
- Review failed workflows before re-running
### Workflow Inputs
When triggering workflows with inputs:
```
"Run the deploy workflow with these inputs:
- environment: production
- version: v1.2.3
- notify_slack: true"
```
This comprehensive workflow support makes the GitHub MCP the most powerful repository management tool available for Claude Desktop!