Resolve A2A and MCP bindings by name - #1004
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the MCP and A2A tool resolution flow to use name-based lookups in the UiPath SDK (with legacy slugs passed as compatibility hints), and adjusts test coverage to match the new binding behavior.
Changes:
- Switch MCP server resolution from
retrieve_async(slug=...)toretrieve_by_name_async(name=..., legacy_slug=...). - Switch Remote A2A agent resolution from
retrieve_async(slug=...)toretrieve_by_name_async(name=..., legacy_slug=...)and update the A2aClient interface accordingly. - Update MCP/A2A tests to mock and assert the new name-based SDK calls.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/agent/tools/test_mcp/test_mcp_tool.py | Updates MCP tool invocation test mocks to use retrieve_by_name_async. |
| tests/agent/tools/test_mcp/test_mcp_client.py | Updates MCP client tests to mock/assert retrieve_by_name_async arguments (name + legacy_slug + folder_path). |
| tests/agent/tools/test_a2a_tool.py | Updates A2A tests for the new client fields and retrieve_by_name_async call shape. |
| src/uipath_langchain/agent/tools/mcp/mcp_client.py | Changes MCP server URL resolution to use name-based retrieval with legacy slug fallback. |
| src/uipath_langchain/agent/tools/a2a/a2a_tool.py | Changes A2A agent URL resolution to use name-based retrieval with legacy slug fallback; updates client construction accordingly. |
radugheo
force-pushed
the
fix/a2a-mcp-resolve-by-name
branch
3 times, most recently
from
July 23, 2026 10:10
3fa9f00 to
0512fd6
Compare
radu-mocanu
reviewed
Jul 23, 2026
radugheo
force-pushed
the
fix/a2a-mcp-resolve-by-name
branch
from
July 28, 2026 11:19
0512fd6 to
b662883
Compare
radu-mocanu
reviewed
Jul 29, 2026
radugheo
force-pushed
the
fix/a2a-mcp-resolve-by-name
branch
6 times, most recently
from
July 31, 2026 11:20
f18e5ce to
d0793a5
Compare
radugheo
force-pushed
the
fix/a2a-mcp-resolve-by-name
branch
from
July 31, 2026 11:26
d0793a5 to
cc42ff2
Compare
|
radu-mocanu
approved these changes
Jul 31, 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.



name=lookup.uipath-platform>=0.2.15,<0.3.0, bumpuipath-langchainto0.15.0, and refresh the lockfile.