The knowledge layer
The MCP tools are the hands: they operate components, the platform API and the cluster. The knowledge layer is what they read — what can exist, what each relationship really generates, and how working stacks are configured.
Why it is separate
Knowledge embedded in a tool is knowledge you can only change by rebuilding and redeploying that tool. Stacktic keeps it outside: the MCP server loads the knowledge layer at startup and re-pulls it on demand, so corrections and new patterns reach every connected stack without a rebuild, a redeploy or a restart.
A model that answers from a stale catalog is worse than a model that says it does not know. This is the mechanism that prevents it.
What it contains
| Layer | What the model gets from it |
|---|---|
| Catalog knowledge | Every component type: its attributes, what its generation logic does, which environment variables it produces, which files it writes |
| Link semantics | For each link type: its kind, direction, which side plays which role, and how critical it is |
| Component semantics | The why digest — a short, human-written explanation of what a component and each of its links is for, used when the model is choosing between options |
| Patterns | Attribute values extracted from real working stacks, so a recommendation is grounded in something that runs |
| Curated patterns | Hand-written why / gotcha / suggestion notes for composite patterns that span several components |
| Lifecycle recipes | Per-component upgrade and migration procedures, with preflight checks and ordering |
| Policy schema and carve-outs | The authoritative admission-policy attribute schema, and which namespaces a given policy must exclude for a given topology |
| Playbooks | Deep guides for the awkward parts: the identity model, where application code should live, media connectivity, secret-store token rotation, connector operability |
What this changes in practice
- The model invents a component type that sounds plausible.
- It picks a version that is not a catalog option, and generation rejects it.
- It proposes an attribute value copied from a blog post.
- It cannot tell you what a link will actually produce, so it describes it in general terms.
- Every option offered came from a tool result.
- Versions come from the catalog, and the current default is used unless you say otherwise.
- Values come from stacks that are running.
- “What does this link generate” is answered with the files and variables, not a paraphrase.
Version currency
Catalog entries are version-pinned, and each component has a current default. Older entries are kept so that existing stacks still generate, but they carry a reduced attribute and link surface.
The rule the model follows: use the current default, never offer legacy tags as a menu, and when a version is under discussion, also check the upstream project's latest release. If the catalog lags upstream it says so explicitly and offers both paths — proceed with the newest catalog option, or have the platform team add the newer version first. It never silently picks something outdated, and it never invents a version string.
Keeping it fresh
knowledge(action='refresh') re-pulls the knowledge layer into a running MCP server.
Several of the files hot-reload on change without even that. Nothing about updating
platform knowledge requires touching your stack.
Access to the repository
The knowledge repository is private and licensed. Its coordinates come with the MCP
license and are set as three lines in the MCP component's configmap attribute — one
KEY=VALUE per line, appended to the pod's environment:
MCP_KNOWLEDGE_REPO_URL=<repository URL from your license>
MCP_KNOWLEDGE_REPO_TOKEN=<token issued with your license>
MCP_KNOWLEDGE_REPO_BRANCH=main
Without it the server cannot design, explain or guide, and it says so instead of
improvising. server_info, /readyz, workflow and every knowledge answer report the
state of the repository, the reason when it fails, and the exact fix:
| Reason | What it means |
|---|---|
not_configured · placeholder_url | The URL is missing, or still the placeholder |
auth_failed | The token is missing, expired or rotated |
not_found_or_no_access | The URL is wrong, or the token cannot see the repository |
network | The server cannot reach the git host — check egress policy, DNS and proxy |
branch_missing | The branch does not exist |
incomplete_repo | The repository was reached but is not a knowledge repository |
stale | The last pull failed; the server is answering from its previous copy |
A failed sync is retried on the next call, so a fixed token or a restored network is
picked up without restarting the pod. Changing the configmap attribute itself needs a
build, an apply, and a pod restart.
Mirror the knowledge repository inside your network and point MCP_KNOWLEDGE_REPO_URL
at the mirror.
This page is about the platform knowledge the MCP server reads. The why of your own design — the rationale written on each component and link — is a different thing, kept in your graph: see Knowledge.