mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-03 06:12:14 +08:00
fix: the stdio and sse mcp server loading issue (#566)
This commit is contained in:
@@ -30,7 +30,12 @@ async def _get_tools_from_client_session(
|
|||||||
Raises:
|
Raises:
|
||||||
Exception: If there's an error during the process
|
Exception: If there's an error during the process
|
||||||
"""
|
"""
|
||||||
async with client_context_manager as (read, write, _):
|
async with client_context_manager as context_result:
|
||||||
|
# Access by index to be safe
|
||||||
|
read = context_result[0]
|
||||||
|
write = context_result[1]
|
||||||
|
# Ignore any additional values
|
||||||
|
|
||||||
async with ClientSession(
|
async with ClientSession(
|
||||||
read, write, read_timeout_seconds=timedelta(seconds=timeout_seconds)
|
read, write, read_timeout_seconds=timedelta(seconds=timeout_seconds)
|
||||||
) as session:
|
) as session:
|
||||||
|
|||||||
Reference in New Issue
Block a user