MCPcopy Create free account
hub / github.com/cft0808/edict / _get_configured_hub_base

Function _get_configured_hub_base

scripts/skill_manager.py:225–232  ·  view source on GitHub ↗

Return a user-provided skills hub base URL, if configured.

()

Source from the content-addressed store, hash-verified

223
224
225def _get_configured_hub_base():
226 """Return a user-provided skills hub base URL, if configured."""
227 env_base = os.environ.get(_HUB_BASE_ENV)
228 if env_base:
229 return env_base
230
231 hub_url_file = OCLAW_HOME / 'skills-hub-url'
232 return hub_url_file.read_text().strip() if hub_url_file.exists() else None
233
234
235def _get_hub_url(base, skill_name):

Callers 1

skill_manager.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected