/cub-scout:scout-mcpfrom cub-scout
Exposes cub-scout to AI agents via MCP gateway, produces deterministic cluster context packs, or runs as a read-only event bot. Use when integrating cub-scout with LLMs or agent frameworks.
Ships in cub-scout. 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.
None: SKILL.md is the whole skill.
The Integrate verb group of cub-scout. Three ways to plug cub-scout into AI workflows:
mcp serve — long-running Model Context Protocol gateway exposing cub-scout's verbs as MCP tools for Claude / Codex / any MCP-aware agentcontext-pack — one-shot deterministic JSON context bundle an agent can consume directlybot — in-cluster event producer using the same read-only watch stream as cub-scout watchPlus the version/status meta-commands the harness uses for cold-start checks.
Explicit phrasings:
Implicit intents:
cub-side MCP toolsscout-observe, etc.)cub MCP integration (the ConfigHub-side MCP surface) — that's a separate skill setscout-verifyscout-comparemcp serve exposes the read-only standalone tool set (doctor, explain, map, scan, trace, compare drift, etc.). context-pack produces a cluster snapshot with attribution evidence but no ConfigHub linkage. bot streams watch events using kubeconfig or in-cluster service-account credentials.cub auth login): mcp serve additionally registers the connected-mode tools (compare_three_way, compare_source_truth, confighub_changesets, confighub_k8s_resources, confighub_k8s_types, confighub_live_status, confighub_releases, confighub_resources, confighub_unit_events, confighub_units, confighub_unit_get). Connected context-pack includes ConfigHub unit linkage and connected attribution (bindingSource).mcp serve refuses to start without a reachable cluster. context-pack works against debug bundles via --bundle <path>.mcp serve (long-running but no mutation), context-pack (deterministic snapshot), version, status; kubectl get/describe, kubectl config current-context; cub <entity> get / list for the entities named in allowed-tools, cub auth status. bot changes nothing in the cluster but is not auto-approved: its --webhook flag sends events to any URL, so the host asks each time.mcp serve exposes ONLY the read-only cub-scout verbs as tools. The MCP tool catalog explicitly excludes any mutating verb (demo, import apply, compare --suggest --apply) — see cmd/cub-scout/mcp.go RegisterTools for the closed list. context-pack never writes; it reads + emits.| Question | Verb | Notes |
|---|---|---|
| "Start the MCP gateway" | cub-scout mcp serve | Long-running stdio transport. |
| "What MCP tools are registered?" | MCP tools/list request | Dumps the tool catalog through the standard MCP discovery request. Useful for agent registration debugging. |
| "Produce deterministic AI context" | cub-scout context-pack --format json | One-shot. Cluster snapshot + ownership classifications + attribution evidence in a single JSON. |
| "Pack a bundle as AI context" | cub-scout context-pack --bundle <path> | Same shape, sourced from a debug bundle instead of the live cluster. Offline-friendly. |
| "Run cub-scout as an event bot" | cub-scout bot --webhook <url> | In-cluster-friendly watch stream with env-var config for manifests. |
| "Check cub-scout version" | cub-scout version | Build tag. Agents that registered cub-scout tools use this to detect breaking-change ranges. |
| "Confirm mode" | cub-scout status --json | Agents call this first to know which connected tools are available. Read confighub_reads (and confighub_reads_reason), not the mode line — see standalone vs connected. |
mcp serve. Single-shot reasoning over a snapshot → context-pack. In-cluster event producer → bot.cub-scout status --json confirms it: confighub_reads: true means the connected tools will run, and when it is false confighub_reads_reason says why. The mode line describes hub.confighub.com and can disagree in either direction, so do not use it as the pre-flight. Tell the agent which tool subset is live.mcp serve registers tools with the agent. For context-pack, --format json and pipe to the agent. For bot mode, set destination env vars or flags and deploy/run the process.scout-observe, scout-diagnose, etc.) is reachable via MCP tools and uses the same loops described in those skills.cub skills (in confighub/confighub-skills) or direct kubectl with the user driving.// .claude/mcp_servers.json (or equivalent for your agent host)
{
"mcpServers": {
"cub-scout": {
"command": "cub-scout",
"args": ["mcp", "serve"],
"env": {
"KUBECONFIG": "${env:HOME}/.kube/config"
}
}
}
}
The agent now sees cub-scout's read-only tools (doctor, explain, trace, compare_three_way, confighub_live_status, etc.) and can call them like any other MCP tool.
Use the standard MCP tools/list request from the agent host. The standalone
catalog contains doctor, explain, gitops_settings, gitops_status, map,
release_check, scan, and trace; connected mode adds the ConfigHub tools
listed below.
Every tool is a thin wrapper over the underlying CLI verb with --format json — see docs/reference/json-contracts.md for the response shape.
$ cub-scout context-pack --format json > cluster-ctx.json
$ jq '.ownership | group_by(.type) | map({type: .[0].type, count: length})' cluster-ctx.json
[
{"type": "argo", "count": 47},
{"type": "flux", "count": 12},
{"type": "helm", "count": 8},
{"type": "native", "count": 23},
{"type": "unknown", "count": 3}
]
The pack is deterministic — same cluster state + same cub-scout version → same JSON bytes. Safe to feed to an LLM with prompt caching, and safe to diff in CI.
When the ConfigHub session check passes (confighub_reads: true in cub-scout status --json), mcp serve additionally registers the tools below. Since v2.14.0 the check is made through the ConfigHub SDK and needs no cub binary; cub auth status checks the same session.
compare_three_way — DRY/WET/LIVE comparisoncompare_source_truth — strategy-typed verdict (requires target + namespace + strategy)confighub_attestations — attestations recorded directly against one exact revisionconfighub_changeorder_get — one ChangeOrder's reported Stage/State and declarationsconfighub_changesets — governed ChangeSet history from ConfigHubconfighub_k8s_types — Resource-backed intended Kubernetes type surveyconfighub_k8s_resources — Resource-backed intended Kubernetes resource readerconfighub_live_status — Space live-status writeback with freshnessconfighub_releases — bounded ConfigHub Release historyconfighub_resources — generic ConfigHub Resource entity queryconfighub_unit_events — retired: always an empty list, since ConfigHub no longer records unit events; use confighub_releasesconfighub_units — ConfigHub unit + fleet inventoryconfighub_unit_get — exact ConfigHub unit details + applied/live revisionThese are the typical acceptance-kernel inputs. The agent composes them; cub-scout produces evidence; the downstream judge decides.
mcp serve (the gateway)tools/list request.content[0].text containing the wrapped CLI verb's --format json output verbatim.structuredContent field on selected connected-mode tools adds parsed evidence + read-only trust guidance for Pilot-shaped consumers.context-pack (the snapshot)The fields below are contextPackV2 in cmd/cub-scout/context_pack.go.
| Field | Meaning |
|---|---|
version | cub-scout build tag + context-pack schema version |
generatedAt | RFC 3339 timestamp |
cluster | kubeconfig context |
namespace | Scope of the snapshot, or all |
provenance | source / deterministic / confidence for the snapshot itself |
ownershipSummary | Per-owner counts |
topRisks[] | Bounded issue list, most severe first |
traceSeeds[] | Workloads worth tracing, each with the exact trace command |
commandEvidence[] | Commands whose output backs the above |
truncated, sizeBytes | Whether the payload was cut to fit, and its size |
There is no mode field: context-pack is a standalone snapshot. Whether
ConfigHub reads work is confighub_reads in cub-scout status --json.
The snapshot is the evidence base a downstream LLM reasons over. It is NOT a recommendation; the LLM forms recommendations.
The closed list of MCP tools cub-scout registers. The set is verified by cmd/cub-scout/mcp_test.go against the connected/standalone modes.
| Tool name | Mode | Wraps |
|---|---|---|
doctor | standalone | cub-scout doctor --format json plus optional --with-confighub delivery evidence flags |
map | standalone | cub-scout map list --json |
scan | standalone | cub-scout scan --json |
trace | standalone | cub-scout trace <resource> --format json |
explain | standalone | cub-scout explain <resource> --format json |
gitops_status | standalone | cub-scout gitops status --format json |
gitops_settings | standalone | cub-scout gitops settings --format json (preview: shapes may still change) |
release_check | standalone | cub-scout release check --format json |
compare_three_way | connected | cub-scout compare three-way --format json |
compare_source_truth | connected | cub-scout compare source-truth <target> -n <ns> --strategy <s> --format json |
confighub_attestations | connected | One revision and its space's attestation list, as cub revision get and cub attestation list print them (SDK) |
confighub_changeorder_get | connected | cub changeorder get <order> -o json --space <space> (SDK; an order named by ID runs cub) |
confighub_changesets | connected | cub changeset list -o json --space <space> (SDK) |
confighub_k8s_resources | connected | cub k8s get <type> [<name> ...] -o json (runs cub) |
confighub_k8s_types | connected | cub k8s types [<type>] -o json (runs cub) |
confighub_live_status | connected | cub space list -o json --select Slug,SpaceID,Annotations,Labels [--where "Slug = '<space>'"] (runs cub) |
confighub_releases | connected | cub release list --space <space> -o json (SDK; space: "*" runs cub) |
confighub_resources | connected | cub resource list --space <space> -o json (SDK; with select, filter, view or raw_data it runs cub) |
confighub_unit_events | connected | nothing: always [], since ConfigHub no longer records unit events (retired; kept for existing callers) |
confighub_units | connected | cub unit list -o json --space <space> (SDK) |
confighub_unit_get | connected | cub unit get -o json <unit> --space <space> (SDK; a Unit named by ID, or as <space>/<slug> together with space, runs cub) |
8 standalone + 13 connected = 21 tools total. The catalog is intentionally narrow and every tool is read-only.
(SDK) marks a read cub-scout makes through the ConfigHub SDK by default since v2.14.0: no cub process runs, and the JSON is what the named cub command prints. (runs cub) marks a read that still starts the cub CLI and fails, saying so, on a machine without it. CUB_SCOUT_CONFIGHUB_READER=cub sends every read through cub.
For the full reference (per-tool parameters, return shape, when-to-load semantics, deferred verbs not in the catalog), see references/mcp-tool-catalog.md.
docs/reference/commands.md § mcp, § context-packcub-scout/#377docs/reference/json-contracts.md § "MCP connected trust guidance"docs/howto/context-pack-v2.mdexamples/ai-integration/examples/mcp-gateway/examples/bot/context-pack is deterministic — same input, same bytes. Do not introduce non-determinism (random IDs, timestamps in non-capturedAt fields, map iteration order).bot is the separate in-cluster event-stream entrypoint.cub-scout mcp serve is the cub-scout-side MCP. cub may also expose an MCP surface; the two are separate, and an agent can register both.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (confighub/cub-scout) — no native marketplace selected
npx claudepluginhub p/confighub-cub-scout35 skills in this plugin
/ai-agent-readonly-contextUse when the user is WIRING CUB-SCOUT INTO AN AI AGENT (Claude / Codex / a custom LLM workflow) and needs the patterns for read-only context, MCP gateway tools, deterministic context snapshots, and the prompt-shape that makes cub-scout's output reliable for LLMs. Natural phrasing: "set up cub-scout as a Claude tool", "expose cub-scout to my agent over MCP", "give the LLM a deterministic snapshot of this cluster", "what cub-scout patterns work well for AI agents?", "MCP config for cub-scout in Claude Code", "best practices for wiring cub-scout into Codex / Cursor / Continue", "AI-ready cluster context", "prompt template for cub-scout output". Composes `mcp serve` + `context-pack` + `--presentation ai` + the structured JSON contracts. Do NOT load for: a specific verb invocation (load the corresponding scout-* skill), authoring an MCP server in general (this is about wiring CUB-SCOUT specifically), or any mutating workflow (cub-scout never mutates; the read-only triad is the whole point of this skill)./audit-fleet-conformanceUse when the user wants to verify CONFORMANCE ACROSS A FLEET — multiple namespaces, multiple clusters, or a defined View scope. Natural phrasing: "which clusters are conformant?", "audit fleet conformance against this View", "show me all outliers in prod fleet", "compare every service against its source-truth strategy", "scope-wide three-way check for drift", "fleet-level compliance audit", "which deployments drift across the cluster?". Composes `compare three-way --view` + `compare source-truth` + `fleet outliers` for multi-resource / multi-cluster checks. Requires connected mode for the View + ConfigHub surfaces. Do NOT load for: a single resource (use investigate-drift), a triage (use triage-unhealthy-workload), incident evidence for one event (use operator-incident-evidence), or anything mutating./confighub-source-truthUse when the user wants a STRATEGY-TYPED, PILOT-ACCEPTANCE-SHAPED VERDICT about whether ConfigHub / controller / runtime agree under a declared delivery strategy — the `compare source-truth` workflow with the explicit `--strategy <name>` requirement. Natural phrasing: "give me a source-truth verdict for deploy/api", "verify under git-argo strategy that ConfigHub matches the cluster", "run the source-truth contract for upstream Pilot acceptance", "compare source-truth confighub-oci-flux strategy across the namespace", "produce strategy-relative correctness evidence", "show me where the strategy declaration is being violated". Composes `compare source-truth --strategy <s>` + the source-truth evidence contract + (optionally) `receipt verify --strategy <s>` for a fingerprinted version. Requires CONNECTED MODE. Do NOT load for: a single-resource live drift question without a declared strategy (use investigate-drift), a triage (use triage-unhealthy-workload), or a fleet-wide audit that doesn't need strategy framing (use audit-fleet-conformance). cub-scout NEVER infers a strategy — this skill enforces that boundary./cub-scoutUse when working in the cub-scout repo or when answering capability-assistant questions ("can cub-scout do X?", "should I use cub-scout or kubectl here?", "how does cub-scout differ from cub?"). This is the umbrella router — it points you at the verb-grouped scenario skills under `skills/scout-*/` and the workflow / observer / reference skills planned for batches 2–5. For a specific verb-group task (observe / diagnose / compare / attribute / adopt existing config / govern / integrate / verify) load the corresponding `scout-*` skill directly./investigate-driftUse when the user wants to compare live and desired state and inspect available manager and source evidence. Natural phrasing: "why is this Deployment different from the git manifest?", "which recognized manager is recorded for this path?", "controller-drift or interactive-manager evidence?", "compare three-way + attribution for deploy/api". Composes `compare three-way` + `compare drift` + the attribution layer (`cause` / `managerHint` / `gitSource` / `bindingSource`). Do NOT promise who changed the value or which manager wrote last: path-level manager evidence is not time-ordered, and resource-level `explain` evidence is not field-specific. Do NOT load for: a triage where the workload won't start (use triage-unhealthy-workload), pure inventory (use scout-observe), generating a fingerprinted evidence artifact (use scout-verify and the no-manual-edits-since predicate), or any mutating fix (cub-scout never mutates)./migrate-from-kubectlUse when the user is MIGRATING from ad-hoc `kubectl apply` toward GitOps (Argo / Flux / ConfigHub) — and needs to find the manual edits, decide what to do with each (revert / port to git / accept as canonical), and plan the transition. Natural phrasing: "find all the manual edits in this cluster", "we have years of kubectl-apply, help us move to GitOps", "which resources have been hand-edited?", "audit drift caused by humans not controllers", "port my cluster state to git", "show me everything kubectl-* has touched". Composes attribution layer (`cause: manual-edit`) + `map orphans` (resources without a controller owner) + `scan` (risk classification) + `snapshot` / `import --git-path` preview once a repo skeleton exists. Read-only throughout — the migration itself is user-driven. Do NOT load for: real-time triage (use triage-unhealthy-workload), single-resource drift question (use investigate-drift), a fleet conformance audit (use audit-fleet-conformance), or any mutating action.Other plugins' skills for the same job