Use MCP Tasks for non-blocking GitHub Actions workflow monitoring
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- github-actions, go
- Ambito
- backend-api-design, ci-cd, devtools
Direzione di ricerca
Inizia leggendo la specifica MCP Tasks e le operazioni Actions esistenti, in particolare actions_get e le indicazioni attuali sul polling del workflow in Discussion #1088. Il lavoro è completato quando una nuova operazione di monitoraggio del workflow restituisce immediatamente un Task e lo completa quando l'esecuzione raggiunge uno stato terminale, includendo facoltativamente il contesto dei job falliti e le parti finali dei log.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the feature or problem you’d like to solve
GitHub MCP already exposes workflow runs, jobs, and logs. The remaining gap is waiting for CI without making the agent supervise it.
Today, an agent must repeatedly poll actions_get or block on gh run watch. Discussion #1088 recommends polling every 15–30 seconds. That keeps the agent occupied with orchestration instead of useful work.
The 2026-07-28 MCP specification introduced Tasks for long-running asynchronous operations. Workflow monitoring is a natural fit.
Proposed solution
Add an Actions operation that waits for a workflow run as an MCP Task:
{
"method": "watch_workflow_run",
"owner": "github",
"repo": "github-mcp-server",
"run_id": 123456789,
"until": "completed"
}
It would return immediately with a Task handle:
{
"resultType": "task",
"taskId": "gh-actions-run-123456789",
"status": "working"
}
GitHub MCP would own the wait, completing the Task when the run reaches a terminal state. Clients could use tasks/get or task subscriptions instead of making the model poll Actions.
This requires no webhook, tunnel, or inbound connectivity for a local server. On failure, the Task could optionally return failed jobs and relevant log tails using existing Actions capabilities.
Example prompts or workflows (for tools/toolsets only)
- “Push this fix and watch CI. If it fails, investigate the failing job.”
- Agent pushes → starts workflow Task → CI fails → Task returns failed-job context → agent fixes and pushes again.
- “Trigger the deploy workflow and tell me when it finishes.”
- “Watch this run; only bring me back in if something fails.”
Additional context
GitHub MCP already has the Actions data plane. What is missing is the asynchronous waiting primitive.
Before MCP Tasks, client-driven polling was a reasonable workaround. Tasks now provide a protocol-native lifecycle for this operation.
Related:
- Discussion #1088 — current workflow iteration guidance relies on polling
- Issue #1722 — workflow status and log access for agents
- Issue #924 — job-log access for large workflows
- MCP Tasks specification (2026-07-28)
- Lingua principale
- Go
- Stelle
- 33.1k
- Fork
- 5k
- Merge medio
- 2g 1h
- PR unite (30g)
- 25
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di github/github-mcp-server
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
github/github-mcp-server#3235 ·
-
enhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
github/github-mcp-server#3042 · 2 commenti ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
github/github-mcp-server#3032 · 1 reazione ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
github/github-mcp-server#2803 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
github/github-mcp-server#2740 ·
Tutte le issue di github/github-mcp-server
Issue simili
-
textual definition
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
geneontology/go-ontology#32653 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
-
needs design
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Priority/High ready-for-agent Severity/Major Type/Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100