mirror of
https://github.com/open-webui/mcpo.git
synced 2026-11-05 01:27:39 +00:00
[PR #103] [CLOSED] feat: Add custom header support for SSE connections #171
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#171
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/103
Author: @zsiddique
Created: 4/27/2025
Status: ❌ Closed
Base:
dev← Head:main📝 Commits (4)
3da8462add headers support for sse6edc95dfix mising arg and json for headersf7d4ae8Add test6f70218Merge branch 'dev' into main📊 Changes
6 files changed (+409 additions, -244 deletions)
View changed files
📝
README.md(+11 -1)📝
pyproject.toml(+1 -0)📝
src/mcpo/__init__.py(+4 -0)📝
src/mcpo/main.py(+16 -3)➕
src/mcpo/tests/test_sse_client.py(+120 -0)📝
uv.lock(+257 -240)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
This PR adds support for passing custom HTTP headers to SSE connections in the mcpo tool. This enhances the flexibility of the SSE client by allowing users to include authentication tokens and other custom headers when connecting to SSE servers. The implementation ensures backward compatibility with existing configurations. The motivation for this change was support Home Assistant built in MCP SSE
Added
Added support for optional HTTP headers in SSE connections
Added --headers command-line option for specifying headers as a JSON string
Added headers configuration in the config.json file format for SSE servers
Added comprehensive test cases for the new header functionality
Changed
Updated the SSE client initialization to accept and use custom headers
Updated documentation in README.md to demonstrate how to use the new headers feature
Deprecated
Removed
Fixed
N/A
Security
Enhanced security by supporting authentication headers for SSE connections
Breaking Changes
N/A
Additional Information
Dependencies
Added pytest-asyncio>=0.21.1 as a dev dependency for proper async test support.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.