Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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:main
base:main
Choose a base branch
Loading
fromgabornyergesX:main

Conversation

gabornyergesX
Copy link

@gabornyergesXgabornyergesX commentedJun 8, 2025
edited
Loading

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 repository
  • list_workflow_runs - List workflow runs for a specific workflow with filtering options
  • get_workflow_run - Get detailed information about a specific workflow run
  • get_workflow_run_logs - Download logs for a workflow run
  • get_workflow_run_usage - Get usage metrics and billing information for workflow runs

Job Management (Read-only)

  • list_workflow_jobs - List jobs for a specific workflow run
  • get_job_logs - Download logs for a specific workflow job

Artifact Management (Read-only)

  • list_workflow_run_artifacts - List artifacts generated by a workflow run
  • download_workflow_run_artifact - Get download URLs for workflow artifacts

Workflow Operations (Write)

  • run_workflow - Trigger workflows via workflow_dispatch events
  • rerun_workflow_run - Re-run entire workflow runs
  • rerun_failed_jobs - Re-run only failed jobs in a workflow run
  • cancel_workflow_run - Cancel running workflows

Administrative (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

  • Architecture: Follows existing MCP server patterns and conventions
  • Error Handling: Consistent error responses with meaningful messages
  • Pagination: Supports GitHub API pagination for list operations
  • Filtering: Includes advanced filtering options (by status, actor, branch, event, etc.)
  • Security: Proper handling of GitHub tokens and permissions

Testing

  • Added comprehensive test suite inactions_test.go
  • 50 test cases covering all tools and edge cases
  • Mocked GitHub API responses for reliable testing
  • All tests passing with proper error handling validation

Breaking Changes

None - this is purely additive functionality.

Closes

Closes#268 - Add support for Actions APIs

Usage Example

# List workflows in a repositoryecho'{"tool":"list_workflows","arguments":{"owner":"github","repo":"github-mcp-server"}}'| github-mcp-server# Trigger a workflowecho'{"tool":"run_workflow","arguments":{"owner":"github","repo":"github-mcp-server","workflow_file":"ci.yml","ref":"main"}}'| github-mcp-server

- 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.
@gabornyergesXgabornyergesX marked this pull request as ready for reviewJune 8, 2025 16:33
@gabornyergesXgabornyergesX requested a review froma team as acode ownerJune 8, 2025 16:33
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Add support for Actions APIs
1 participant
@gabornyergesX

[8]ページ先頭

©2009-2025 Movatter.jp