mirror of
https://github.com/mcp-use/mcp-use.git
synced 2026-09-14 18:06:01 +08:00
18f51eddb8
* move: session * move: client * move:config * move: exceptions * move: connectors -> client.connectors * move: task_managers -> client.task_managers * move: observability -> agents.observability * move: middleware -> client.middleware * move: managers -> agents.managers * move: auth -> client.auth * move: adapters -> agents.adapters * test: bc test * test: bc test * chore: remove relative imports * fix tests * chore: update docs * chore: deprecation warnings * chore: fix dangerous non absolute import * fix: remove legacy imports * telemetry
14 lines
366 B
Python
14 lines
366 B
Python
from typing import Any
|
|
|
|
|
|
def is_stdio_server(server_config: dict[str, Any]) -> bool:
|
|
"""Check if the server configuration is for a stdio server.
|
|
|
|
Args:
|
|
server_config: The server configuration section
|
|
|
|
Returns:
|
|
True if the server is a stdio server, False otherwise
|
|
"""
|
|
return "command" in server_config and "args" in server_config
|