Feature Request: Expose GitHub Project Item History/Timeline Events

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

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
38/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
github, go, graphql
Lĩnh vực
api, backend-api-design

Hướng nghiên cứu

Bắt đầu bằng cách xem xét các công cụ get_project_item và list_project_items hiện có, sau đó so sánh các API ProjectV2 GraphQL và issue timeline được đề cập trong yêu cầu. Xác định xem các sự kiện lịch sử và dữ liệu actor được yêu cầu có khả dụng hay không, chọn một thiết kế công cụ và xác định việc hoàn thành là trả về lịch sử item được hỗ trợ cùng với dấu thời gian, các thay đổi giá trị và actor.

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

Mô tả

stale

Problem Statement

Currently, the GitHub MCP server provides tools to view the current state of GitHub Project items (issues/PRs in projects), but there's no way to access the historical data about when items moved between columns or how long they spent in each status.

This limits the ability to:

  • Track cycle time metrics (time from "In Progress" to "Done")
  • Understand bottlenecks in workflows
  • Generate velocity and throughput reports
  • Analyze team performance over time

Use Case

As a user working with GitHub Projects, I want to be able to ask questions like:

  • "How long did issue #14560 spend in each column of the Move project board?"
  • "What's the average time issues spend in 'Review/QA' status?"
  • "Show me the timeline of when this issue moved between statuses"

Current Behavior

The get_project_item and list_project_items tools only return the current state of items, including their current field values. There's no historical tracking exposed through the MCP server.

Proposed Solution

Add new tool(s) to expose GitHub Project item timeline/history events. This could be:

Option 1: New dedicated tool
get_project_item_history({
  owner: string,
  owner_type: 'user' | 'org',
  project_number: number,
  item_id: number
})

Returns an array of events showing when the item was:

  • Added to the project
  • Moved between columns/status values
  • Field values were changed
  • Removed from the project (if applicable)

Each event should include:

  • Timestamp
  • Field that changed (e.g., "Status")
  • Previous value
  • New value
  • Actor (who made the change)
Option 2: Enhance existing tools

Add an optional include_history parameter to get_project_item that when set to true, includes the historical events alongside the current state.

GitHub API Support

GitHub's ProjectV2 API supports querying project item events through GraphQL. Example query:

query {
  node(id: "ITEM_NODE_ID") {
    ... on ProjectV2Item {
      fieldValueByName(name: "Status") {
        ... on ProjectV2ItemFieldSingleSelectValue {
          name
          updatedAt
        }
      }
    }
  }
}

Additionally, the REST API's timeline events endpoint could be used for issue/PR specific events.

Benefits

  • Enables workflow analytics and metrics tracking
  • Provides transparency into project management processes
  • Allows LLMs to answer time-based questions about project items
  • Supports building reports and dashboards through AI

Additional Context

This feature request came from a real-world scenario where a user wanted to track how long an issue spent in each column of their project board, but the current MCP server tools couldn't provide this information.

Related GitHub API documentation:

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

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.