Skip to content

feat(mcp): export the json-rpc schema for requests and response#16553

Open
aayush-kapoor wants to merge 1 commit into
mainfrom
aayush/mcp-exports
Open

feat(mcp): export the json-rpc schema for requests and response#16553
aayush-kapoor wants to merge 1 commit into
mainfrom
aayush/mcp-exports

Conversation

@aayush-kapoor

Copy link
Copy Markdown
Collaborator

Background

brought up in #15999

there was a req by users to use the json rpc request and response schemas. since we already export the inferred types, the schemas should be fine to be exported

Summary

export the schemas:

  • JSONRPCRequestSchema
  • JSONRPCResponseSchema
  • JSONRPCErrorSchema
  • JSONRPCNotificationSchema

Manual Verification

na

Checklist

  • All commits are signed (PRs with unsigned commits cannot be merged)
  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

Related Issues

fixes #15999

@aayush-kapoor aayush-kapoor added the backport Admins only: add this label to a pull request in order to backport it to the prior version label Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Admins only: add this label to a pull request in order to backport it to the prior version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ai-sdk/mcp: export JSONRPC zod schemas

1 participant