runtime error
Exit code: 1. Reason: in run_until_complete return future.result() File "/usr/local/lib/python3.10/site-packages/mcpadapt/core.py", line 219, in setup connections = [ File "/usr/local/lib/python3.10/site-packages/mcpadapt/core.py", line 220, in <listcomp> await stack.enter_async_context(mcptools(params)) File "/usr/local/lib/python3.10/contextlib.py", line 619, in enter_async_context result = await _cm_type.__aenter__(cm) File "/usr/local/lib/python3.10/contextlib.py", line 199, in __aenter__ return await anext(self.gen) File "/usr/local/lib/python3.10/site-packages/mcpadapt/core.py", line 119, in mcptools async with client as (read, write, *_): File "/usr/local/lib/python3.10/contextlib.py", line 199, in __aenter__ return await anext(self.gen) File "/usr/local/lib/python3.10/site-packages/mcp/client/sse.py", line 45, in sse_client async with anyio.create_task_group() as tg: File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 772, in __aexit__ raise BaseExceptionGroup( exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) Traceback (most recent call last): File "/home/user/app/app.py", line 9, in <module> mcp_client = MCPClient( File "/usr/local/lib/python3.10/site-packages/smolagents/mcp_client.py", line 105, in __init__ self.connect() File "/usr/local/lib/python3.10/site-packages/smolagents/mcp_client.py", line 109, in connect self._tools: list[Tool] = self._adapter.__enter__() File "/usr/local/lib/python3.10/site-packages/mcpadapt/core.py", line 295, in __enter__ self.start() File "/usr/local/lib/python3.10/site-packages/mcpadapt/core.py", line 283, in start raise TimeoutError( TimeoutError: Couldn't connect to the MCP server after 30 seconds During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/user/app/app.py", line 29, in <module> mcp_client.disconnect() NameError: name 'mcp_client' is not defined. Did you mean: 'MCPClient'?
Container logs:
Fetching error logs...