You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Запуск agent.py падает с ошибкой:
| File "C:\Program Files\anaconda3\envs\mcp\Lib\contextlib.py", line 158, in exit
| self.gen.throw(value)
| File "C:\Program Files\anaconda3\envs\mcp\Lib\site-packages\httpx_transports\default.py", line 118, in map_httpcore_exceptions
| raise mapped_exc(message) from exc
| httpx.ConnectError: All connection attempts failed
Причем, независимо от значения GIGACHAT_CREDENTIALS в файле .env
Запуск mcp_react_agent.py падает с ошибкой:
File "C:\Program Files\anaconda3\envs\mcp\Lib\site-packages\langchain_mcp_adapters\client.py", line 167, in aenter
raise NotImplementedError(ASYNC_CONTEXT_MANAGER_ERROR)
NotImplementedError: As of langchain-mcp-adapters 0.1.0, MultiServerMCPClient cannot be used as a context manager (e.g., async with MultiServerMCPClient(...)). Instead, you can do one of the following:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Запуск agent.py падает с ошибкой:
| File "C:\Program Files\anaconda3\envs\mcp\Lib\contextlib.py", line 158, in exit
| self.gen.throw(value)
| File "C:\Program Files\anaconda3\envs\mcp\Lib\site-packages\httpx_transports\default.py", line 118, in map_httpcore_exceptions
| raise mapped_exc(message) from exc
| httpx.ConnectError: All connection attempts failed
Причем, независимо от значения GIGACHAT_CREDENTIALS в файле .env
Запуск mcp_react_agent.py падает с ошибкой:
File "C:\Program Files\anaconda3\envs\mcp\Lib\site-packages\langchain_mcp_adapters\client.py", line 167, in aenter
raise NotImplementedError(ASYNC_CONTEXT_MANAGER_ERROR)
NotImplementedError: As of langchain-mcp-adapters 0.1.0, MultiServerMCPClient cannot be used as a context manager (e.g., async with MultiServerMCPClient(...)). Instead, you can do one of the following:
tools = await client.get_tools()
async with client.session(server_name) as session:
tools = await load_mcp_tools(session)
Beta Was this translation helpful? Give feedback.
All reactions