Skip to content

pass through params if no mapping is specified#56

Open
kevin-- wants to merge 1 commit intojsonrpcx:masterfrom
kevin--:let-client-figure-it-out
Open

pass through params if no mapping is specified#56
kevin-- wants to merge 1 commit intojsonrpcx:masterfrom
kevin--:let-client-figure-it-out

Conversation

@kevin--
Copy link

@kevin-- kevin-- commented Jan 30, 2026

What

  • if the client does not specify a mapping when calling Add, pass through the params object

Why

  • I was recently working on implementing an Model Context Protocol server with this library, and it is impossible to specify optional named parameters.
  • Some Clients send the _meta parameter and some do not, so JSON RPC breaks in all these situations.
  • This way the implementor can check for parameters and determine what to do

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