Skip to content

Preserve structured JSON-RPC server error data - #291

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

EhsanAzish80 wants to merge 1 commit into
modelcontextprotocol:mainfrom
EhsanAzish80:feat/json-rpc-error-data

Conversation

@EhsanAzish80

Copy link
Copy Markdown

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 issue #245.

Tests: 553 Swift tests passed locally, including JSON round trips for both July error examples.

AI assistance was used to write the code and tests. The diff was checked and the tests were run locally.

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