-
Notifications
You must be signed in to change notification settings - Fork 266
Open
Description
Description
Copilot CLI agent does not recognize or invoke custom MCP server tools configured via mcp-servers: frontmatter, despite the MCP gateway successfully starting and connecting to all servers.
Environment
- gh-aw: v0.50.6
- awf: v0.23.0
- MCP Gateway: v0.1.5
- Copilot CLI model: claude-sonnet-4.6
- Runner: ubuntu-latest
Workflow Configuration
mcp-servers:
custom-server:
url: "https://example.com/mcp-endpoint"
headers:
API-KEY: "${{ secrets.API_KEY }}"
APP-KEY: "${{ secrets.APP_KEY }}"
allowed:
- "tool_a"
- "tool_b"
- "tool_c"
tools:
github:
toolsets: [issues]Observed Behavior
1. MCP Gateway starts successfully
All servers connect and health check passes:
Health response body: {"status":"healthy","specVersion":"1.8.0","gatewayVersion":"v0.1.5","servers":{"custom-server":{"status":"running","uptime":0},"github":{"status":"running","uptime":0},"safeoutputs":{"status":"running","uptime":0}}}
✓ custom-server: connected
✓ github: connected
✓ safeoutputs: connected
✓ All checks passed (3 succeeded, 0 skipped)
Copilot configuration written to /home/runner/.copilot/mcp-config.json
2. Copilot CLI does not recognize custom MCP tools
The agent reads skill files, then immediately determines that custom MCP tools are unavailable without attempting to call any of them, and falls back to error handling.
3. gh aw mcp inspect shows 0 custom server tools
$ gh aw mcp inspect <workflow-name>
# Shows only 41 GitHub MCP tools, 0 custom server tools
$ gh aw mcp list-tools custom-server <workflow-name>
# Exit code 1, empty output
Expected Behavior
Copilot CLI should discover and invoke the custom MCP tools configured in mcp-servers: frontmatter via the MCP gateway.
Reproduction
- Configure an HTTP-based custom MCP server in workflow frontmatter
- Compile and run the workflow
- Observe that the MCP gateway connects successfully but the Copilot CLI agent does not use the tools
Notes
- The stdio-based GitHub MCP server (41 tools) is correctly discovered
- Only HTTP-based custom MCP servers appear to be affected
Possibly Related Issues
- Agent tools from MCP are not visible when agent itself is a tool in Copilot CLI >= 0.0.361 copilot-cli#693 (Agent tools from MCP not visible)
- Copilot appears to not use github mcp server copilot-cli#268 (Copilot appears to not use MCP server)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels