mcp-context-forge icon indicating copy to clipboard operation
mcp-context-forge copied to clipboard

[UI-REWRITE][DESIGN]: ContextForge developer experience: A2A

Open a-effort opened this issue 5 months ago • 9 comments

Overview

New ContextForge developer experience for A2A. Design

Part of Epic: #4093. Design assets for:

  • [x] #7023 Build out the Agents page
  • [x] #7024 Connect and select agents in the virtual server builder
  • [x] #7025 Show and import Agent Cards
  • [ ] #7026 Add a task view for A2A agents
  • [x] #7027 Generated Agent Cards use the pre-1.0 shape
  • [x] #7353 Add a Try it tab to the agent details drawer
  • [x] #7539 Add agent skills (manually added agent)
  • [x] #7588 Update agent details styles

To do as a follow up: #7540 Re-fetch a registered agent's Agent Card

a-effort avatar Jun 24 '26 15:06 a-effort

Updates to make to the design:

  • A2A requires tags for every skill.
  • The spec defines examples as a list (vs single field).
  • Derive ID from the skill name with an option to override, matching how the agent name and slug work (vs requiring users to type it)

a-effort avatar Oct 27 '26 21:10 a-effort

Design ready: https://github.com/IBM/mcp-context-forge/issues/7023 Build out the Agents page https://github.com/IBM/mcp-context-forge/issues/7024 Connect and select agents in the virtual server builder https://github.com/IBM/mcp-context-forge/issues/7025 Show and import Agent Cards

a-effort avatar Oct 29 '26 01:10 a-effort

Reviewed the proposed design using LLM subagents with PM/design/engineer assignments. #4734 mermaid diagram & issue body updated with changes.

a-effort avatar Oct 30 '26 04:10 a-effort

Updated design (moving add skills to later step when no agent card is available). @marekdano

a-effort avatar Nov 06 '26 09:11 a-effort

Initial version of the details drawer (test/preview & add skills will be a follow up). @marekdano

a-effort avatar Nov 11 '26 08:11 a-effort

Added design for test agent functionality in the details drawer (#7353). @marekdano

a-effort avatar Nov 12 '26 22:11 a-effort

Added design for add skill(s) in the details drawer #7539. @marekdano

a-effort avatar Nov 17 '26 03:11 a-effort

The experience across the sub-issues, end to end. Numbers in the labels are the issues.

flowchart TD
    A1["Agents page: Add agent / 7023"] --> F["Shared connect form"]
    A2["Virtual server builder: AI agent source card / 7024"] --> F
    F --> U["Step 1. Enter a base endpoint or a card URL"]
    U -->|"fetch-card, no credential / 4734"| O{"Fetch outcome"}

    O -->|"unreachable, or refused by SSRF policy"| STOP["Stop and say which. No credential changes either outcome"]
    O -->|"no card at either well-known path"| MAN["Manual entry / 7350"]
    O -->|"401 or 403"| CRED["Collect credential. WWW-Authenticate names the scheme only. OAuth and authenticated cards / 7591"]
    O -->|"card returned"| REV
    CRED --> RE["Refetch the same URL with the credential"]
    CRED -.->|"open defect"| CBUG["Import suggests an auth mode no credential satisfies, for authorization-code and OIDC cards / 7592"]
    RE -->|"still 401"| REJ["Stop: key rejected"]
    RE -->|"card returned, key proven"| REV

    REV["Step 2. Review what the agent published: name, provider, version, skills, interfaces, protocol version, security schemes. Confirm, do not edit / 7025"]
    REV -->|confirm| DEP["Step 3. Supply what the card cannot contain: credential fields derived from securitySchemes, team, visibility, tags"]
    DEP --> EXT{"extendedAgentCard declared?"}
    EXT -->|yes| EF["Step 4. Fetch the extended card, which also proves the credential"]
    EF -->|"401, key rejected"| DEP
    EF -->|"card returned"| SAVE
    EXT -->|"no, key unverified"| SAVE
    MAN -->|"no stored card, no drift detection"| SAVE
    SAVE["Step 5. Save. Shown as unverified when nothing exercised the credential"]

    SAVE --> LIST["Agent in the list: enable, disable, delete behind a confirm / 7023"]
    SAVE -.->|"connected from the builder"| SEL["Immediately selectable as a virtual server source, persisted on create and kept on update / 7024"]

    LIST --> D["Details drawer / 7023, styling 7588"]
    D --> ED["Edit the agent, excluding skills / 7352"]
    D --> T1["Configuration, with no credentials rendered"]
    D --> T2["Agent Card tab: skills with tags and examples, interfaces, capabilities, extensions listed one by one, security schemes, signature reported but not verified / 7025"]
    D --> T3["Plugin bindings, viewable and editable"]
    D --> T4["Try it tab, visible only with a2a.invoke / 7353"]
    D --> T5["Add skills, manual agents only: name, description, tags, id derived from the name / 7539"]

    T4 --> Q["One optional query field. Empty sends the service default, so it doubles as a reachability check"]
    Q --> RES{"Reply"}
    RES -->|"reply rendered by protocol_version"| OK["Success"]
    RES -->|"200 carrying a JSON-RPC error"| FAIL["Failure with code and message, noting the HTTP call succeeded"]
    RES -->|"read timeout"| TO["Timeout, kept separate from an agent failure"]
    RES -->|"input-required or auth-required"| WAIT["Neither success nor failure"]
    RES -->|"response carries a task"| TID["Task id and state, no links to task routes"]

    TID --> TV["Task view / 7026"]
    WAIT --> TV
    TV --> TL["List across agents, filtered by state, cursor paginated"]
    TV --> TD2["Detail: message history, artifacts, state transitions, cancel where cancellable"]
    TV --> TW["Waiting on input or authorization gets its own treatment, with a place for the action that answers it"]

    LIST --> HOME["Home A2A status card / 7324"]
    STAT["Runtime status: active transport and per-subsystem state / 7323"] --> HOME
    REACH["reachable written from an observation, or dropped / 7603"] --> HOME

    SAVE -->|"scheduled or on demand / 7540"| SYNC{"Re-sync: card changed?"}
    SYNC -->|"304"| NOOP["No action"]
    SYNC -->|"200 with a new ETag"| DR["Drift report, separating interface, security and streaming changes from display-only ones"]
    DR -->|"not confirmed"| KEEP["Keep the stored card, flag the agent as drifted but still usable"]
    DR -->|"confirmed"| APPLY["Apply the new card version"]
    APPLY --> SAVE

One connect form serves both entry points. Only a fetch that returns a card stores one, so an agent added by hand gets no drift detection.

Updated from the first version of this comment: added editing (#7352), named #7591 on the credential branch with #7592 as the open defect there, and added the home status card (#7324), which needs #7323 for subsystem rows and #7603 for per-agent status.

a-effort avatar Nov 20 '26 22:11 a-effort

Design for adding an agent as a source for a virtual added.

a-effort avatar Nov 24 '26 02:11 a-effort