mcp-app-bridge: enable sendMessage() and updateModelContext()
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.
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
yeah ill keep track of this
@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.
PR welcome happy to review it
@bluepuma77
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.