mirror of
https://github.com/open-webui/mcpo.git
synced 2026-11-05 01:27:39 +00:00
[GH-ISSUE #154] issue: Startup error when adding mcp server #71
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#71
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 @xingwenkai on GitHub (May 24, 2025).
Original GitHub issue: https://github.com/open-webui/mcpo/issues/154
Check Existing Issues
mcpo Version
0.0.14
Open WebUI Version (if applicable)
No response
Operating System
Ubuntu
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
It should start successfully
Actual Behavior
Startup error when adding mcp server
Steps to Reproduce
mcp_server:
{
"mcpServers": {
"mcp-server-chart": {
"command": "npx",
"args": [
"-y",
"@antv/mcp-server-chart"
]
}
}
}
error:
2025-05-24T03:00:38.142732551Z | Exception Group Traceback (most recent call last):
2025-05-24T03:00:38.142740545Z | File "/app/.venv/lib/python3.11/site-packages/mcp/client/stdio/init.py", line 177, in stdio_client
2025-05-24T03:00:38.142750491Z | yield read_stream, write_stream
2025-05-24T03:00:38.142758818Z | File "/app/.venv/lib/python3.11/site-packages/mcpo/main.py", line 110, in lifespan
2025-05-24T03:00:38.142767042Z | async with ClientSession(reader, writer) as session:
2025-05-24T03:00:38.142782693Z | File "/app/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 772, in aexit
2025-05-24T03:00:38.142790710Z | raise BaseExceptionGroup(
2025-05-24T03:00:38.142798720Z | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
2025-05-24T03:00:38.142806214Z +-+---------------- 1 ----------------
2025-05-24T03:00:38.142814976Z | Exception Group Traceback (most recent call last):
2025-05-24T03:00:38.142822311Z | File "/app/.venv/lib/python3.11/site-packages/mcpo/main.py", line 113, in lifespan
2025-05-24T03:00:38.142831507Z | yield
2025-05-24T03:00:38.142840487Z | File "/usr/lib/python3.11/contextlib.py", line 716, in aexit
2025-05-24T03:00:38.142848357Z | cb_suppress = await cb(*exc_details)
2025-05-24T03:00:38.142855678Z | ^^^^^^^^^^^^^^^^^^^^^^
2025-05-24T03:00:38.142862968Z | File "/usr/lib/python3.11/contextlib.py", line 222, in aexit
2025-05-24T03:00:38.142870429Z | await self.gen.athrow(typ, value, traceback)
2025-05-24T03:00:38.142877655Z | File "/app/.venv/lib/python3.11/site-packages/mcpo/main.py", line 109, in lifespan
2025-05-24T03:00:38.142885185Z | async with stdio_client(server_params) as (reader, writer):
2025-05-24T03:00:38.142892465Z | File "/usr/lib/python3.11/contextlib.py", line 222, in aexit
2025-05-24T03:00:38.142899956Z | await self.gen.athrow(typ, value, traceback)
2025-05-24T03:00:38.142907546Z | File "/app/.venv/lib/python3.11/site-packages/mcp/client/stdio/init.py", line 170, in stdio_client
2025-05-24T03:00:38.142915577Z | async with (
2025-05-24T03:00:38.142922742Z | File "/app/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 772, in aexit
2025-05-24T03:00:38.142930522Z | raise BaseExceptionGroup(
2025-05-24T03:00:38.142937773Z | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
2025-05-24T03:00:38.142945228Z +-+---------------- 1 ----------------
2025-05-24T03:00:38.142952534Z | Exception Group Traceback (most recent call last):
2025-05-24T03:00:38.142960920Z | File "/app/.venv/lib/python3.11/site-packages/mcp/client/stdio/init.py", line 177, in stdio_client
2025-05-24T03:00:38.142969785Z | yield read_stream, write_stream
2025-05-24T03:00:38.142977886Z | File "/app/.venv/lib/python3.11/site-packages/mcpo/main.py", line 110, in lifespan
2025-05-24T03:00:38.142986521Z | async with ClientSession(reader, writer) as session:
2025-05-24T03:00:38.142994641Z | File "/app/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 772, in aexit
2025-05-24T03:00:38.143009487Z | raise BaseExceptionGroup(
2025-05-24T03:00:38.143016877Z | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
2025-05-24T03:00:38.143024474Z +-+---------------- 1 ----------------
2025-05-24T03:00:38.143031894Z | Exception Group Traceback (most recent call last):
2025-05-24T03:00:38.143039744Z | File "/app/.venv/lib/python3.11/site-packages/mcpo/main.py", line 113, in lifespan
2025-05-24T03:00:38.143048175Z | yield
2025-05-24T03:00:38.143055341Z | File "/usr/lib/python3.11/contextlib.py", line 716, in aexit
2025-05-24T03:00:38.143062946Z | cb_suppress = await cb(*exc_details)
2025-05-24T03:00:38.143070971Z | ^^^^^^^^^^^^^^^^^^^^^^
2025-05-24T03:00:38.143078182Z | File "/usr/lib/python3.11/contextlib.py", line 222, in aexit
2025-05-24T03:00:38.143085597Z | await self.gen.athrow(typ, value, traceback)
2025-05-24T03:00:38.143092848Z | File "/app/.venv/lib/python3.11/site-packages/mcpo/main.py", line 109, in lifespan
2025-05-24T03:00:38.143101298Z | async with stdio_client(server_params) as (reader, writer):
2025-05-24T03:00:38.143108674Z | File "/usr/lib/python3.11/contextlib.py", line 222, in aexit
2025-05-24T03:00:38.143116124Z | await self.gen.athrow(typ, value, traceback)
2025-05-24T03:00:38.143124194Z | File "/app/.venv/lib/python3.11/site-packages/mcp/client/stdio/init.py", line 170, in stdio_client
2025-05-24T03:00:38.143135994Z | async with (
2025-05-24T03:00:38.143146391Z | File "/app/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 772, in aexit
2025-05-24T03:00:38.143155452Z | raise BaseExceptionGroup(
2025-05-24T03:00:38.143163006Z | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
2025-05-24T03:00:38.143170732Z +-+---------------- 1 ----------------
2025-05-24T03:00:38.143178172Z | Exception Group Traceback (most recent call last):
2025-05-24T03:00:38.143185543Z | File "/app/.venv/lib/python3.11/site-packages/mcp/client/stdio/init.py", line 177, in stdio_client
2025-05-24T03:00:38.143193614Z | yield read_stream, write_stream
2025-05-24T03:00:38.143202739Z | File "/app/.venv/lib/python3.11/site-packages/mcpo/main.py", line 110, in lifespan
2025-05-24T03:00:38.143210385Z | async with ClientSession(reader, writer) as session:
2025-05-24T03:00:38.143217964Z | File "/app/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 772, in aexit
2025-05-24T03:00:38.143234026Z | raise BaseExceptionGroup(
2025-05-24T03:00:38.143242387Z | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
2025-05-24T03:00:38.143249987Z +-+---------------- 1 ----------------
2025-05-24T03:00:38.143257232Z | ... (max_group_depth is 10)
2025-05-24T03:00:38.143265302Z +------------------------------------
2025-05-24T03:00:38.143272629Z
2025-05-24T03:00:38.143279563Z ERROR: Application startup failed. Exiting.
2025-05-24T03:00:38.144347314Z Starting MCP OpenAPI Proxy with config file: /app/mcpo/config.json
Logs & Screenshots
mcp_server:
{
"mcpServers": {
"mcp-server-chart": {
"command": "npx",
"args": [
"-y",
"@antv/mcp-server-chart"
]
}
}
}
error:
2025-05-24T03:00:38.142732551Z | Exception Group Traceback (most recent call last):
2025-05-24T03:00:38.142740545Z | File "/app/.venv/lib/python3.11/site-packages/mcp/client/stdio/init.py", line 177, in stdio_client
2025-05-24T03:00:38.142750491Z | yield read_stream, write_stream
2025-05-24T03:00:38.142758818Z | File "/app/.venv/lib/python3.11/site-packages/mcpo/main.py", line 110, in lifespan
2025-05-24T03:00:38.142767042Z | async with ClientSession(reader, writer) as session:
2025-05-24T03:00:38.142782693Z | File "/app/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 772, in aexit
2025-05-24T03:00:38.142790710Z | raise BaseExceptionGroup(
2025-05-24T03:00:38.142798720Z | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
2025-05-24T03:00:38.142806214Z +-+---------------- 1 ----------------
2025-05-24T03:00:38.142814976Z | Exception Group Traceback (most recent call last):
2025-05-24T03:00:38.142822311Z | File "/app/.venv/lib/python3.11/site-packages/mcpo/main.py", line 113, in lifespan
2025-05-24T03:00:38.142831507Z | yield
2025-05-24T03:00:38.142840487Z | File "/usr/lib/python3.11/contextlib.py", line 716, in aexit
2025-05-24T03:00:38.142848357Z | cb_suppress = await cb(*exc_details)
2025-05-24T03:00:38.142855678Z | ^^^^^^^^^^^^^^^^^^^^^^
2025-05-24T03:00:38.142862968Z | File "/usr/lib/python3.11/contextlib.py", line 222, in aexit
2025-05-24T03:00:38.142870429Z | await self.gen.athrow(typ, value, traceback)
2025-05-24T03:00:38.142877655Z | File "/app/.venv/lib/python3.11/site-packages/mcpo/main.py", line 109, in lifespan
2025-05-24T03:00:38.142885185Z | async with stdio_client(server_params) as (reader, writer):
2025-05-24T03:00:38.142892465Z | File "/usr/lib/python3.11/contextlib.py", line 222, in aexit
2025-05-24T03:00:38.142899956Z | await self.gen.athrow(typ, value, traceback)
2025-05-24T03:00:38.142907546Z | File "/app/.venv/lib/python3.11/site-packages/mcp/client/stdio/init.py", line 170, in stdio_client
2025-05-24T03:00:38.142915577Z | async with (
2025-05-24T03:00:38.142922742Z | File "/app/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 772, in aexit
2025-05-24T03:00:38.142930522Z | raise BaseExceptionGroup(
2025-05-24T03:00:38.142937773Z | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
2025-05-24T03:00:38.142945228Z +-+---------------- 1 ----------------
2025-05-24T03:00:38.142952534Z | Exception Group Traceback (most recent call last):
2025-05-24T03:00:38.142960920Z | File "/app/.venv/lib/python3.11/site-packages/mcp/client/stdio/init.py", line 177, in stdio_client
2025-05-24T03:00:38.142969785Z | yield read_stream, write_stream
2025-05-24T03:00:38.142977886Z | File "/app/.venv/lib/python3.11/site-packages/mcpo/main.py", line 110, in lifespan
2025-05-24T03:00:38.142986521Z | async with ClientSession(reader, writer) as session:
2025-05-24T03:00:38.142994641Z | File "/app/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 772, in aexit
2025-05-24T03:00:38.143009487Z | raise BaseExceptionGroup(
2025-05-24T03:00:38.143016877Z | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
2025-05-24T03:00:38.143024474Z +-+---------------- 1 ----------------
2025-05-24T03:00:38.143031894Z | Exception Group Traceback (most recent call last):
2025-05-24T03:00:38.143039744Z | File "/app/.venv/lib/python3.11/site-packages/mcpo/main.py", line 113, in lifespan
2025-05-24T03:00:38.143048175Z | yield
2025-05-24T03:00:38.143055341Z | File "/usr/lib/python3.11/contextlib.py", line 716, in aexit
2025-05-24T03:00:38.143062946Z | cb_suppress = await cb(*exc_details)
2025-05-24T03:00:38.143070971Z | ^^^^^^^^^^^^^^^^^^^^^^
2025-05-24T03:00:38.143078182Z | File "/usr/lib/python3.11/contextlib.py", line 222, in aexit
2025-05-24T03:00:38.143085597Z | await self.gen.athrow(typ, value, traceback)
2025-05-24T03:00:38.143092848Z | File "/app/.venv/lib/python3.11/site-packages/mcpo/main.py", line 109, in lifespan
2025-05-24T03:00:38.143101298Z | async with stdio_client(server_params) as (reader, writer):
2025-05-24T03:00:38.143108674Z | File "/usr/lib/python3.11/contextlib.py", line 222, in aexit
2025-05-24T03:00:38.143116124Z | await self.gen.athrow(typ, value, traceback)
2025-05-24T03:00:38.143124194Z | File "/app/.venv/lib/python3.11/site-packages/mcp/client/stdio/init.py", line 170, in stdio_client
2025-05-24T03:00:38.143135994Z | async with (
2025-05-24T03:00:38.143146391Z | File "/app/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 772, in aexit
2025-05-24T03:00:38.143155452Z | raise BaseExceptionGroup(
2025-05-24T03:00:38.143163006Z | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
2025-05-24T03:00:38.143170732Z +-+---------------- 1 ----------------
2025-05-24T03:00:38.143178172Z | Exception Group Traceback (most recent call last):
2025-05-24T03:00:38.143185543Z | File "/app/.venv/lib/python3.11/site-packages/mcp/client/stdio/init.py", line 177, in stdio_client
2025-05-24T03:00:38.143193614Z | yield read_stream, write_stream
2025-05-24T03:00:38.143202739Z | File "/app/.venv/lib/python3.11/site-packages/mcpo/main.py", line 110, in lifespan
2025-05-24T03:00:38.143210385Z | async with ClientSession(reader, writer) as session:
2025-05-24T03:00:38.143217964Z | File "/app/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 772, in aexit
2025-05-24T03:00:38.143234026Z | raise BaseExceptionGroup(
2025-05-24T03:00:38.143242387Z | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
2025-05-24T03:00:38.143249987Z +-+---------------- 1 ----------------
2025-05-24T03:00:38.143257232Z | ... (max_group_depth is 10)
2025-05-24T03:00:38.143265302Z +------------------------------------
2025-05-24T03:00:38.143272629Z
2025-05-24T03:00:38.143279563Z ERROR: Application startup failed. Exiting.
2025-05-24T03:00:38.144347314Z Starting MCP OpenAPI Proxy with config file: /app/mcpo/config.json
Additional Information
No response
@taylorwilsdon commented on GitHub (May 28, 2025):
Ah, so the issue here is that this is a streamable HTTP / SSE fallback MCP server, and you're trying to start it via the config.json as a stdio MCP. For SSE and streamable HTTP transport types, you need to run the MCP and provide mcpo with the endpoint to consume it - ie:
or
Seems like there's definitely room for improvement around user experience here though, as I've actually made the same mistake myself.
@taylorwilsdon commented on GitHub (May 28, 2025):
@tjbck I started out writing validation logic and instead went down the rabbit hole of auto detection - PR incoming