Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Tool request: download workflow run artifact contents

Đang mở
#2,329 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
github, github-actions, go
Lĩnh vực
api, ci-cd, tooling

Hướng nghiên cứu

Bắt đầu từ entry point được đề xuất download_workflow_run_artifact(owner, repo, run_id, artifact_name) và xem xét các REST endpoint được liệt kê để tìm kiếm và tải xuống artifact. Được coi là hoàn thành khi một lần gọi công cụ MCP có thể lấy nội dung của workflow artifact đã chọn, bao gồm token-usage.jsonl để phân tích sau khi chạy, mà không yêu cầu bên gọi phải xâu chuỗi các REST call hoặc tự giải nén artifact.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem

For cost tracking and post-run analysis of agentic workflows, the missing piece is read access to workflow run artifacts. Specifically, downloading the agent-artifacts artifact from a completed gh aw run to parse token-usage.jsonl for per-run token cost data.

The current workaround requires chaining several REST API calls:

  1. GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts to list artifacts
  2. GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/zip to download
  3. Unzip and parse the relevant file

This is a lot of plumbing for what should be a natural thing for an AI agent to do: "look at what the last run produced."

Proposed tool

download_workflow_run_artifact(owner, repo, run_id, artifact_name) that returns the artifact contents (or a structured representation for known formats like JSONL).

Why this matters

The token-usage.jsonl format written by gh-aw's firewall proxy (since v0.25.8) contains per-model token counts for every agentic workflow run. A single MCP tool call to retrieve it would unlock a natural class of "analyze what the last agent run did" workflows. Right now that analysis requires dropping out of MCP and into raw REST.

More broadly, artifacts are a primary output mechanism for GitHub Actions. Being able to read them via MCP would make a wide range of post-run analysis workflows significantly simpler.

Ngôn ngữ chính
Go
Star
33.1k
Fork
5k
Merge trung bình
2 ngày 1 giờ
Pull request đã merge (30 ngày)
25

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/github-mcp-server

Tất cả issue của github/github-mcp-server

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.