MCPcopy Create free account
hub / github.com/JaredStewart/coderlm / _get

Function _get

plugin/skills/coderlm/scripts/coderlm_cli.py:127–134  ·  view source on GitHub ↗
(state: dict, path: str, params: dict | None = None)

Source from the content-addressed store, hash-verified

125
126
127def _get(state: dict, path: str, params: dict | None = None) -> dict:
128 base = _base_url(state)
129 url = f"{base}{path}"
130 if params:
131 clean = {k: v for k, v in params.items() if v is not None}
132 if clean:
133 url += "?" + urllib.parse.urlencode(clean)
134 return _request("GET", url, headers={"X-Session-Id": _session_id(state)})
135
136
137def _post(state: dict, path: str, data: dict) -> dict:

Callers 11

cmd_structureFunction · 0.85
cmd_symbolsFunction · 0.85
cmd_searchFunction · 0.85
cmd_implFunction · 0.85
cmd_callersFunction · 0.85
cmd_testsFunction · 0.85
cmd_variablesFunction · 0.85
cmd_peekFunction · 0.85
cmd_grepFunction · 0.85
cmd_chunksFunction · 0.85
cmd_historyFunction · 0.85

Calls 3

_base_urlFunction · 0.85
_requestFunction · 0.85
_session_idFunction · 0.85

Tested by

no test coverage detected