Skip to content

[BUG] Docs say the Gateway discovers/supports A2A Agents, but it only discovers MCP #102

Closed

Description

@inference-gateway-maintainer

Summary

Both README.md and CLAUDE.md imply the Gateway performs A2A/Agent service discovery. It does not — A2A/Agent discovery is Orchestrator-only. The Gateway CRD has no a2a field, and gateway_controller.go only discovers MCP CRs.

Evidence

  • api/v1alpha1/gateway_types.go GatewaySpec (L28-87) has no a2a/agent field (only mcp has serviceDiscovery). grep -ni 'agent\|a2a' gateway_types.go returns nothing.
  • internal/controller/gateway_controller.go only implements discoverMCPs / MCPList (L1439-1462); there is no Agent discovery.
  • A2A lives solely on the Orchestrator: OrchestratorA2ASpec (api/v1alpha1/orchestrator_types.go L124-138).

README drift

The "A2A Service Discovery Configuration" example (~L548-568) shows a Gateway with:

spec:
  a2a:
    enabled: true
    serviceDiscovery: { ... }
    agents:
      - name: static-agent
        url: "http://static-agent:8080"

spec.a2a does not exist on the Gateway and is rejected by the API server. The surrounding "A2A (Agent-to-Agent)" feature bullets (~L140-142) also imply Gateway-side agent discovery.

CLAUDE.md drift

  • "Gateway and Orchestrator both implement service discovery for Agent and MCP CRs" — the Gateway discovers MCP only.
  • "Agent … Discoverable by Gateway and Orchestrator via label selectors" — Agents are discoverable by the Orchestrator only.

Suggested fix

  • README: remove the Gateway spec.a2a example (the Orchestrator does support spec.a2a.serviceDiscovery — move/retarget the example there), and reword the A2A feature bullets to scope A2A to the Orchestrator.
  • CLAUDE.md: scope Agent discovery to the Orchestrator; state that the Gateway's discovery is MCP-only.

Activity

  1. added
    documentation
    on Jun 9, 2026
  2. inference-gateway-maintainer commented on Jun 9, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Validated the claims against the code — confirmed correct. The Gateway does not discover or support A2A Agents; A2A/Agent service discovery is an Orchestrator-only feature.

    • GatewaySpec (api/v1alpha1/gateway_types.go) has no a2a/agent field.
    • gateway_controller.go implements discoverMCPs only, Watches(&MCP{}) only, and carries RBAC for mcps only — there is no Agent discovery path.
    • A2A discovery lives entirely on the Orchestrator: discoverAgents / reconcileAgentsConfigMap driven by spec.a2a.serviceDiscovery, with RBAC for agents.

    Worth noting for anyone who recalls "the operator auto-discovers A2A agents": that capability is real — it just belongs to the Orchestrator, not the Gateway.

    Fix opened in #107:

    • README: retarget the A2A service-discovery example to kind: Orchestrator with the real spec shape, fix the agent-requirements snippet to use an Agent CR, scope the A2A feature bullets to the Orchestrator, and drop the broken examples/gateway-a2a-service-discovery.yaml reference.
    • CLAUDE.md: scope Agent discovery to the Orchestrator and state the Gateway's discovery is MCP-only.

    This issue will close automatically when #107 merges.

  3. moved this from Todo to Done in 2026on Jun 12, 2026
  4. inference-gateway-releaser commented on Jul 5, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.17.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions