Install and connect details
Details behind the README quickstart: cloning without GitHub credentials, platform notes, the optional gateway prerequisites and the exact client entries.
For one library reachable from local agents and hosted bots, follow the self-host quickstart.
Clone and check
Install Git and Python 3.11+ (Windows: 3.12.4+). Clone into a permanent folder: connected agents remember its path, so moving it breaks them. The public source is git clone https://github.com/TayHCode/coldlocker, then cd coldlocker. For another approved repository, run gh repo clone <OWNER>/coldlocker (or git clone <HTTPS_URL> coldlocker) with your existing GitHub login. Replace <OWNER> and <HTTPS_URL> with that repository; an SSH URL needs an SSH key. No GitHub credentials on this machine? For a private transfer from an approved machine, run git bundle create coldlocker.bundle <APPROVED_BRANCH>, copy the file here, run git clone --branch <APPROVED_BRANCH> coldlocker.bundle coldlocker. Setting an HTTPS origin is optional until you want network updates; doctor works without it. Get the approved URL from whoever supplied the bundle, then run git -C coldlocker remote set-url origin <HTTPS_URL>. Run the remaining commands from that checkout; <HUB_DIR> means its absolute directory.
A bundle includes the selected ref's reachable history. It can contain private information removed from current files; selecting one ref does not sanitize it. Review and approve its contents before transfer, keep it private, and complete the history privacy gate (reference outside this guide) before public distribution. Do not use development recovery bundles as public installation packages.
python3 hub.py doctorEvery line should start with PASS and the command should exit 0. To update an existing installation later, follow the upgrade guide.
For additional source-export checks, run python3 -B tools/verify_export.py. This needs Git and symlink permission, but no extra Python packages. Full unittest discovery and hub.py check require private maintainer files omitted from this export. See Contributing. doctor checks the installed catalog without requiring your commits to use a maintainer identity.
Platforms
Windows: use py -3 (or python) in place of python3. The private store is owner-only on Windows only with Python 3.12.4+; older versions leave it with the parent folder's permissions, so use 3.12.4+ there.
macOS and Linux use python3. The gateway is not available on Windows; use the stdio route (mcp_endpoint.py, below) there. connect --write adds each imported stdio MCP server to every client natively instead (imported MCP servers).
Optional: shared authenticated tools
Skip this for catalog-only use. Install Node 20+ (Node 24 recommended), npm and the system ss utility first (Linux). On the Node 20 line, use 20.19 or newer for the locked dependencies; the current pins are verified on Node 24. Check with node --version, npm --version and ss --version. macOS uses the built-in lsof. The gateway is not available on Windows. The installer creates private directories and installs only @samanhappy/[email protected] from the tracked gateway/package-lock.json (npm ci --ignore-scripts). First installation needs registry access and installs third-party dependencies. Review server definitions before starting: start executes their commands. The shipped example-server runs locally with Python and exposes add; see gateway setup for a tool-call verification command.
python3 gateway.py install
python3 gateway.py prepare && python3 gateway.py start
python3 gateway.py statusThe single streamable HTTP endpoint is /mcp on numeric IPv4 loopback, port 43871 by default. If that port is busy, leave its listener alone and run python3 gateway.py start --port <PORT> instead, replacing <PORT> with an unused unprivileged port. Below, <GATEWAY_URL> means that complete local URL; the wizard's Connect your agents screen shows it. Only local processes should access it. Bearer-token authentication is opt-in with gateway.py start --require-token; see gateway authentication for private token export and client setup. Stop it when finished:
python3 gateway.py stopClient entries
Merge the chosen entries into existing settings, reload the agent and approve the connection. python3 hub.py connect prints them; python3 hub.py connect --write merges only locker entries after confirmation and a timestamped backup. These match the wizard's Connect your agents screen with private paths and URLs replaced by placeholders. The catalog lists content; the optional gateway executes tools. The gateway fragments below apply without --require-token; when it is enabled, rerun hub.py connect for entries that reference the token environment variable.
Claude Code project .mcp.json and Cursor project .cursor/mcp.json — catalog:
{
"mcpServers": {
"coldlocker": {
"command": "python3",
"args": ["<HUB_DIR>/mcp_endpoint.py"]
}
}
}Codex approved config.toml — catalog:
[mcp_servers.coldlocker]
command = "python3"
args = ["<HUB_DIR>/mcp_endpoint.py"]Claude Code .mcp.json — optional gateway:
{
"mcpServers": {
"coldlocker-gateway": {
"type": "http",
"url": "<GATEWAY_URL>"
}
}
}Cursor .cursor/mcp.json — optional gateway:
{
"mcpServers": {
"coldlocker-gateway": {
"url": "<GATEWAY_URL>"
}
}
}Codex config.toml — optional gateway:
[mcp_servers.coldlocker-gateway]
url = "<GATEWAY_URL>"See client configuration for per-client paths.
Verify in your agent
Ask the agent to list the connected MCP tools and call hub_list_skills (also available: hub_list_rules, hub_list_mcp_servers, hub_list_routines, hub_list_plugins, hub_list_connections). The result should match manifest.json plus .hub-store/catalog/manifest.json (created by your first import). Read a skill, rule or routine with hub_get_item (kind is skill, rule or routine, plus its name). If using the gateway, inspect its separate tool list and call a harmless imported tool; catalog discovery alone does not prove tool execution or shared auth.
To undo a connection, run the Undo: command printed by connect --write. It previews the change. Append --apply to run it. Coldlocker checks the registration's bytes again before removing it. If you added another server, its settings and formatting stay in place. A modified registration requires manual removal. For older installations that printed a copy command, compare the backup with the current config and remove the registration by hand.
Credentials and gateway state live in gitignored .hub-store/ (directories 700, files 600); the npm runtime lives in gitignored .scratch/. .hub-store/ and local config.json must never be committed. See MCP authentication.
Troubleshooting
- Health check fails: read the named failure and fix it before importing; rerun
python3 hub.py doctor. Maintainers also runhub.py check. - Wizard unavailable: rerun
python3 hub.py serve, use its newly printed URL, and keep the terminal open. - Gateway fails: check Node/runtime prerequisites and declared Store secrets for imported servers; use
python3 gateway.py statusand the redacted.hub-store/gateway/gateway.log. - Tools absent: replace placeholders, preserve the configuration wrapper, reload and approve the client; revisit Connect your agents after starting the gateway.
- Auth expired: reconnect in the wizard's sign-in screen, then run
python3 gateway.py refresh; clients must reconnect. Stored manual credentials are not provider-tested.
Instruction consistency gate
With the owner policy pack installed, run python3 consistency_check.py before installing or merging content. It is also part of hub.py check and hub.py doctor. Hook installation and skill linking run it before writing, including in preview mode. Pinned hook sync checks the decoded hook instructions before execution or writes, including over SSH. The existing maintainer check remains the pre-merge gate; this change does not alter CI or branch rules.
The checker recursively reads skills, rules, hooks and routines, including text support files and imported catalog content. Binary support assets remain installable; malformed known instruction formats fail the check. Only rules/model-routing.md in the shipped tree may name models or pin effort. Consumers must use the model and effort selected by live routing. Family names require model-selection context; ordinary literary words are allowed. Explicit model identifiers are prohibited even in API-response examples and support data: use generic fixture identifiers or placeholders there. This intentionally keeps concrete model names in one reference. Named-model prohibitions remain routing policy and belong in the single reference. The checker reports paths, line numbers and rule codes without echoing file contents.
It rejects known terminal-status, verification-order and retired-gate instruction patterns. Check verdicts such as PASS/FAIL/INCOMPLETE remain valid; final task statuses are DONE or BLOCKED. Generic status fields require task-completion context, such as final-status wording or a Goal/Remaining report block. Keep-going requires completing verification before claiming DONE. Negated prohibitions remain valid. This is a deterministic lint for known wording, not a proof that arbitrary natural-language instructions cannot conflict. New contradictions need a regression fixture and a matching rule. It makes no model calls and does not execute the scanned instructions.