[GH-ISSUE #159] issue: Help does not work due to an issue with Typer/Click #72

Open
opened 2026-10-18 21:11:17 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @gjsmo on GitHub (May 26, 2025).
Original GitHub issue: https://github.com/open-webui/mcpo/issues/159

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of mcpo.

mcpo Version

v0.0.14

Open WebUI Version (if applicable)

No response

Operating System

Docker

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

mcpo --help should produce a help panel

Actual Behavior

mcpo --help produces an error.

Steps to Reproduce

docker run -it --rm ghcr.io/open-webui/mcpo --help

Logs & Screenshots

 Usage: mcpo [OPTIONS]                                                                                                              
                                                                                                                                    
╭─────────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────────╮
│ /app/.venv/bin/mcpo:10 in <module>                                                                                               │
│                                                                                                                                  │
│    7 │   │   sys.argv[0] = sys.argv[0][:-11]                                                                                     │
│    8 │   elif sys.argv[0].endswith(".exe"):                                                                                      │
│    9 │   │   sys.argv[0] = sys.argv[0][:-4]                                                                                      │
│ ❱ 10 │   sys.exit(app())                                                                                                         │
│   11                                                                                                                             │
│                                                                                                                                  │
│ ╭───────────────────── locals ──────────────────────╮                                                                            │
│ │ app = <typer.main.Typer object at 0x7f87bfefbfd0> │                                                                            │
│ │ sys = <module 'sys' (built-in)>                   │                                                                            │
│ ╰───────────────────────────────────────────────────╯                                                                            │
│                                                                                                                                  │
│ /app/.venv/lib/python3.11/site-packages/typer/main.py:340 in __call__                                                            │
│                                                                                                                                  │
│ /app/.venv/lib/python3.11/site-packages/typer/main.py:323 in __call__                                                            │
│                                                                                                                                  │
│ /app/.venv/lib/python3.11/site-packages/click/core.py:1442 in __call__                                                           │
│                                                                                                                                  │
│ /app/.venv/lib/python3.11/site-packages/typer/core.py:677 in main                                                                │
│                                                                                                                                  │
│ /app/.venv/lib/python3.11/site-packages/typer/core.py:194 in _main                                                               │
│                                                                                                                                  │
│ /app/.venv/lib/python3.11/site-packages/click/core.py:1186 in make_context                                                       │
│                                                                                                                                  │
│ /app/.venv/lib/python3.11/site-packages/click/core.py:1197 in parse_args                                                         │
│                                                                                                                                  │
│ /app/.venv/lib/python3.11/site-packages/click/core.py:2416 in handle_parse_result                                                │
│                                                                                                                                  │
│ /app/.venv/lib/python3.11/site-packages/click/core.py:2355 in process_value                                                      │
│                                                                                                                                  │
│ /app/.venv/lib/python3.11/site-packages/click/decorators.py:539 in show_help                                                     │
│                                                                                                                                  │
│ /app/.venv/lib/python3.11/site-packages/click/core.py:730 in get_help                                                            │
│                                                                                                                                  │
│ /app/.venv/lib/python3.11/site-packages/click/core.py:1064 in get_help                                                           │
│                                                                                                                                  │
│ /app/.venv/lib/python3.11/site-packages/typer/core.py:691 in format_help                                                         │
│                                                                                                                                  │
│ /app/.venv/lib/python3.11/site-packages/typer/rich_utils.py:614 in rich_format_help                                              │
│                                                                                                                                  │
│ /app/.venv/lib/python3.11/site-packages/typer/rich_utils.py:373 in _print_options_panel                                          │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: Parameter.make_metavar() missing 1 required positional argument: 'ctx'

Additional Information

Very obviously due to https://github.com/fastapi/typer/discussions/1215, solution is to pin click==8.1.8.

Originally created by @gjsmo on GitHub (May 26, 2025). Original GitHub issue: https://github.com/open-webui/mcpo/issues/159 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of mcpo. ### mcpo Version v0.0.14 ### Open WebUI Version (if applicable) _No response_ ### Operating System Docker ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** MCPO and Open WebUI. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have listed steps to reproduce the bug in detail. ### Expected Behavior `mcpo --help` should produce a help panel ### Actual Behavior `mcpo --help` produces an error. ### Steps to Reproduce `docker run -it --rm ghcr.io/open-webui/mcpo --help` ### Logs & Screenshots ``` Usage: mcpo [OPTIONS] ╭─────────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────────╮ │ /app/.venv/bin/mcpo:10 in <module> │ │ │ │ 7 │ │ sys.argv[0] = sys.argv[0][:-11] │ │ 8 │ elif sys.argv[0].endswith(".exe"): │ │ 9 │ │ sys.argv[0] = sys.argv[0][:-4] │ │ ❱ 10 │ sys.exit(app()) │ │ 11 │ │ │ │ ╭───────────────────── locals ──────────────────────╮ │ │ │ app = <typer.main.Typer object at 0x7f87bfefbfd0> │ │ │ │ sys = <module 'sys' (built-in)> │ │ │ ╰───────────────────────────────────────────────────╯ │ │ │ │ /app/.venv/lib/python3.11/site-packages/typer/main.py:340 in __call__ │ │ │ │ /app/.venv/lib/python3.11/site-packages/typer/main.py:323 in __call__ │ │ │ │ /app/.venv/lib/python3.11/site-packages/click/core.py:1442 in __call__ │ │ │ │ /app/.venv/lib/python3.11/site-packages/typer/core.py:677 in main │ │ │ │ /app/.venv/lib/python3.11/site-packages/typer/core.py:194 in _main │ │ │ │ /app/.venv/lib/python3.11/site-packages/click/core.py:1186 in make_context │ │ │ │ /app/.venv/lib/python3.11/site-packages/click/core.py:1197 in parse_args │ │ │ │ /app/.venv/lib/python3.11/site-packages/click/core.py:2416 in handle_parse_result │ │ │ │ /app/.venv/lib/python3.11/site-packages/click/core.py:2355 in process_value │ │ │ │ /app/.venv/lib/python3.11/site-packages/click/decorators.py:539 in show_help │ │ │ │ /app/.venv/lib/python3.11/site-packages/click/core.py:730 in get_help │ │ │ │ /app/.venv/lib/python3.11/site-packages/click/core.py:1064 in get_help │ │ │ │ /app/.venv/lib/python3.11/site-packages/typer/core.py:691 in format_help │ │ │ │ /app/.venv/lib/python3.11/site-packages/typer/rich_utils.py:614 in rich_format_help │ │ │ │ /app/.venv/lib/python3.11/site-packages/typer/rich_utils.py:373 in _print_options_panel │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ TypeError: Parameter.make_metavar() missing 1 required positional argument: 'ctx' ``` ### Additional Information Very obviously due to https://github.com/fastapi/typer/discussions/1215, solution is to pin `click==8.1.8`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/mcpo#72
No description provided.