open-webui-plugins icon indicating copy to clipboard operation
open-webui-plugins copied to clipboard

mcp-app-bridge: enable sendMessage() and updateModelContext()

Open bluepuma77 opened this issue 6 months ago • 6 comments

It's great to have mcp-app-bridge as a starting point to get MCP Apps up and running in Open-WebUI. Would you consider adding more JS functions to enable interactivity (doc, article)? Would this even be possible through the plugin?

  • sendMessage() [1] - MCP Apps can submit new messages to the chat

  • updateModelContext()[2] - MCP Apps can provide invisible context (for the next user message)

That way a click inside a MCP Apps page can generate an action and drive the conversation, or add context for the next input the user enters.

bluepuma77 avatar Jun 02 '26 13:06 bluepuma77

sure its possible. not sure if i will get to this soon as mcp apps are quite inferior to what you can do natively in open webui and i do not personally use this plugin at all. I only developed it to prove a point hahaha

but ill look into it when i have the time

Classic298 avatar Jun 02 '26 13:06 Classic298

yeah ill keep track of this

Classic298 avatar Jun 02 '26 13:06 Classic298

@Classic298 It's amazing what modern AI tools can do: mcp-app-bridge fork. Let me know if you want a pull request, readme is probably a bit too much, you can just copy if you like.

sendMessage() works as intended. updateModelContext() can not add invisible context, it seems there is no Open-WebUI API for it. Instead the data is placed into the chat box and the user can continue typing.

bluepuma77 avatar Jun 02 '26 18:06 bluepuma77

PR welcome happy to review it

Classic298 avatar Jun 02 '26 18:06 Classic298

@bluepuma77

Classic298 avatar Jun 07 '26 01:06 Classic298

Sorry @Classic298, of course another project came in between. I found some things didn't work as expected (rant), so now I am back to the drawing board of plain MCP Apps, getting them to run in Claude and ChatGPT, then I will look again at Open-WebUI. But that may take some days/weeks.

bluepuma77 avatar Jun 09 '26 12:06 bluepuma77