我在使用本地MCP Server时使用Streamable HTTP发现MCP那边已经将streamablehttp_client函数变成了streamable_http_client。
参见:https://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/client/streamable_http.py#L519
from mcp.client.streamable_http import streamablehttp_client (deprecated)
from mcp.client.streamable_http import streamable_http_client (new)
see: agentscope/src/agentscope/mcp/_http_stateless_client.py (stateful的client同理)
我在使用本地MCP Server时使用Streamable HTTP发现MCP那边已经将streamablehttp_client函数变成了streamable_http_client。
参见:https://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/client/streamable_http.py#L519
from mcp.client.streamable_http import streamablehttp_client (deprecated)
from mcp.client.streamable_http import streamable_http_client (new)
see: agentscope/src/agentscope/mcp/_http_stateless_client.py (stateful的client同理)