MCPcopy Create free account
hub / github.com/commandoperator/cmdop-sdk / __init__

Method __init__

python/src/cmdop/_transport.py:90–99  ·  view source on GitHub ↗
(self, cfg: ClientConfig, bin_path: str)

Source from the content-addressed store, hash-verified

88 async with self._start_lock:
89 if self._process is not None:
90 return
91 env = dict(os.environ)
92 if self._config.token:
93 env["CMDOP_TOKEN"] = self._config.token
94 else:
95 env.pop("CMDOP_TOKEN", None)
96 if self._config.base_url:
97 env["CMDOP_BASE_URL"] = self._config.base_url
98 else:
99 env.pop("CMDOP_BASE_URL", None)
100 self._process = await asyncio.create_subprocess_exec(
101 self._binary_path,
102 "--stdio",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected