Skip to content
Talk to an engineer

A2A / MCP Protocols

Connect an A2A agent

Once your A2A server agent is deployed and reachable, connect it to a Copilot in Agent Studio → A2A Agents. The Copilot then discovers your agent’s skills and delegates matching tasks to it automatically.

  • Your remote A2A server agent must run over HTTPS and be reachable.
  • It must serve an Agent Card at /.well-known/agent.json (or a custom URL).
  • You need the agent’s base URL and authentication credentials.
  • A Copilot can connect up to 20 A2A agents.

Agent Studio → A2A Agents lists every agent connected to this Copilot:

ColumnWhat it shows
NameThe display name you gave the agent. This is also how it appears in the Actions filter in Conversations.
Base URLThe root URL of the remote agent.
AuthThe auth type in use — None, Bearer Token, or API Key.
Agent CardThe name from the fetched Agent Card and its skill count. A green check means the card was fetched and validated.
StatusToggle an agent on or off. A disabled agent stays configured, but the Copilot won’t invoke it.

Use Add Agent to connect a new one, or the menu on a row for per-agent options.

Path: Agent Studio → A2A Agents → Add Agent

FieldRequiredDescription
Display NameYesA friendly name for this agent (e.g. “Status Monitor Agent”). Shown in the Copilot’s tool list.
Base URLYesThe root URL where the remote A2A agent is hosted (e.g. https://my-agent.example.com).
Agent Card URLNoOverride the default card location. Leave blank to use <base-url>/.well-known/agent.json.
Protocol VersionYesCurrently A2A v0.3 (auto-selected).
Auth typeWhen to useFields
NoneAgent is open or network-restricted (no auth headers sent)
Bearer TokenAgent expects Authorization: Bearer <token>Token value
API KeyAgent expects X-API-Key: <key>Key value

After saving, click Fetch Agent Card to validate the connection and pull in your agent’s skills, then choose which skills to expose to the Copilot.

Toggle on to pass the current user’s identity to the remote agent via the X-Foldspace-User-Id header. You can also include a structured user-context data part:

Source fieldDefault keyDescription
User Emailuser_emailThe authenticated user’s email address
User IDuser_idThe user’s unique identifier
Subscription IDsubscription_idThe customer’s subscription identifier

Add static custom headers (for API versioning, routing, etc.) sent on every request to your agent.

SettingDefaultRangeDescription
Connect Timeout10s1–300sMax time to establish a connection
Request Timeout120s1–600sMax time to wait for a single HTTP response
Task Timeout300s1–900sMax total time for an A2A task to complete

Start in Agent Studio → Conversations and open the Actions filter — your A2A agent is listed there by its display name. Select it and click Apply to narrow the list to conversations that delegated to it. Open one, click View Analysis on the agent message, and check the Actions tab: each A2A call shows a Remote Agent badge, its status, and — when expanded — the Arguments sent, the Response returned, and the execution time. That’s usually enough to tell a timeout apart from an auth failure or a bad payload.

ProblemSolution
”Failed to fetch agent card”Verify the Base URL is reachable, the Agent Card URL serves valid JSON, and your auth credentials are correct.
Agent shows but the Copilot doesn’t invoke itCheck that the agent is Enabled and has at least one Exposed skill.
Authentication errors at runtimeConfirm the token or API key hasn’t expired or been revoked.
Agent times out during executionIncrease the Task Timeout in Advanced settings (default 300s).