mirror of
https://github.com/open-webui/mcpo.git
synced 2026-11-05 01:27:39 +00:00
[PR #299] feat: header metadata support #245
Labels
No labels
bug
can't reproduce
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/mcpo#245
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/mcpo/pull/299
Author: @Hsienz
Created: 6/17/2026
Status: 🔄 Open
Base:
dev← Head:streamable-http-metadata-support📝 Commits (6)
788ff92Merge pull request #287 from open-webui/dev410e672chore: udpate mcp 1.17.0 to 1.28.0bf2bc62feat: send metadata when enable client-header-forwarding9938344feat: add client-header-forwarding to clibdb0a48refactor: change server name placeholder7e99ed1feat: metadata support📊 Changes
5 files changed (+90 additions, -27 deletions)
View changed files
📝
src/mcpo/__init__.py(+5 -1)📝
src/mcpo/main.py(+11 -0)📝
src/mcpo/utils/headers.py(+1 -2)📝
src/mcpo/utils/main.py(+4 -4)📝
uv.lock(+69 -20)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Update mcp package so that ClientSession.tool_call() function support meta parameter.
So we can pass unused meta to tool call from exist client-header-forwarding functionality.
Also, implementing the client-header-forwarding to cli command ONLY for streamable-http because I rarely use other type and not able to testing
Added
Send unused meta from client-header-forwarding functionality to tool_call
Add client-header-forwarding to cli command for streamable-http type
usage:
See here for format of config.json
Changed
Additional Information
You need to add something like middleware to get meta field
e.g.
Screenshots or Videos
Left panel is mcpo log
Right panel is MCP server log
You can see Authorization appear in the MCP server log
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.