Open
Description
Check Existing Issues
- I have searched the existing issues and discussions.
- I am using the latest version of mcpo.
mcpo Version
latest
Open WebUI Version (if applicable)
No response
Operating System
All
Browser (if applicable)
No response
Confirmation
- I have read and followed all instructions in
README.md
. - I am using the latest version of both MCPO and Open WebUI.
- I have included the browser console logs.
- I have included the Docker container logs.
- I have listed steps to reproduce the bug in detail.
Expected Behavior
Documentation should accurately reflect code.
Actual Behavior
Tried to use --headers
as described in the README, but I get this error.
user@box ~ % uvx mcpo --port 8000 --api-key "top-secret" --server-type "sse" --headers '{"X-API-Key": "asdf"}' -- http://127.0.0.1:8087/v1/mcp
Usage: mcpo [OPTIONS]
Try 'mcpo --help' for help.
╭─ Error ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ No such option: --headers Did you mean --header? │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
user@box ~ %
The actual code only supports --header
, as in mcpo/src/mcpo/__init__.py
,
headers: Annotated[
Optional[str], typer.Option("--header", "-H", help="Headers in JSON format")
] = None,
Steps to Reproduce
Use mcpo code, try to use --headers
as described by README.md.
Logs & Screenshots
user@box ~ % uvx mcpo --port 8000 --api-key "top-secret" --server-type "sse" --headers '{"X-API-Key": "asdf"}' -- http://127.0.0.1:8087/v1/mcp
Usage: mcpo [OPTIONS]
Try 'mcpo --help' for help.
╭─ Error ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ No such option: --headers Did you mean --header? │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
user@box ~ %
Additional Information
No response