Repository navigation
feat(catalog-mcp): add transformData - #3736
Draft
josemontespg wants to merge 1 commit into
Draft
josemontespg wants to merge 1 commit into
josemontespg wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces the transformData function to the A2UI MCP catalog, allowing surfaces to evaluate standard JMESPath expressions against tool results to shape them into data model updates. The changes include the implementation of the function, schema updates, comprehensive unit tests, and documentation. The reviewer pointed out that the placeholder [#NNNN] in the changelog should be replaced with the actual pull request number before merging.
josemontespg
force-pushed
the
catalogs-mcp-transform-data
branch
from
October 29, 2026 00:26
faa5e32 to
5d6f545
Compare
josemontespg
force-pushed
the
catalogs-mcp-transform-data
branch
from
October 29, 2026 00:59
5d6f545 to
d1bce65
Compare
This branch has not been deployed
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
Adds the
transformDatadata function to the v1 MCP catalog and@a2ui/catalog-mcp.transformDataevaluates a standard JMESPath expression, passed in itsjmespathargument, againstdata, letting a surface select, filter, and reshape fields from acallMcpToolpayload into the{path: value}object thatupdateDataModelwrites.transformDatais declared incatalogs/mcp/v1/catalog.json, registered onmcpCatalog, and exported asTransformDataApiandTransformDataImplementation. It implements standard JMESPath with no extensions, raises anA2uiExpressionErrorwhen an expression fails to parse (Invalid JMESPath expression: ...) or evaluate, and treats@pathor@callobjects insidedataas plain data rather than expressions.Changes
typescript/catalogs/mcp/src/functions/transform_data.tsandtransform_data.test.ts: implementTransformDataApiandTransformDataImplementationwith unit and JMESPath compliance tests.typescript/catalogs/mcp/src/catalog.tsandsrc/index.ts: registerTransformDataImplementationonmcpCatalogand exportTransformDataApiandTransformDataImplementation.catalogs/mcp/v1/catalog.jsonandtypescript/catalogs/mcp/src/catalog.test.ts: declaretransformDatawith links to the JMESPath specification and check parity withmcpCatalog.typescript/catalogs/mcp/package.jsonandyarn.lock: addjmespathand@types/jmespath.catalogs/mcp/README.md,typescript/catalogs/mcp/README.md,CHANGELOG.md: documenttransformDataand howupdateDataModel(transformData(callMcpTool(...)))chains settle async tool results.Verification
yarn workspace @a2ui/catalog-mcp run testandyarn workspace @a2ui/catalog-mcp run lint: node and karma suites pass, includingtransform_data.test.tsand thecallMcpTool.test.tspayload chaining case.specification/v1_0/test/run_tests.pyand./scripts/fix_format.sh --checkpass.