Skip to main content
Glama
subprocess_util.py545 B
import platform import subprocess def subprocess_kwargs() -> dict: """ Returns a dictionary of keyword arguments for subprocess calls, adding platform-specific flags that we want to use consistently. """ kwargs = {} if platform.system() == "Windows": kwargs["creationflags"] = subprocess.CREATE_NO_WINDOW # type: ignore return kwargs def quote_arg(arg: str) -> str: """ Adds quotes around an argument if it contains spaces. """ if " " not in arg: return arg return f'"{arg}"'

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/oraios/serena'

If you have feedback or need assistance with the MCP directory API, please join our Discord server