MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / _get_executable_command

Function _get_executable_command

src/mcp/client/stdio.py:320–325  ·  view source on GitHub ↗

Normalizes the command for the current platform.

(command: str)

Source from the content-addressed store, hash-verified

318
319
320def _get_executable_command(command: str) -> str:
321 """Normalizes the command for the current platform."""
322 if sys.platform == "win32": # pragma: no cover
323 return get_windows_executable_command(command)
324 else: # pragma: lax no cover
325 return command
326
327
328async def _create_platform_compatible_process(

Callers 1

stdio_clientFunction · 0.85

Calls 1

Tested by

no test coverage detected