fix(a2a): advertise resolved port on explicit cards - #605
Merged
Conversation
Contributor
✅ No Breaking Changes DetectedNo public API breaking changes found in this PR. |
Contributor
|
Claude Security Review: no high-confidence findings. (run) |
jariy17
approved these changes
Jul 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
serve_a2aAGENTCORE_RUNTIME_URLprecedence and directbuild_a2a_appbehavior when no override is suppliedPORT, explicitport=, and deployed runtime URL precedenceReproduction
Generated ADK and LangGraph templates provide cards that advertise
http://localhost:9000/. Outsideagentcore dev, running:PORT=9002 uv run python main.pybinds the server to 9002 but previously left the explicit card URL at 9000.
serve_a2aalready passes its resolved local URL intobuild_a2a_app; this change applies that URL to explicit cards as well as generated cards.Testing
uv run pytest tests/bedrock_agentcore/runtime/test_a2a.py -q(31 passed, A2A v1)uv run pytest tests/bedrock_agentcore/runtime -q(332 passed)uv run pytest tests/integration/runtime/test_a2a_integration.py -q(10 passed)http://localhost:9002/http://localhost:9003/