You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Transports are very easily written, so yes, it's possible to create a transport that runs whatever code you want instead of doing I/O.
It's a good point that perhaps servers don't need to hardcode transports! Would welcome any thoughts on how to generalize this without dictating too much of how the server itself is implemented.
Agreed that server sdks can be refactored so it's possible to "import" a server and without spinning up an HTTP server or a dedicated process. Not sure if it fits in the protocol spec though. I see two possible ways to implement this:
implement a new transport based on raw input/output streams (e.g. ReadableStream<Uint8Array> + WritableStream<Uint8Array>) and use json-rpc over it.
make individual capabilities callable by the other side. A rough example would be:
The first option may be added to the protocol spec but it's quite ugly...
The second option is not really a "protocol" and is language-specific so it may only fit in the SDK doc...
Closing this issue as it had not had any discussion for a while. If this is something that warrants additional discussion, let's refer to the #transports-wg channel in Discord.
Activity
jspahrsummers commentedon Dec 7, 2024
I think this issue is describing three different things:
Merge pull request #98 from nanbingxyz/main
lirc571 commentedon May 8, 2025
Agreed that server sdks can be refactored so it's possible to "import" a server and without spinning up an HTTP server or a dedicated process. Not sure if it fits in the protocol spec though. I see two possible ways to implement this:
ReadableStream<Uint8Array>+WritableStream<Uint8Array>) and use json-rpc over it.The first option may be added to the protocol spec but it's quite ugly...
The second option is not really a "protocol" and is language-specific so it may only fit in the SDK doc...
localden commentedon Dec 4, 2025
Closing this issue as it had not had any discussion for a while. If this is something that warrants additional discussion, let's refer to the
#transports-wgchannel in Discord.