Skip to content

Tool for retrieving workflow status and logs #1722

@C-Ross

Description

@C-Ross

Describe the feature or problem you’d like to solve

Agents are great at researching and automatically resolving job failures, however currently the agent can only read this data via gh run view or gh api command line tools, slowing iteration and making a much noisier experience for developers.

This also creates permission mismatch issues if the token in the environment is different than the one given to the MCP server.

ex: gh run view 20656271469 --log --repo my_org/my_repo 2>&1 | tail -200

gh api repos/my_org/my_repo/actions/runs/20656271469/jobs --jq '.jobs[] | select(.id == 59317655947) | {name: .name, conclusion: .conclusion, steps: [.steps[] | {name: .name, conclusion: .conclusion}]}'

Proposed solution

Provide a tool for accessing Actions workflows state and logs. Being able to rerun or invoke additional workflows would likely be a good followup, but these writes should be permissioned differently.

Example prompts or workflows (for tools/toolsets only)

Investigate failures of #.github/workflow/xyz, determine a cause and propose a solution.

Investigate failures of the Build and Test workflow, and find the change that introduced the failure.

Build and Test seems flaky, analyze how often it has been rerun and succeeded on the same commit, then investigate whcih tests contributed to those failures.

Additional context

Will provide on request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions