[WIP] Fix MCP server permission denied error for CLI tools testing #14190
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Original prompt
This section details on the original issue you should resolve
<issue_title>[cli-tools-test] MCP Server Permission Denied Error Blocking All Testing</issue_title>
<issue_description>## 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
This completely blocks the automated testing workflow, preventing:
auditcommand functionalitylogscommand functionalitycompilecommand functionalitySteps to Reproduce
agentic_workflows-status)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 userEnvironment
Diagnostics
MCP Server Status (from logs)
MCP Gateway: ✅ Healthy and running
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_workflowsError Details
Failed Tool Calls:
agentic_workflows-status→ Permission deniedbashcommands → 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:
Recommendations
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 awit is not authenticated. Only use tools."The workflow appears to be caught in a permissions deadlock where:
Comments on the Issue (you are @claude[agent] in this section)
@pelikhan Investigate gateway.log and agent logs to determine why this mcp fail...