/jonhill90-skills:central-hub-mcpfrom jonhill90-skills
Orients on Central Hub's read-only MCP server (hub-mcp) to query live cluster state, fact graphs, notebook notes, PRs, and CI. Use hub_orient first, then targeted tools for specific data.
Ships in jonhill90-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
hub-mcp is Central Hub's read-only MCP server
(jonhill90/central-hub-app,
services/mcp). It exposes exactly seven tools — hub_orient, graph_stats,
graph_query, notebook_search, notebook_read, c1_read, github_read —
and none of them changes anything. Use it to read the hub's state instead of
guessing from memory or from stale notes.
hub_orient firsthub_orient (no arguments) the first
hub-mcp call. Its answer is capped at 6,000 bytes and covers, in one read:
c1: Argo CD applications with sync, health and revision (up to 20);notebook: the notebook checkout's head_sha, and its authoritative,
frozen and searchable roots;graph: fact-graph counts, entities per kind, and the newest active facts;working_contract and a one-line map of every tool.available: false as a fact to report with its
reason code (not_configured, graph_unavailable, c1_unavailable,
jumpbox_mode_skipped, cut_to_budget, …), not as an error to retry or
hide. trimmed: true means facts, then apps, then kinds were cut to fit
the budget — query for the rest rather than assuming none exist.| Need | Tool | Notes |
|---|---|---|
| Fact counts, per trust grade | graph_stats | Entities, evidence, facts. |
| Specific facts | graph_query | Filter by subject, predicate, world time valid_at, system time recorded_at, min_trust; limit 1–200. Each fact carries its evidence row (source_ref, content_sha256, observed_at). |
| Find notes | notebook_search | Searchable roots only; at most 25 hits. |
| Read a note | notebook_read | By rel_path, a line window (default 1–120). |
| Live cluster state | c1_read | Read-only get on allowlisted kinds; never Secrets. |
| PRs, issues, commits, CI | github_read | Allowlisted repositories only. |
Trust grades rank measured_live > sourced > inferred > not_tested. Pass
min_trust when a decision rests on the answer, and quote the grade with the
fact.
Notebook roots:
01-notes/01a-atomic/, 01-notes/01r-research/,
01-notes/01h-handbook/, 02-projects/, 03-areas/,
04-resources/04r-repos/.01-notes/01t-tasks/,
01-notes/01w-worklogs/, 01-notes/01i-incidents/. Do not pick work up
from them or cite them as current state; check live state with c1_read,
github_read or graph_query instead.hub_orient returns the roots and the tool map itself; prefer its live
answer if it differs from this page.
The same contract hub_orient returns as working_contract:
[measured live] (read this session from a
tool), [sourced: <path or ref>] (from a note, doc or fact's evidence), or
[not tested]. Never present an inferred value as measured.sandbox: false: these tools read it; any change goes through
the platform repository's reviewed path, never improvised from a session.The endpoint is MCP streamable HTTP at https://mcp.<zone>/mcp, reachable
from the tailnet only. <zone> (and the Keycloak realm, <realm>) are
placeholders; never write the real values into shared files.
GET https://mcp.<zone>/healthz.GET /.well-known/oauth-protected-resource (and
…/oauth-protected-resource/mcp); every 401 names it as
resource_metadata in WWW-Authenticate.https://sso.<zone>/realms/<realm>
with authorization code + PKCE S256, public client ID hub-mcp. The
account must be in lab-admins or lab-viewers, otherwise every call is
403. The realm refuses dynamic client registration: give hub-mcp as the
client ID where the client asks, or use a bearer header read from
HUB_MCP_TOKEN at run time.Per-harness configuration — Claude Code, Codex CLI, Claude Desktop, Copilot CLI and VS Code, Antigravity, and the generic contract for Pi, OpenClaw, Hermes, Paperclip, Rex and others — is in references/harness-setup.md. Read it only when setting up or debugging a connection.
Cloud web clients (claude.ai, Claude Projects) cannot connect yet: their connectors call from Anthropic's cloud, which is not on the tailnet. They need a public HTTPS edge for hub-mcp that does not exist yet. Do not expose hub-mcp any other way.
A harness can list the tools and still answer from memory. After connecting:
central-hub-app checkout, in services/mcp:
uv run python -m hub_mcp.smoke --url https://mcp.<zone> (add
--token-env HUB_MCP_TOKEN to also check the tools). Expect
verdict: PASS.hub_orient, then report head_sha, facts/active_facts, the newest
fact's subject and predicate, the c1 app count with one app's sync and
health, every available: false with its reason, and the tool count.hub_orient
was visibly called once with no arguments; values match the smoke run or
another harness's read at the same time; every available: false is
reported; the exchange stayed under about 4,000 tokens.The full checklist and failure table are in the upstream runbook, linked from references/harness-setup.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
44 skills in this plugin
/adopt-or-buildDecide, per component, whether to adopt an existing name, dependency, library, or tool or build it in-house, weighing blast radius over convenience. Use at the point a name or dependency is about to be chosen or recommended — before it is proposed, not after. Not for finding a technology's capability ceiling (research-the-limit), not the mechanism for genuinely different reviewer lenses (ask-a-council, which this skill may call), and not a substitute for attacking the chosen answer (devils-advocate, which this skill invokes as its final step)./ask-a-councilConvene several harnesses or models against one question, each doing a distinct job it can fail at — different evidence, a different objective, or a withheld conclusion — before an artifact becomes load-bearing and being wrong is expensive. Diversity comes from what each reviewer is given, never from a character it plays. Use when the failure modes genuinely differ in kind — a single reviewer's prompt would only catch what its own lens looks for. Not for a question a cheap deterministic check settles (run the check first); not for one reviewer's prompt (sanity-check owns that); not for dispatch mechanics or isolation boundaries (dispatching-subagents owns those); not for trusting a verdict already returned (verify-the-instrument owns that).npx claudepluginhub jonhill90/skills --plugin jonhill90-skills