Call remote tools via websocket #1464
Unanswered
alex-schulster
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm building a setup where a backend SmolAgent (Python, FastAPI) needs to call tools that are defined on a frontend Electron app (renderer process). I want to use MCP over WebSocket for this, with the following constraints:
The reason streamable HTTP transport method is not use in this case is because I don't want the client to have to open a port. A websocket initiated by the client seems to be a good solution to this problem but I cannot find a way of implementing this.
Has anyone already done something like this, or even better, has a link to a minimal project demonstrating the implementation? Would be awesome!
Also, if another approach than websockets is more adapted, please share your thoughts!
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions