mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #18598] [CLOSED] feat: add custom headers to tool calls #63705
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/18598
Author: @Grezvany13
Created: 10/24/2025
Status: ❌ Closed
Base:
dev← Head:feature/custom-tool-headers📝 Commits (8)
845f111add frontend part of custom MCP headers353f1c8Merge remote-tracking branch 'origin/main' into feature/custom-tool-headers3fe2640Merge branch 'main' into feature/custom-tool-headersb988994Merge remote-tracking branch 'origin/feature/custom-tool-headers' into feature/custom-tool-headers05c01b6add additional headers to actual Tool calls + minor fixes3b8b0e2add config to get_tool_server_data call3d58fe0Merge branch 'refs/heads/dev' into feature/custom-tool-headers20c74dbremove console.log + cleanup📊 Changes
5 files changed (+97 additions, -5 deletions)
View changed files
📝
backend/open_webui/routers/configs.py(+8 -1)📝
backend/open_webui/utils/middleware.py(+5 -0)📝
backend/open_webui/utils/tools.py(+8 -2)➕
src/lib/components/AddServerModal.svelte(+0 -0)📝
src/lib/components/AddToolServerModal.svelte(+76 -2)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch may lead to immediate closure of the PR.Changelog Entry
Description
Makes it possible to add custom headers to tool calls by adding a (optional) KEY => VALUE list to the Tools Modal.
Reason is that not all MCP's use or require the "standard" Auth headers, and custom MCP's can use it for custom implementations (eg. require
API_CLIENTandAPI_SECRET).Added
Changed
N/A
Deprecated
N/A
Removed
N/A
Fixed
N/A
Security
N/A
Breaking Changes
Additional Information
Based on Discussion: https://github.com/open-webui/open-webui/discussions/17893
Screenshots or Videos
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.