Skip to content

Conversation

@viddrobnic
Copy link
Contributor

Expose jsonrpc2.MakeID, jsonrpc2.EncodeMessage and jsonrpc2.DecodeMessage functions to allow implementing custom mcp.Transport. Add an example that demonstrates a custom transport implementation.

Fixes #110

@jba
Copy link
Contributor

jba commented Jul 10, 2025

#117 moves the other JSONRPC symbols to their own package. When that lands, it would be great if you would rebase this onto it and make the corresponding changes.

@jba
Copy link
Contributor

jba commented Jul 10, 2025

#117 has landed.

Expose `jsonrpc2.MakeID`, `jsonrpc2.EncodeMessage` and `jsonrpc2.DecodeMessage`
functions to allow implementing custom `mcp.Transport`. Add an example
that demonstrates a custom transport implementation.

Fixes modelcontextprotocol#110
Copy link
Contributor

@jba jba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Very close!

Add documentation to exported `jsonrpc` functions.
@jba jba merged commit fe208c1 into modelcontextprotocol:main Jul 14, 2025
3 checks passed
@jba
Copy link
Contributor

jba commented Jul 14, 2025

Thanks!

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.

No way to implement custom Transport

2 participants