- Notifications
You must be signed in to change notification settings - Fork1k
feat: add GitHub Actions tools for workflow management#491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Open
gabornyergesX wants to merge2 commits intogithub:mainChoose a base branch fromgabornyergesX:main
base:main
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
+1,818 −3
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
- Introduced new tools for managing GitHub Actions workflows, including listing workflows, running workflows, canceling workflow runs, and retrieving workflow run logs.- Updated README.md to include new `actions` toolset and detailed descriptions of the new tools.- Added comprehensive tests for the new functionality to ensure reliability and correctness.
…ent capabilities- Added new tools for managing GitHub Actions, including listing workflows, retrieving workflow run logs, and managing workflow runs.- Integrated the new `actions` toolset into the default toolset group for improved accessibility.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading.Please reload this page.
Add GitHub Actions tools for workflow management
Overview
This PR implements comprehensive GitHub Actions support for the MCP server, adding 14 new tools that enable complete workflow and CI/CD management through the GitHub Actions API.
New Tools Added
output.mp4
Workflow Management (Read-only)
list_workflows
- List all workflows in a repositorylist_workflow_runs
- List workflow runs for a specific workflow with filtering optionsget_workflow_run
- Get detailed information about a specific workflow runget_workflow_run_logs
- Download logs for a workflow runget_workflow_run_usage
- Get usage metrics and billing information for workflow runsJob Management (Read-only)
list_workflow_jobs
- List jobs for a specific workflow runget_job_logs
- Download logs for a specific workflow jobArtifact Management (Read-only)
list_workflow_run_artifacts
- List artifacts generated by a workflow rundownload_workflow_run_artifact
- Get download URLs for workflow artifactsWorkflow Operations (Write)
run_workflow
- Trigger workflows via workflow_dispatch eventsrerun_workflow_run
- Re-run entire workflow runsrerun_failed_jobs
- Re-run only failed jobs in a workflow runcancel_workflow_run
- Cancel running workflowsAdministrative (Destructive)
delete_workflow_run_logs
- Delete workflow run logs (marked as destructive)Key Features
✅Complete CI/CD Workflow Support - Covers the full lifecycle from triggering workflows to managing artifacts
✅Proper Permission Classification - Tools are correctly categorized as read-only, write, or destructive operations
✅Comprehensive Parameter Validation - All tools include proper input validation and error handling
✅Rich Metadata - Each tool includes detailed descriptions and parameter documentation
✅Test Coverage - Full test suite with 50+ test cases covering all scenarios
✅Documentation - Updated README with detailed tool descriptions and usage examples
Implementation Details
Testing
actions_test.go
Breaking Changes
None - this is purely additive functionality.
Closes
Closes#268 - Add support for Actions APIs
Usage Example