Skip to content

Copilot CLI does not recognize HTTP-based custom MCP server tools despite successful gateway connection #18712

@lupinthe14th

Description

@lupinthe14th

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

  1. Configure an HTTP-based custom MCP server in workflow frontmatter
  2. Compile and run the workflow
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions