-
Notifications
You must be signed in to change notification settings - Fork 8.8k
feat: implement MCP Client #1503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
dfa77cd
to
dbf289d
Compare
dbf289d
to
af6b5bb
Compare
The intended works has been completed. While doing so, I wanted to add the Prompt feature, but it would be better be done in the next PR. 😅 @thecodacus Could you review this PR? 🙏 |
I see this relies on function calling is function calling is the only way to do this.. if so We might need to have a way to indicate the user that. and have a fallback mechanism for models that does not support function calling, and disable tool call in such scenario |
Fair enough. I'll consider them and back to here after addressing. thanks! |
I've been poking at the server and client sides of MCP over the past couple of weeks, and am re-acquainting myself with the codebase after a very busy spell, but I'm happy to help bridge the gap between what MCP is (and isn't), and some misconceptions that might arise from MCP adoption via Bolt. Still learning about where I stand regarding the webapp interacting with MCP versus a native desktop app, even though Electron and web builds aren't extremely different. Anyway, feel free to reach out and I'll monitor this thread if there's some way I can help with testing. Got more MCP tool "servers" over here than I know what to do with and my first thought was to augment Bolt with it. |
In addition to the feedback I received, I am implementing missing features (progress monitoring, abort signal), and I think I will be able to implement the MCP client after I have sorted out the issues related to the abort signal first. I will submit this as a separate PR in advance. (please let me know if there are already working on or preparing for the aborting signal 🙏 ) |
Opened #1538 |
Update:
|
This is some nice work. I would like to note that the AI-SDK has been since updated to support MCP might be worth taking a look in to for this. |
Can we look at implementing this feature in the main branch - its very important! |
This PR adds Model Context Protocol(MCP) client feature, to enable leveraging various MCP servers.
MCP_SSE_
prefix.Here are the details of this work I am thinking about.
Since I don't fully understand this project and its tech stack, there may be some inappropriate technology use or approaches. so, if you see anything weird, please feel free to let me know!