mirror of
https://github.com/open-webui/mcpo.git
synced 2026-11-05 01:27:39 +00:00
[GH-ISSUE #239] issue: Inexplicable intermittent crash on startup #106
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#106
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?
Originally created by @mekhami on GitHub (Aug 26, 2025).
Original GitHub issue: https://github.com/open-webui/mcpo/issues/239
Originally assigned to: @taylorwilsdon on GitHub.
Check Existing Issues
mcpo Version
0.0.17
Open WebUI Version (if applicable)
No response
Operating System
MacOS Sonoma
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Proxy should launch
Actual Behavior
Proxy crashes with this error message:
mcpo --port 8000 -- npx mcp-remote http://127.0.0.1:5000/mcp
Starting MCP OpenAPI Proxy on 0.0.0.0:8000 with command: npx mcp-remote http://127.0.0.1:5000/mcp
2025-08-26 15:14:41,672 - INFO - Starting MCPO Server...
2025-08-26 15:14:41,672 - INFO - Name: MCP OpenAPI Proxy
2025-08-26 15:14:41,672 - INFO - Version: 1.0
2025-08-26 15:14:41,672 - INFO - Description: Automatically generated API from MCP Tool Schemas
2025-08-26 15:14:41,672 - INFO - Hostname: ML-MT9GRQ22XT
2025-08-26 15:14:41,672 - INFO - Port: 8000
2025-08-26 15:14:41,672 - INFO - API Key: Not Provided
2025-08-26 15:14:41,672 - INFO - CORS Allowed Origins: ['*']
2025-08-26 15:14:41,672 - INFO - Path Prefix: /
2025-08-26 15:14:41,672 - INFO - Configuring for a single Stdio MCP Server with command: npx mcp-remote http://127.0.0.1:5000/mcp
2025-08-26 15:14:41,672 - INFO - Uvicorn server starting...
INFO: Started server process [66446]
INFO: Waiting for application startup.
[66465] Using automatically selected callback port: 19598
[66465] [66465] Connecting to remote server: http://127.0.0.1:5000/mcp
[66465] Using transport strategy: http-first
[66465] Connected to remote server using StreamableHTTPClientTransport
[66465] Local STDIO server running
[66465] Proxy established successfully between local STDIO and remote StreamableHTTPClientTransport
[66465] Press Ctrl+C to exit
[66465] [Local→Remote] initialize
[66465] {
"jsonrpc": "2.0",
"id": 0,
"method": "initialize",
"params": {
"protocolVersion": "2025-06-18",
"capabilities": {},
"clientInfo": {
"name": "mcp (via mcp-remote 0.1.18)",
"version": "0.1.0"
}
}
}
[66465] [Remote→Local] 0
[66465] [Local→Remote] notifications/initialized
[66465] [Local→Remote] tools/list
[66465] Error from remote server: ServerError: HTTP 404: Invalid OAuth error response: SyntaxError: Unexpected end of JSON input. Raw body:
at parseErrorResponse (file:///Users/v507614/.npm/_npx/705d23756ff7dacc/node_modules/mcp-remote/dist/chunk-OXNXVROF.js:12094:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async registerClient (file:///Users/v507614/.npm/_npx/705d23756ff7dacc/node_modules/mcp-remote/dist/chunk-OXNXVROF.js:12417:11)
at async authInternal (file:///Users/v507614/.npm/_npx/705d23756ff7dacc/node_modules/mcp-remote/dist/chunk-OXNXVROF.js:12132:29)
at async auth (file:///Users/v507614/.npm/_npx/705d23756ff7dacc/node_modules/mcp-remote/dist/chunk-OXNXVROF.js:12100:12)
at async StreamableHTTPClientTransport.send (file:///Users/v507614/.npm/_npx/705d23756ff7dacc/node_modules/mcp-remote/dist/chunk-OXNXVROF.js:13259:26) {
errorUri: undefined
}
[66465] Error from remote server: ServerError: HTTP 404: Invalid OAuth error response: SyntaxError: Unexpected end of JSON input. Raw body:
at parseErrorResponse (file:///Users/v507614/.npm/_npx/705d23756ff7dacc/node_modules/mcp-remote/dist/chunk-OXNXVROF.js:12094:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async registerClient (file:///Users/v507614/.npm/_npx/705d23756ff7dacc/node_modules/mcp-remote/dist/chunk-OXNXVROF.js:12417:11)
at async authInternal (file:///Users/v507614/.npm/_npx/705d23756ff7dacc/node_modules/mcp-remote/dist/chunk-OXNXVROF.js:12132:29)
at async auth (file:///Users/v507614/.npm/_npx/705d23756ff7dacc/node_modules/mcp-remote/dist/chunk-OXNXVROF.js:12100:12)
at async StreamableHTTPClientTransport.send (file:///Users/v507614/.npm/_npx/705d23756ff7dacc/node_modules/mcp-remote/dist/chunk-OXNXVROF.js:13259:26) {
errorUri: undefined
}
@mekhami commented on GitHub (Aug 26, 2025):
I should also mention that the command
npx mcp-remote 127.0.0.1:5000/mcprun independently is successful, and MCP Inspector is able to connect to that tool server and works correctly.@mekhami commented on GitHub (Aug 28, 2025):
This may be a duplicate of https://github.com/open-webui/mcpo/issues/117
Downgrading to 0.0.12 as suggested did resolve the issue