Skip to content

Preserve structured JSON-RPC server error data - #291

Open
EhsanAzish80 wants to merge 5 commits into
modelcontextprotocol:mainfrom
EhsanAzish80:feat/json-rpc-error-data
Open

EhsanAzish80 wants to merge 5 commits into
modelcontextprotocol:mainfrom
EhsanAzish80:feat/json-rpc-error-data

Conversation

@EhsanAzish80

@EhsanAzish80 EhsanAzish80 commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

This keeps error.data when decoding server errors, so clients can inspect the supported versions in -32022 and required capabilities in -32021. Existing error cases keep their current behavior. This is one prerequisite for #245.

The branch is updated to current main and includes the Ubuntu CI setup and client-test timing fixes shared with #307.

Tests: the earlier local run passed 553 Swift tests, including JSON round trips for both July error examples. CI passed all six jobs on 09a7df5, including Ubuntu 24.04. AI helped write the tests; I ran them.

@EhsanAzish80
EhsanAzish80 requested a review from a team as a code owner November 2, 2026 07:13
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.

1 participant