mirror of
https://github.com/mcp-use/mcp-use.git
synced 2026-09-14 18:06:01 +08:00
21 lines
567 B
Python
21 lines
567 B
Python
# mcp_use/connectors/utils.py
|
|
import warnings
|
|
from typing import Any
|
|
|
|
from typing_extensions import deprecated
|
|
|
|
from mcp_use.client.connectors.utils import is_stdio_server as _is_stdio_server
|
|
|
|
warnings.warn(
|
|
"mcp_use.connectors.utils is deprecated. "
|
|
"Use mcp_use.client.connectors.utils. "
|
|
"This import will be removed in version 2.0.0",
|
|
DeprecationWarning,
|
|
stacklevel=2,
|
|
)
|
|
|
|
|
|
@deprecated("Use mcp_use.client.connectors.utils.is_stdio_server")
|
|
def is_stdio_server(server_config: dict[str, Any]) -> bool:
|
|
return _is_stdio_server(server_config)
|