MCPcopy
hub / github.com/lightningpixel/modly / _request_supported_contract

Function _request_supported_contract

tools/modly-cli/agent.py:229–235  ·  view source on GitHub ↗
(method: str, url: str, *, timeout: float, data: bytes | None = None, headers: dict[str, str] | None = None)

Source from the content-addressed store, hash-verified

227
228
229def _request_supported_contract(method: str, url: str, *, timeout: float, data: bytes | None = None, headers: dict[str, str] | None = None) -> Any:
230 try:
231 return _request_json(method, url, timeout=timeout, data=data, headers=headers)
232 except ModlyCliError as exc:
233 if exc.http_status == 404:
234 raise _unsupported_process() from exc
235 raise
236
237
238def _repo_root() -> Path:

Callers 4

cmd_capability_listFunction · 0.85
cmd_process_run_startFunction · 0.85
cmd_process_run_statusFunction · 0.85
cmd_process_run_cancelFunction · 0.85

Calls 2

_request_jsonFunction · 0.85
_unsupported_processFunction · 0.85

Tested by

no test coverage detected