Workflow Failure
Workflow: Draft PR Cleanup
Branch: main
Run: https://github.com/github/gh-aw/actions/runs/24588664079
🔒 MCP Servers Blocked by Policy: The Copilot CLI blocked MCP server connections due to an organization or enterprise policy. The agent ran without access to MCP tools (GitHub API, safe outputs, etc.).
This is a policy configuration issue, not a transient error — retrying will not help.
How to fix this
An organization or enterprise administrator must enable the "MCP servers in Copilot" policy:
- Go to your enterprise or organization settings
- Navigate to Policies → Copilot
- Enable "MCP servers in Copilot"
For detailed instructions, see the official documentation.
Note: On some GitHub Enterprise instances, the Policies tab may only be visible at the enterprise level, not the organization level.
⚠️ Engine Failure: The copilot engine terminated unexpectedly.
Last agent output:
*Draft PR Cleanup workflow run: 24588664079*
```json
{"missing_data": {"data_type": "Open draft pull requests in github/gh-aw", "reason": "GitHub MCP tools not configured for this workflow run (mcp-config is empty)", "context": "safeoutputs CLI also blocked by seccomp filter preventing node execution", "alternatives": "Add tools.github.toolsets: [pull_requests, issues] to workflow frontmatter and rerun"}}
Changes +0 -0
Requests 1 Premium (19m 56s)
Tokens ↑ 7.1m • ↓ 51.0k • 6.9m (cached)
[copilot-driver] 2026-04-17T22:24:54.852Z attempt 1: process exit event exitCode=0
[copilot-driver] 2026-04-17T22:24:54.852Z attempt 1: process closed exitCode=0 duration=19m 58s stdout=18717B stderr=163B hasOutput=true
[copilot-driver] 2026-04-17T22:24:54.852Z success on attempt 1: totalDuration=19m 58s
### Action Required
**Assign this issue to Copilot** using the `agentic-workflows` sub-agent to automatically debug and fix the workflow failure.
<details>
<summary>Debug with any coding agent</summary>
Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.):
Debug the agentic workflow failure using https://raw.githubusercontent.com/github/gh-aw/main/debug.md
The failed workflow run is at https://github.com/github/gh-aw/actions/runs/24588664079
</details>
<details>
<summary>Manually invoke the agent</summary>
Debug this workflow failure using your favorite Agent CLI and the `agentic-workflows` prompt.
- Start your agent
- Load the `agentic-workflows` prompt from `.github/agents/agentic-workflows.agent.md` or <https://github.com/github/gh-aw/blob/main/.github/agents/agentic-workflows.agent.md>
- Type `debug the agentic workflow draft-pr-cleanup failure in https://github.com/github/gh-aw/actions/runs/24588664079`
</details>
> [!TIP]
> <details>
> <summary>Stop reporting this workflow as a failure</summary>
>
> To stop a workflow from creating failure issues, set `report-failure-as-issue: false` in its frontmatter:
> ```yaml
> safe-outputs:
> report-failure-as-issue: false
> ```
>
> </details>
> Generated from [Draft PR Cleanup](https://github.com/github/gh-aw/actions/runs/24588664079/agentic_workflow) · [◷](https://github.com/search?q=repo%3Agithub%2Fgh-aw+is%3Aissue+%22gh-aw-workflow-id%3A+draft-pr-cleanup%22&type=issues)
> - [x] expires <!-- gh-aw-expires: 2026-04-18T10:25:12.707Z --> on Apr 18, 2026, 10:25 AM UTC
<!-- gh-aw-agentic-workflow: Draft PR Cleanup, engine: copilot, id: 24588664079, workflow_id: draft-pr-cleanup, run: https://github.com/github/gh-aw/actions/runs/24588664079 -->
Workflow Failure
Workflow: Draft PR Cleanup
Branch: main
Run: https://github.com/github/gh-aw/actions/runs/24588664079
🔒 MCP Servers Blocked by Policy: The Copilot CLI blocked MCP server connections due to an organization or enterprise policy. The agent ran without access to MCP tools (GitHub API, safe outputs, etc.).
This is a policy configuration issue, not a transient error — retrying will not help.
How to fix this
An organization or enterprise administrator must enable the "MCP servers in Copilot" policy:
For detailed instructions, see the official documentation.
copilotengine terminated unexpectedly.Last agent output:
Changes +0 -0
Requests 1 Premium (19m 56s)
Tokens ↑ 7.1m • ↓ 51.0k • 6.9m (cached)
[copilot-driver] 2026-04-17T22:24:54.852Z attempt 1: process exit event exitCode=0
[copilot-driver] 2026-04-17T22:24:54.852Z attempt 1: process closed exitCode=0 duration=19m 58s stdout=18717B stderr=163B hasOutput=true
[copilot-driver] 2026-04-17T22:24:54.852Z success on attempt 1: totalDuration=19m 58s
Debug the agentic workflow failure using https://raw.githubusercontent.com/github/gh-aw/main/debug.md
The failed workflow run is at https://github.com/github/gh-aw/actions/runs/24588664079