[GH-ISSUE #154] issue: Startup error when adding mcp server #71

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

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

Check Existing Issues

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

mcpo Version

0.0.14

Open WebUI Version (if applicable)

No response

Operating System

Ubuntu

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

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

Originally created by @xingwenkai on GitHub (May 24, 2025). Original GitHub issue: https://github.com/open-webui/mcpo/issues/154 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of mcpo. ### mcpo Version 0.0.14 ### Open WebUI Version (if applicable) _No response_ ### Operating System Ubuntu ### 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 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_
Author
Owner

@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:

    "mcp_sse": {
      "type": "sse"
      "url": "http://127.0.0.1:8001/sse"
    }

or

    "mcp_streamable_http": {
      "type": "streamable_http",
      "url": "http://127.0.0.1:8002/mcp"
    }
  }

Seems like there's definitely room for improvement around user experience here though, as I've actually made the same mistake myself.

<!-- gh-comment-id:2917433367 --> @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: ``` "mcp_sse": { "type": "sse" "url": "http://127.0.0.1:8001/sse" } ``` or ``` "mcp_streamable_http": { "type": "streamable_http", "url": "http://127.0.0.1:8002/mcp" } } ``` Seems like there's definitely room for improvement around user experience here though, as I've actually made the same mistake myself.
Author
Owner

@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

<!-- gh-comment-id:2917752051 --> @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
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#71
No description provided.