mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #24523] [CLOSED] feat: Add contextual MCP/tool-server file upload allowlists #131371
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/24523
Author: @icsy7867
Created: 5/9/2026
Status: ❌ Closed
Base:
dev← Head:dev-mcp-file-allowlist📝 Commits (7)
bbda6b8Allow MCP tool servers to accept configured file typesa496f61Prefer MCP file allowlists over built-in STT907c16cLet MCP file allowlists bypass built-in processing9dd6977Respect disabled chat tools for file allowlists3eb1d60Update translations for MIME type allowlist labelde8ff55chore: format tool server modal2f6419echore: format files router📊 Changes
66 files changed (+284 additions, -9 deletions)
View changed files
📝
backend/open_webui/routers/files.py(+127 -1)📝
src/lib/apis/files/index.ts(+8 -3)📝
src/lib/components/AddToolServerModal.svelte(+68 -2)📝
src/lib/components/chat/Chat.svelte(+5 -1)📝
src/lib/components/chat/MessageInput.svelte(+15 -2)📝
src/lib/i18n/locales/ar-BH/translation.json(+1 -0)📝
src/lib/i18n/locales/ar/translation.json(+1 -0)📝
src/lib/i18n/locales/az-AZ/translation.json(+1 -0)📝
src/lib/i18n/locales/bg-BG/translation.json(+1 -0)📝
src/lib/i18n/locales/bn-BD/translation.json(+1 -0)📝
src/lib/i18n/locales/bo-TB/translation.json(+1 -0)📝
src/lib/i18n/locales/bs-BA/translation.json(+1 -0)📝
src/lib/i18n/locales/ca-ES/translation.json(+1 -0)📝
src/lib/i18n/locales/ceb-PH/translation.json(+1 -0)📝
src/lib/i18n/locales/cs-CZ/translation.json(+1 -0)📝
src/lib/i18n/locales/da-DK/translation.json(+1 -0)📝
src/lib/i18n/locales/de-DE/translation.json(+1 -0)📝
src/lib/i18n/locales/dg-DG/translation.json(+1 -0)📝
src/lib/i18n/locales/el-GR/translation.json(+1 -0)📝
src/lib/i18n/locales/en-GB/translation.json(+1 -0)...and 46 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
This PR adds optional per-tool-server file extension and MIME type allowlists so MCP/OpenAPI tool integrations can accept files that would
otherwise be handled or rejected by Open WebUI’s built-in processing paths.
This is useful for tool servers that own specialized file workflows, such as audio diarization/transcription, PDF processing, media
analysis, or other file-specific integrations.
Why
Previously, file admission and processing were tightly coupled to built-in Open WebUI capabilities. For example, audio uploads were coupled
to built-in STT settings, which made it difficult to build MCP tools that process audio independently.
This PR lets a configured and active tool integration declare ownership of specific file types without requiring unrelated core features to
be enabled or bypassed globally.
Added
As an example, a sample mp3 file I found on the internet, even if my STT MCP Integration is added in the Admin Settings, but disabled for a model, the original Audio pipeline re-engages:
When I enable my MCP Integration, with an mp3 file extension listed, my audio file uploads, bypasses the audio pipeline and no toast errors appear:
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
As always, thank you for such an amazing tool!
Screenshots or Videos
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.