Skip to content

feat(admin): add A2A protocol version dropdown to agent form - #4761

Merged
brian-hussey merged 2 commits into
IBM:mainfrom
kimsehwan96:feat/a2a-protocol-version-dropdown
May 22, 2026
Merged

brian-hussey merged 2 commits into
IBM:mainfrom
kimsehwan96:feat/a2a-protocol-version-dropdown

Conversation

@kimsehwan96

Copy link
Copy Markdown
Contributor

🔗 Related Issue

Closes #4760


📝 Summary

Adds a Protocol Version selector (1.0 / 0.3, default 1.0) to the A2A agent create and edit forms in the admin UI.


🏷️ Type of Change

  • Bug fix
  • Feature / Enhancement
  • Documentation
  • Refactor
  • Chore (deps, CI, tooling)
  • Other (describe below)

🧪 Verification

Check Command Status
Lint suite make lint pass
Unit tests make test pass
Coverage ≥ 80% make coverage

I've done playwright e2e test.


✅ Checklist

  • Code formatted (make black isort pre-commit)
  • Tests added/updated for changes
  • Documentation updated (if applicable)
  • No secrets or credentials committed

📓 Notes (optional)

AS-IS

592399004-52de6857-a2c3-4739-9809-1a35302cabe3

TO-BE

스크린샷 2026-05-14 오후 6 19 59 스크린샷 2026-05-14 오후 6 20 06 Protocol set with 0.3 version 스크린샷 2026-05-14 오후 6 20 14 In edit page

@vishu-bh vishu-bh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement, thanks @kimsehwan96 for adding this to both create and edit flows.

One thing I noticed: the edit handler now defaults missing protocol_version to "1.0". That means an existing 0.3 agent could be silently changed back to 1.0 if an older/cached form or another admin form caller submits an edit without this field.

Could we preserve the existing protocol version when the edit form omits protocol_version, instead of defaulting on edit? The create path default to 1.0 makes sense, but update should probably only change the value when the field is explicitly submitted.

@vishu-bh

Copy link
Copy Markdown
Collaborator

Hi @kimsehwan96, are you planning to address the review comment and failing CI on this PR?

@kimsehwan96
kimsehwan96 force-pushed the feat/a2a-protocol-version-dropdown branch from 97c869f to 5580e31 Compare May 20, 2026 08:39
@kimsehwan96

Copy link
Copy Markdown
Contributor Author

@vishu-bh Hi, I rebased and applied your opinion about default a2a protocol version.

Comment thread mcpgateway/admin.py
Comment on lines +15992 to +16025
# Defaulting on edit would silently coerce an existing 0.3 agent back
# to "1.0" for any caller (cached form, scripted PATCH) that omits the field.
if form.get("protocol_version"):
agent_update.protocol_version = str(form["protocol_version"])

@kimsehwan96 kimsehwan96 May 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vishu-bh When update a2a api was called and if there is no protocol_version parameter in requests then just use as saved value.

If the update API call was made from Admin UI, there must be protocol_version so user's intended value will be submitted. But If the API call was made from script(e.g, curl) without protocol_version parameter then the values will not be modified.

@kimsehwan96
kimsehwan96 requested a review from vishu-bh May 20, 2026 08:46
@vishu-bh
vishu-bh force-pushed the feat/a2a-protocol-version-dropdown branch from 5580e31 to 59d584e Compare May 22, 2026 07:46
vishu-bh
vishu-bh previously approved these changes May 22, 2026

@vishu-bh vishu-bh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kimsehwan96 for taking on issue and addressing PR comments.

PR looks solid. LGTM ☘️

kimsehwan96 and others added 2 commits May 22, 2026 23:11
@brian-hussey
brian-hussey force-pushed the feat/a2a-protocol-version-dropdown branch from 40af815 to b6a51a4 Compare May 22, 2026 22:17
@brian-hussey
brian-hussey merged commit 71221d3 into IBM:main May 22, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Can't set A2A protocol version via admin UI.

3 participants