[GH-ISSUE #249] issue: ValueError: Server 'web-search-prime' must have either 'command' for stdio or 'type' and 'url' for remote servers #114

Closed
opened 2026-10-18 21:11:53 +00:00 by bsakaguchi · 4 comments
Owner

Originally created by @Charles7c on GitHub (Sep 17, 2025).
Original GitHub issue: https://github.com/open-webui/mcpo/issues/249

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)

v0.6.5

Operating System

Windows 10

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

Normal

Actual Behavior

it won't work

Steps to Reproduce

1.edit config.json

{
  "mcpServers": {
    "web-search-prime": {
      "type": "http",
      "url": "https://open.bigmodel.cn/api/mcp/web_search_prime/mcp",
      "headers": {
        "Authorization": "Bearer your-token"
      }
    }
  }
}

2.run

Logs & Screenshots

/app/.cache/uv/archive-v0/DenW0z9s8AaQzrqPxGUj9/lib/python3.13/site-packages │
│ /mcpo/main.py:70 in validate_server_config │
│ │
│ 67 │ │ # Fallback for old SSE config without explicit type │
│ 68 │ │ pass │
│ 69 │ else: │
│ ❱ 70 │ │ raise ValueError(f"Server '{server_name}' must have either 'co │
│ 71 │
│ 72 │
│ 73 def load_config(config_path: str) -> Dict[str, Any]: │
│ │
│ ╭───────────────────────────────── locals ─────────────────────────────────╮ │
│ │ server_cfg = { │ │
│ │ │ 'type': 'http', │ │
│ │ │ 'url': │ │
│ │ 'https://open.bigmodel.cn/api/mcp/web_search_prime/mcp', │ │
│ │ │ 'headers': { │ │
│ │ │ │ 'Authorization': 'Bearer │ │
│ │ xxxxx' │ │
│ │ │ } │ │
│ │ } │ │
│ │ server_name = 'web-search-prime' │ │
│ │ server_type = 'http' │ │
│ ╰──────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────╯
ValueError: Server 'web-search-prime' must have either 'command' for stdio or
'type' and 'url' for remote servers

Additional Information

No response

Originally created by @Charles7c on GitHub (Sep 17, 2025). Original GitHub issue: https://github.com/open-webui/mcpo/issues/249 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of mcpo. ### mcpo Version latest ### Open WebUI Version (if applicable) v0.6.5 ### Operating System Windows 10 ### 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 Normal ### Actual Behavior it won't work ### Steps to Reproduce 1.edit config.json ```json { "mcpServers": { "web-search-prime": { "type": "http", "url": "https://open.bigmodel.cn/api/mcp/web_search_prime/mcp", "headers": { "Authorization": "Bearer your-token" } } } } ``` 2.run ### Logs & Screenshots /app/.cache/uv/archive-v0/DenW0z9s8AaQzrqPxGUj9/lib/python3.13/site-packages │ │ /mcpo/main.py:70 in validate_server_config │ │ │ │ 67 │ │ # Fallback for old SSE config without explicit type │ │ 68 │ │ pass │ │ 69 │ else: │ │ ❱ 70 │ │ raise ValueError(f"Server '{server_name}' must have either 'co │ │ 71 │ │ 72 │ │ 73 def load_config(config_path: str) -> Dict[str, Any]: │ │ │ │ ╭───────────────────────────────── locals ─────────────────────────────────╮ │ │ │ server_cfg = { │ │ │ │ │ 'type': 'http', │ │ │ │ │ 'url': │ │ │ │ 'https://open.bigmodel.cn/api/mcp/web_search_prime/mcp', │ │ │ │ │ 'headers': { │ │ │ │ │ │ 'Authorization': 'Bearer │ │ │ │ xxxxx' │ │ │ │ │ } │ │ │ │ } │ │ │ │ server_name = 'web-search-prime' │ │ │ │ server_type = 'http' │ │ │ ╰──────────────────────────────────────────────────────────────────────────╯ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ValueError: Server 'web-search-prime' must have either 'command' for stdio or 'type' and 'url' for remote servers ### Additional Information _No response_
bsakaguchi 2026-10-18 21:11:53 +00:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@skelz0r commented on GitHub (Sep 25, 2025):

I have the same issue, did you find a way to fix it?

<!-- gh-comment-id:3333672624 --> @skelz0r commented on GitHub (Sep 25, 2025): I have the same issue, did you find a way to fix it?
Author
Owner

@Charles7c commented on GitHub (Sep 26, 2025):

I have the same issue, did you find a way to fix it?

No way, I ended up deleting this MCP Server and replacing it with one.

<!-- gh-comment-id:3336440440 --> @Charles7c commented on GitHub (Sep 26, 2025): > I have the same issue, did you find a way to fix it? No way, I ended up deleting this MCP Server and replacing it with one.
Author
Owner

@skelz0r commented on GitHub (Sep 26, 2025):

Can you reopen the issue? This bug is legit. Btw, what did you use to plug a MCP server?

<!-- gh-comment-id:3337617711 --> @skelz0r commented on GitHub (Sep 26, 2025): Can you reopen the issue? This bug is legit. Btw, what did you use to plug a MCP server?
Author
Owner

@skelz0r commented on GitHub (Sep 26, 2025):

Ok I figured it out: I have to use streamable-http ref github.com/open-webui/mcpo@44ce6d05b0/src/mcpo/main.py (L57)

<!-- gh-comment-id:3337770119 --> @skelz0r commented on GitHub (Sep 26, 2025): Ok I figured it out: I have to use `streamable-http` ref https://github.com/open-webui/mcpo/blob/44ce6d05b0392231c359c2d86228835001942851/src/mcpo/main.py#L57
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#114
No description provided.