[GH-ISSUE #109] issue: Failed to run the config.json tool using Docker-compose #49

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

Originally created by @j820301 on GitHub (Apr 30, 2025).
Original GitHub issue: https://github.com/open-webui/mcpo/issues/109

Check Existing Issues

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

mcpo Version

main

Open WebUI Version (if applicable)

v0.6.4

Operating System

Windows、Docker

Browser (if applicable)

Edge

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

Correctly access Tools in Config

Actual Behavior

The Tool was accessed, but the request processing failed, and the Tool could not be used correctly.

Steps to Reproduce

I have created the docker-compose.yml and config.json, successfully connected them to Openwebui,
and the connection is working. Tools are also shown as enabled in OpenAPI/docs.
Connection to Openwebui returns 200, but when I send a request, Tools shows a 404 error
However, this problem doesn't occur when enabling mcpo without using config.json I want to centralize management in config.json, but it appears to be failing during execution, even though it looks normal.

config.json

{
    "mcpServers": {
      "sequential-thinking": {
        "command": "npx",
        "args": ["-y","@modelcontextprotocol/server-sequential-thinking"]
      },
      "fetch": {
        "command": "uvx",
        "args": ["mcp-server-fetch"]
      }
    }
}

docker-compose.yml

services:
  mcp-server:
    image: ghcr.io/open-webui/mcpo:main
    container_name: mcp-server
    ports:
      - "9005:8000"
    volumes:
      - ./config.json:/path/to/config.json
    #environment:
    command: --api-key "Hello" --config /path/to/config.json
    restart: unless-stopped

Creating MCP separately works normally. Here is the docker-compose.yml that works

services:
  mcp-fetch:
    image: ghcr.io/open-webui/mcpo:main
    container_name: mcp-fetch
    ports:
      - "9007:8000"
    #environment:
    command: --api-key "Hello" -- uvx mcp-server-fetch
    restart: unless-stopped

Logs & Screenshots

Image

Image

Image

logs

2025-04-30 15:28:24 INFO:     Started server process [1]
2025-04-30 15:28:24 INFO:     Waiting for application startup.
2025-04-30 15:28:26 Sequential Thinking MCP Server running on stdio
2025-04-30 15:28:27 Downloading lxml (4.7MiB)
2025-04-30 15:28:27 Downloading pydantic-core (1.9MiB)
2025-04-30 15:28:28  Downloaded pydantic-core
2025-04-30 15:28:28  Downloaded lxml
2025-04-30 15:28:28 Installed 34 packages in 53ms
2025-04-30 15:28:29 INFO:     Application startup complete.
2025-04-30 15:28:29 INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
2025-04-30 15:28:43 Starting MCP OpenAPI Proxy with config file: /path/to/config.json
2025-04-30 15:28:43 INFO:     172.23.0.1:42974 - "GET / HTTP/1.1" 404 Not Found
2025-04-30 15:28:46 INFO:     172.23.0.1:42974 - "GET /docs HTTP/1.1" 200 OK
2025-04-30 15:28:46 INFO:     172.23.0.1:42974 - "GET /openapi.json HTTP/1.1" 200 OK
2025-04-30 15:28:56 INFO:     172.23.0.1:42964 - "GET /sequential-thinking/docs HTTP/1.1" 200 OK
2025-04-30 15:28:56 INFO:     172.23.0.1:42964 - "GET /sequential-thinking/openapi.json HTTP/1.1" 200 OK
2025-04-30 15:29:12 INFO:     172.23.0.1:54380 - "GET /fetch/docs HTTP/1.1" 200 OK
2025-04-30 15:29:13 INFO:     172.23.0.1:54380 - "GET /fetch/openapi.json HTTP/1.1" 200 OK
2025-04-30 15:29:24 INFO:     172.23.0.1:45730 - "GET /openapi.json HTTP/1.1" 200 OK
2025-04-30 15:29:46 INFO:     172.23.0.1:48422 - "GET /sequential-thinking/docs HTTP/1.1" 200 OK
2025-04-30 15:29:46 INFO:     172.23.0.1:48422 - "GET /sequential-thinking/openapi.json HTTP/1.1" 200 OK
2025-04-30 15:29:50 INFO:     172.23.0.1:48422 - "GET /fetch/docs HTTP/1.1" 200 OK
2025-04-30 15:29:50 INFO:     172.23.0.1:48422 - "GET /fetch/openapi.json HTTP/1.1" 200 OK
2025-04-30 15:30:37 INFO:     172.23.0.1:52582 - "GET /openapi.json HTTP/1.1" 200 OK
2025-04-30 15:30:39 INFO:     172.23.0.1:52590 - "GET /openapi.json HTTP/1.1" 200 OK
2025-04-30 15:30:45 INFO:     172.23.0.1:57516 - "GET /openapi.json HTTP/1.1" 200 OK
2025-04-30 15:30:48 INFO:     172.23.0.1:57530 - "GET /openapi.json HTTP/1.1" 200 OK
2025-04-30 15:33:28 INFO:     172.23.0.1:36996 - "GET /fetch/docs HTTP/1.1" 200 OK
2025-04-30 15:33:28 INFO:     172.23.0.1:36996 - "GET /fetch/openapi.json HTTP/1.1" 200 OK
2025-04-30 15:35:49 INFO:     172.23.0.1:49492 - "GET /fetch/openapi.json HTTP/1.1" 200 OK
2025-04-30 15:35:51 INFO:     172.23.0.1:49508 - "GET /fetch/openapi.json HTTP/1.1" 200 OK
2025-04-30 15:36:14 INFO:     172.23.0.1:60138 - "GET /fetch/openapi.json HTTP/1.1" 200 OK
2025-04-30 15:36:15 INFO:     172.23.0.1:60150 - "GET /fetch/openapi.json HTTP/1.1" 200 OK
2025-04-30 15:36:28 INFO:     172.23.0.1:36426 - "GET /fetch/openapi.json HTTP/1.1" 200 OK
2025-04-30 15:36:52 INFO:     172.23.0.1:60826 - "GET /sequential-thinking/docs HTTP/1.1" 200 OK
2025-04-30 15:36:52 INFO:     172.23.0.1:60826 - "GET /sequential-thinking/openapi.json HTTP/1.1" 200 OK
2025-04-30 15:37:11 INFO:     172.23.0.1:47756 - "GET /sequential-thinking/openapi.json HTTP/1.1" 200 OK
2025-04-30 16:07:03 INFO:     Shutting down
2025-04-30 16:07:03 INFO:     Waiting for application shutdown.
2025-04-30 16:07:03 INFO:     Application shutdown complete.
2025-04-30 16:07:03 INFO:     Finished server process [1]
2025-04-30 15:37:23 INFO:     172.23.0.1:45010 - "GET /sequential-thinking/openapi.json HTTP/1.1" 200 OK
2025-04-30 15:37:23 INFO:     172.23.0.1:45000 - "GET /fetch/openapi.json HTTP/1.1" 200 OK
2025-04-30 15:37:26 INFO:     172.23.0.1:45028 - "GET /fetch/openapi.json HTTP/1.1" 200 OK
2025-04-30 15:37:26 INFO:     172.23.0.1:45018 - "GET /sequential-thinking/openapi.json HTTP/1.1" 200 OK
2025-04-30 15:38:08 INFO:     172.23.0.1:34540 - "POST /fetch HTTP/1.1" 307 Temporary Redirect
2025-04-30 15:38:08 INFO:     172.23.0.1:34540 - "POST /fetch/ HTTP/1.1" 404 Not Found
2025-04-30 15:38:08 INFO:     172.23.0.1:34548 - "POST /fetch HTTP/1.1" 307 Temporary Redirect
2025-04-30 15:38:08 INFO:     172.23.0.1:34548 - "POST /fetch/ HTTP/1.1" 404 Not Found
2025-04-30 15:38:08 INFO:     172.23.0.1:34550 - "POST /fetch HTTP/1.1" 307 Temporary Redirect
2025-04-30 15:38:08 INFO:     172.23.0.1:34550 - "POST /fetch/ HTTP/1.1" 404 Not Found
2025-04-30 15:39:51 INFO:     172.23.0.1:49794 - "POST /fetch HTTP/1.1" 307 Temporary Redirect
2025-04-30 15:39:51 INFO:     172.23.0.1:49794 - "POST /fetch/ HTTP/1.1" 404 Not Found
2025-04-30 15:39:51 INFO:     172.23.0.1:49802 - "POST /fetch HTTP/1.1" 307 Temporary Redirect
2025-04-30 15:39:51 INFO:     172.23.0.1:49802 - "POST /fetch/ HTTP/1.1" 404 Not Found
2025-04-30 15:39:51 INFO:     172.23.0.1:49818 - "POST /fetch HTTP/1.1" 307 Temporary Redirect
2025-04-30 15:39:51 INFO:     172.23.0.1:49818 - "POST /fetch/ HTTP/1.1" 404 Not Found
2025-04-30 15:39:51 INFO:     172.23.0.1:49826 - "POST /fetch HTTP/1.1" 307 Temporary Redirect
2025-04-30 15:39:51 INFO:     172.23.0.1:49826 - "POST /fetch/ HTTP/1.1" 404 Not Found
2025-04-30 15:41:13 INFO:     172.23.0.1:51176 - "POST /fetch HTTP/1.1" 307 Temporary Redirect
2025-04-30 15:41:13 INFO:     172.23.0.1:51176 - "POST /fetch/ HTTP/1.1" 404 Not Found
2025-04-30 15:42:46 INFO:     172.23.0.1:33080 - "POST /fetch HTTP/1.1" 307 Temporary Redirect
2025-04-30 15:42:46 INFO:     172.23.0.1:33080 - "POST /fetch/ HTTP/1.1" 404 Not Found
2025-04-30 15:48:23 INFO:     172.23.0.1:42090 - "GET /docs HTTP/1.1" 200 OK
2025-04-30 15:48:23 INFO:     172.23.0.1:42090 - "GET /openapi.json HTTP/1.1" 200 OK
2025-04-30 15:48:33 INFO:     172.23.0.1:42102 - "GET /sequential-thinking/docs HTTP/1.1" 200 OK
2025-04-30 15:48:33 INFO:     172.23.0.1:42102 - "GET /sequential-thinking/openapi.json HTTP/1.1" 200 OK
2025-04-30 15:48:49 INFO:     172.23.0.1:38504 - "GET /fetch/docs HTTP/1.1" 200 OK
2025-04-30 15:48:49 INFO:     172.23.0.1:38504 - "GET /fetch/openapi.json HTTP/1.1" 200 OK
2025-04-30 15:49:27 INFO:     172.23.0.1:40620 - "POST /fetch HTTP/1.1" 307 Temporary Redirect
2025-04-30 15:49:27 INFO:     172.23.0.1:40620 - "POST /fetch/ HTTP/1.1" 404 Not Found

Additional Information

No response

Originally created by @j820301 on GitHub (Apr 30, 2025). Original GitHub issue: https://github.com/open-webui/mcpo/issues/109 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of mcpo. ### mcpo Version main ### Open WebUI Version (if applicable) v0.6.4 ### Operating System Windows、Docker ### Browser (if applicable) Edge ### 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. - [ ] 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 Correctly access Tools in Config ### Actual Behavior The Tool was accessed, but the request processing failed, and the Tool could not be used correctly. ### Steps to Reproduce I have created the docker-compose.yml and config.json, successfully connected them to Openwebui, and the connection is working. Tools are also shown as enabled in OpenAPI/docs. Connection to Openwebui returns 200, but when I send a request, Tools shows a 404 error However, this problem doesn't occur when enabling mcpo without using config.json I want to centralize management in config.json, but it appears to be failing during execution, even though it looks normal. config.json ``` { "mcpServers": { "sequential-thinking": { "command": "npx", "args": ["-y","@modelcontextprotocol/server-sequential-thinking"] }, "fetch": { "command": "uvx", "args": ["mcp-server-fetch"] } } } ``` docker-compose.yml ```dockerfile services: mcp-server: image: ghcr.io/open-webui/mcpo:main container_name: mcp-server ports: - "9005:8000" volumes: - ./config.json:/path/to/config.json #environment: command: --api-key "Hello" --config /path/to/config.json restart: unless-stopped ``` Creating MCP separately works normally. Here is the docker-compose.yml that works ```dockerfile services: mcp-fetch: image: ghcr.io/open-webui/mcpo:main container_name: mcp-fetch ports: - "9007:8000" #environment: command: --api-key "Hello" -- uvx mcp-server-fetch restart: unless-stopped ``` ### Logs & Screenshots ![Image](https://github.com/user-attachments/assets/81c83d41-8d94-498b-9ed6-cbde61abe44d) ![Image](https://github.com/user-attachments/assets/f0e9866b-7b30-4608-afeb-2612db411a12) ![Image](https://github.com/user-attachments/assets/82bee0a8-c860-46e7-ab0d-2b1b2534efab) logs ``` 2025-04-30 15:28:24 INFO: Started server process [1] 2025-04-30 15:28:24 INFO: Waiting for application startup. 2025-04-30 15:28:26 Sequential Thinking MCP Server running on stdio 2025-04-30 15:28:27 Downloading lxml (4.7MiB) 2025-04-30 15:28:27 Downloading pydantic-core (1.9MiB) 2025-04-30 15:28:28 Downloaded pydantic-core 2025-04-30 15:28:28 Downloaded lxml 2025-04-30 15:28:28 Installed 34 packages in 53ms 2025-04-30 15:28:29 INFO: Application startup complete. 2025-04-30 15:28:29 INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit) 2025-04-30 15:28:43 Starting MCP OpenAPI Proxy with config file: /path/to/config.json 2025-04-30 15:28:43 INFO: 172.23.0.1:42974 - "GET / HTTP/1.1" 404 Not Found 2025-04-30 15:28:46 INFO: 172.23.0.1:42974 - "GET /docs HTTP/1.1" 200 OK 2025-04-30 15:28:46 INFO: 172.23.0.1:42974 - "GET /openapi.json HTTP/1.1" 200 OK 2025-04-30 15:28:56 INFO: 172.23.0.1:42964 - "GET /sequential-thinking/docs HTTP/1.1" 200 OK 2025-04-30 15:28:56 INFO: 172.23.0.1:42964 - "GET /sequential-thinking/openapi.json HTTP/1.1" 200 OK 2025-04-30 15:29:12 INFO: 172.23.0.1:54380 - "GET /fetch/docs HTTP/1.1" 200 OK 2025-04-30 15:29:13 INFO: 172.23.0.1:54380 - "GET /fetch/openapi.json HTTP/1.1" 200 OK 2025-04-30 15:29:24 INFO: 172.23.0.1:45730 - "GET /openapi.json HTTP/1.1" 200 OK 2025-04-30 15:29:46 INFO: 172.23.0.1:48422 - "GET /sequential-thinking/docs HTTP/1.1" 200 OK 2025-04-30 15:29:46 INFO: 172.23.0.1:48422 - "GET /sequential-thinking/openapi.json HTTP/1.1" 200 OK 2025-04-30 15:29:50 INFO: 172.23.0.1:48422 - "GET /fetch/docs HTTP/1.1" 200 OK 2025-04-30 15:29:50 INFO: 172.23.0.1:48422 - "GET /fetch/openapi.json HTTP/1.1" 200 OK 2025-04-30 15:30:37 INFO: 172.23.0.1:52582 - "GET /openapi.json HTTP/1.1" 200 OK 2025-04-30 15:30:39 INFO: 172.23.0.1:52590 - "GET /openapi.json HTTP/1.1" 200 OK 2025-04-30 15:30:45 INFO: 172.23.0.1:57516 - "GET /openapi.json HTTP/1.1" 200 OK 2025-04-30 15:30:48 INFO: 172.23.0.1:57530 - "GET /openapi.json HTTP/1.1" 200 OK 2025-04-30 15:33:28 INFO: 172.23.0.1:36996 - "GET /fetch/docs HTTP/1.1" 200 OK 2025-04-30 15:33:28 INFO: 172.23.0.1:36996 - "GET /fetch/openapi.json HTTP/1.1" 200 OK 2025-04-30 15:35:49 INFO: 172.23.0.1:49492 - "GET /fetch/openapi.json HTTP/1.1" 200 OK 2025-04-30 15:35:51 INFO: 172.23.0.1:49508 - "GET /fetch/openapi.json HTTP/1.1" 200 OK 2025-04-30 15:36:14 INFO: 172.23.0.1:60138 - "GET /fetch/openapi.json HTTP/1.1" 200 OK 2025-04-30 15:36:15 INFO: 172.23.0.1:60150 - "GET /fetch/openapi.json HTTP/1.1" 200 OK 2025-04-30 15:36:28 INFO: 172.23.0.1:36426 - "GET /fetch/openapi.json HTTP/1.1" 200 OK 2025-04-30 15:36:52 INFO: 172.23.0.1:60826 - "GET /sequential-thinking/docs HTTP/1.1" 200 OK 2025-04-30 15:36:52 INFO: 172.23.0.1:60826 - "GET /sequential-thinking/openapi.json HTTP/1.1" 200 OK 2025-04-30 15:37:11 INFO: 172.23.0.1:47756 - "GET /sequential-thinking/openapi.json HTTP/1.1" 200 OK 2025-04-30 16:07:03 INFO: Shutting down 2025-04-30 16:07:03 INFO: Waiting for application shutdown. 2025-04-30 16:07:03 INFO: Application shutdown complete. 2025-04-30 16:07:03 INFO: Finished server process [1] 2025-04-30 15:37:23 INFO: 172.23.0.1:45010 - "GET /sequential-thinking/openapi.json HTTP/1.1" 200 OK 2025-04-30 15:37:23 INFO: 172.23.0.1:45000 - "GET /fetch/openapi.json HTTP/1.1" 200 OK 2025-04-30 15:37:26 INFO: 172.23.0.1:45028 - "GET /fetch/openapi.json HTTP/1.1" 200 OK 2025-04-30 15:37:26 INFO: 172.23.0.1:45018 - "GET /sequential-thinking/openapi.json HTTP/1.1" 200 OK 2025-04-30 15:38:08 INFO: 172.23.0.1:34540 - "POST /fetch HTTP/1.1" 307 Temporary Redirect 2025-04-30 15:38:08 INFO: 172.23.0.1:34540 - "POST /fetch/ HTTP/1.1" 404 Not Found 2025-04-30 15:38:08 INFO: 172.23.0.1:34548 - "POST /fetch HTTP/1.1" 307 Temporary Redirect 2025-04-30 15:38:08 INFO: 172.23.0.1:34548 - "POST /fetch/ HTTP/1.1" 404 Not Found 2025-04-30 15:38:08 INFO: 172.23.0.1:34550 - "POST /fetch HTTP/1.1" 307 Temporary Redirect 2025-04-30 15:38:08 INFO: 172.23.0.1:34550 - "POST /fetch/ HTTP/1.1" 404 Not Found 2025-04-30 15:39:51 INFO: 172.23.0.1:49794 - "POST /fetch HTTP/1.1" 307 Temporary Redirect 2025-04-30 15:39:51 INFO: 172.23.0.1:49794 - "POST /fetch/ HTTP/1.1" 404 Not Found 2025-04-30 15:39:51 INFO: 172.23.0.1:49802 - "POST /fetch HTTP/1.1" 307 Temporary Redirect 2025-04-30 15:39:51 INFO: 172.23.0.1:49802 - "POST /fetch/ HTTP/1.1" 404 Not Found 2025-04-30 15:39:51 INFO: 172.23.0.1:49818 - "POST /fetch HTTP/1.1" 307 Temporary Redirect 2025-04-30 15:39:51 INFO: 172.23.0.1:49818 - "POST /fetch/ HTTP/1.1" 404 Not Found 2025-04-30 15:39:51 INFO: 172.23.0.1:49826 - "POST /fetch HTTP/1.1" 307 Temporary Redirect 2025-04-30 15:39:51 INFO: 172.23.0.1:49826 - "POST /fetch/ HTTP/1.1" 404 Not Found 2025-04-30 15:41:13 INFO: 172.23.0.1:51176 - "POST /fetch HTTP/1.1" 307 Temporary Redirect 2025-04-30 15:41:13 INFO: 172.23.0.1:51176 - "POST /fetch/ HTTP/1.1" 404 Not Found 2025-04-30 15:42:46 INFO: 172.23.0.1:33080 - "POST /fetch HTTP/1.1" 307 Temporary Redirect 2025-04-30 15:42:46 INFO: 172.23.0.1:33080 - "POST /fetch/ HTTP/1.1" 404 Not Found 2025-04-30 15:48:23 INFO: 172.23.0.1:42090 - "GET /docs HTTP/1.1" 200 OK 2025-04-30 15:48:23 INFO: 172.23.0.1:42090 - "GET /openapi.json HTTP/1.1" 200 OK 2025-04-30 15:48:33 INFO: 172.23.0.1:42102 - "GET /sequential-thinking/docs HTTP/1.1" 200 OK 2025-04-30 15:48:33 INFO: 172.23.0.1:42102 - "GET /sequential-thinking/openapi.json HTTP/1.1" 200 OK 2025-04-30 15:48:49 INFO: 172.23.0.1:38504 - "GET /fetch/docs HTTP/1.1" 200 OK 2025-04-30 15:48:49 INFO: 172.23.0.1:38504 - "GET /fetch/openapi.json HTTP/1.1" 200 OK 2025-04-30 15:49:27 INFO: 172.23.0.1:40620 - "POST /fetch HTTP/1.1" 307 Temporary Redirect 2025-04-30 15:49:27 INFO: 172.23.0.1:40620 - "POST /fetch/ HTTP/1.1" 404 Not Found ``` ### Additional Information _No response_
bsakaguchi 2026-10-18 21:10:53 +00:00
  • closed this issue
  • added the
    bug
    label
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#49
No description provided.