fix: trim discovery transports and return 422 on version mismatch#145
Open
damaz91 wants to merge 3 commits into
Open
fix: trim discovery transports and return 422 on version mismatch#145damaz91 wants to merge 3 commits into
damaz91 wants to merge 3 commits into
Conversation
carolinerg1
approved these changes
Jul 24, 2026
Only REST transport is currently supported by the Python server. Removing MCP, A2A, and Embedded transports from the discovery profile to prevent clients from attempting to use them. Closes Universal-Commerce-Protocol#133 TAG=agy CONV=4aee53ae-545a-4ca3-8b91-fee3b95e9ef7
Align Node.js version negotiation error response with the spec and Python implementation by returning HTTP 422 and a structured UcpErrorDetail. TAG=agy CONV=430e7e91-3e21-4a9d-802a-80c71390c95c
damaz91
force-pushed
the
fix/trim-discovery-transports
branch
from
July 24, 2026 14:37
3c857cb to
48f0478
Compare
Align reference Python server error responses with error_response.json and message_error.json schemas. - Use 'messages' wrapper instead of 'errors'. - Use standard 'severity' enums (unrecoverable, requires_buyer_input). - Raise UcpError/UcpVersionError in dependencies and format in central handler. - Update integration tests to match new structure. TAG=agy CONV=66cef4ea-c19e-4693-8c23-b155a5e0cddc
damaz91
force-pushed
the
fix/trim-discovery-transports
branch
from
July 24, 2026 14:40
48f0478 to
579b8aa
Compare
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.
Description
This PR includes the following fixes:
422 Unprocessable Entitywith a structuredUcpErrorDetailinstead of HTTP400 Bad Requestwhen the client requests an unsupported version, aligning with the spec and Python implementation.Category (Required)
ucp-schematool (resolver, linter, validator). (Requires Maintainer approval)Related Issues
Fixes #133
Checklist
!for breaking changes).Screenshots / Logs (if applicable)