mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #23985] [CLOSED] feat: add MCP prompt support in chats #82340
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23985
Author: @ultramancode
Created: 4/22/2026
Status: ❌ Closed
Base:
dev← Head:feat/mcp-prompts-dev📝 Commits (2)
47caa7bfeat: add MCP prompt support in chats515e8d5fix: stabilize MCP prompt flow📊 Changes
77 files changed (+2163 additions, -116 deletions)
View changed files
📝
backend/open_webui/main.py(+1 -0)📝
backend/open_webui/routers/configs.py(+2 -5)📝
backend/open_webui/routers/tools.py(+110 -25)➕
backend/open_webui/test/apps/webui/routers/test_tools.py(+225 -0)➕
backend/open_webui/test/util/test_mcp_prompts.py(+663 -0)📝
backend/open_webui/utils/mcp/client.py(+92 -17)📝
backend/open_webui/utils/middleware.py(+203 -53)📝
src/lib/apis/tools/index.ts(+62 -0)📝
src/lib/components/chat/Chat.svelte(+129 -12)📝
src/lib/components/chat/MessageInput.svelte(+147 -2)📝
src/lib/components/chat/MessageInput/IntegrationsMenu.svelte(+28 -0)➕
src/lib/components/chat/MessageInput/MCPPromptPickerModal.svelte(+98 -0)📝
src/lib/components/chat/Messages.svelte(+6 -1)📝
src/lib/components/chat/Messages/UserMessage.svelte(+23 -0)📝
src/lib/components/chat/Placeholder.svelte(+3 -0)📝
src/lib/i18n/locales/ar-BH/translation.json(+6 -0)📝
src/lib/i18n/locales/ar/translation.json(+6 -0)📝
src/lib/i18n/locales/az-AZ/translation.json(+6 -0)📝
src/lib/i18n/locales/bg-BG/translation.json(+6 -0)📝
src/lib/i18n/locales/bn-BD/translation.json(+6 -0)...and 57 more files
📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
https://github.com/user-attachments/assets/a9587cd7-8962-4065-a508-798a1bc9ac0e
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.