Skip to content

[Bug]: spec.AgentCard does not allow many agents on same domain #771

Closed

Description

@jmesnil

What happened?

https://darrelmiller.github.io/agentbin/index.html is a test bed that provides 3 agents on the same domain:

I was expecting to be able to connect to the "spec" agent card with a call to

A2A.getAgentCard("https://agentbin.greensmoke-1163cb63.eastus.azurecontainerapps.io/spec/");

but that does work as it builds the URL 'https://agentbin.greensmoke-1163cb63.eastus.azurecontainerapps.io/.well-known/agent-card.json" which is a 404.

The AgentCard follows the spec that mandates that the agent card can be at https://{server_domain}/.well-known/agent-card.json.
However the spec also says it should be possible to use "Pre-configured Agent Card URLs".

With the current AgentCard API, I've to split the agent url in two: server domain & path:

A2A.getAgentCard("https://agentbin.greensmoke-1163cb63.eastus.azurecontainerapps.io", "/spec/.well-know/agent-card.json");

This gives a poor UX if the client gets from URL as a parameter as it's up to the user to split this URL in 2.

Note that this does not work:

AgentCard card = A2A.getAgentCard("https://agentbin.greensmoke-1163cb63.eastus.azurecontainerapps.io/spec/.well-known/agent-card.json");

because the URL builder extracts the server domain from this URL and then appends /.well-known/agent-card.json.

It should be possible to pass a full URL of an agent card(including the well-known/agent-card.json bits) and let the client fetch this URL with doing any shenanigans.

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added theissue type on Mar 26, 2026
  2. perhaps468 commented on Mar 28, 2026

    @perhaps468

    Could you assign this to me? Thank you.

  3. ehsavoie commented on Apr 29, 2026

    @ehsavoie
    Collaborator

    Taking it ad we have not heard about this in a month

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions