Skip to content

[cli-tools-test] MCP Server Permission Denied Error Blocking All Testing #14178

@github-actions

Description

@github-actions

Problem Description

The Daily CLI Tools Exploratory Tester is unable to perform any testing due to a "Permission denied and could not request permission from user" error when attempting to use MCP server tools, including the agentic-workflows server.

Impact

  • Severity: Critical
  • Frequency: Always (100% failure rate)
  • Affected Tools: All MCP tools (agentic-workflows, github, bash, status)
  • Workaround: None identified

This completely blocks the automated testing workflow, preventing:

  • Testing of audit command functionality
  • Testing of logs command functionality
  • Testing of compile command functionality
  • Any MCP tool usage for exploratory testing

Steps to Reproduce

  1. Workflow triggered: Daily CLI Tools Exploratory Tester
  2. Attempt to call any MCP tool (e.g., agentic_workflows-status)
  3. Observe "Permission denied" error

Expected Behavior

MCP server tools should be accessible and return responses based on tool invocation.

Actual Behavior

All tool calls return: Permission denied and could not request permission from user

Environment

  • Repository: github/gh-aw
  • Run ID: 21757938067
  • Workflow: Daily CLI Tools Exploratory Tester
  • Date: 2026-02-06T16:32:18Z

Diagnostics

MCP Server Status (from logs)

MCP Gateway: ✅ Healthy and running

- ✓ startup: MCPG Gateway version: v0.0.103
- ✓ startup: Loaded 3 MCP server(s): [agentic_workflows github safeoutputs]
- ✓ backend: Successfully connected to MCP backend server
- ✓ startup: Starting in ROUTED mode on 0.0.0.0:80

MCP Configuration (/home/runner/.copilot/mcp-config.json):

{
  "mcpServers": {
    "agentic_workflows": {
      "type": "http",
      "url": "(host.docker.internal/redacted)
      "tools": ["*"]
    },
    "github": { ... },
    "safeoutputs": { ... }
  }
}
```

**Agentic Workflows MCP Server**: ✅ Initialized successfully
```
[2026-02-06T16:32:04Z] [INFO] [backend] Successfully launched MCP backend server: agentic_workflows
[2026-02-06T16:32:04Z] [INFO] [backend] [stderr] mcp:server MCP server ready on stdio
[2026-02-06T16:32:04Z] [INFO] [backend] Successfully registered tools from agentic_workflows

Error Details

Failed Tool Calls:

  • agentic_workflows-status → Permission denied
  • bash commands → Permission denied (some commands succeed, others fail)

Gateway Logs: No errors or authentication failures logged. All requests show status 200 or 202.

Analysis

The MCP infrastructure (gateway, backend servers, configuration) is functioning correctly. The "Permission denied" error appears to originate from the Copilot agent environment itself, not from the MCP servers or gateway.

Possible causes:

  1. Agent permission model: The Copilot agent may have restrictions on which MCP tools can be called
  2. Authentication/authorization: Session or token validation may be failing at the agent level
  3. Tool registration: MCP tools may not be properly registered with the agent runtime
  4. Environment issue: Specific to this workflow's execution environment

Recommendations

  1. Investigate agent permission model: Review how the Copilot agent validates and authorizes MCP tool calls
  2. Check tool registration: Verify that agentic-workflows tools are properly registered in the agent's tool catalog
  3. Review authentication flow: Ensure the agent session has proper credentials for MCP tool access
  4. Test in different context: Try the same workflow with a different engine (e.g., claude, codex) to isolate the issue
  5. Agent logs: Examine Copilot agent internal logs (if available) for more detailed error information

Additional Context

This is a blocker for the entire Daily CLI Tools Exploratory Testing workflow. Without MCP tool access, no testing phases can be executed. The workflow instructions explicitly state "DO NOT USE gh aw it is not authenticated. Only use tools."

The workflow appears to be caught in a permissions deadlock where:

  • Direct CLI usage is unavailable (not authenticated)
  • MCP tool usage is blocked (permission denied)
  • No alternative testing mechanism is available

AI generated by Daily CLI Tools Exploratory Tester

  • expires on Feb 13, 2026, 4:36 PM UTC

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions