mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #19241] [CLOSED] MCP: get __files__ information from OpenWebUI #63998
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/19241
Author: @tobiasbaur
Created: 11/17/2025
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (1)
f89e549Update middleware.py📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
backend/open_webui/utils/middleware.py(+4 -0)📄 Description
Description
A MCP server that accepts files: dict get access to the file information
Example mcp tool:
This allows an mcp server, with minimal parsing of the dict to know the id and local url on the file server, making it easy to access files via api or on the local file structure to be processed within an mcp tool.
Added
Screenshots or Videos
This is the result of the above mcp tool
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.