← Blog

· Hive AI

Knolo in Codex: Install the MCP Plugin from the Repository Marketplace

Add the Knolo repo as a Codex plugin marketplace, install codex-knolo, and run the read-only @knolo/mcp@0.2.4 server over stdio against a pinned Knowledge Image.

Knolo is the open-source, local-first Knowledge Image runtime and format from Hive AI: Apache-2.0, published as Knolo's @knolo/core on npm (currently 6.2.3), with the source in the Knolo Core GitHub repo. On 22 November 2026, pull request #214 merged a Codex plugin into that repository. Codex can now add the Knolo repo as a plugin marketplace and install codex-knolo, which starts the read-only Knolo MCP server over stdio against a Knowledge Image you have already pinned. This post walks through what the plugin contains and how to set it up.

What the Knolo Codex plugin contains

The plugin is three small files under plugins/codex-knolo in the Knolo repo, plus a marketplace file at .agents/plugins/marketplace.json that lists it.

File What it does
.agents/plugins/marketplace.json Names the marketplace knolo (display name "Knolo") and lists codex-knolo with installation AVAILABLE, authentication ON_INSTALL, category Developer Tools
plugins/codex-knolo/plugin.json Plugin codex-knolo, version 0.1.0: "Read-only search over a pinned local Knowledge Image. The host owns the model."
plugins/codex-knolo/.mcp.json Starts npx -y @knolo/mcp@0.2.4 --config ${KNOLO_MCP_CONFIG}
plugins/codex-knolo/skills/knolo/SKILL.md Tells Codex to use knolo_search, knolo_get, knolo_verify and knolo_status, and to cite imageId, objectId and stateRoot

Two details matter. The MCP package is pinned to an exact version, @knolo/mcp@0.2.4, which is the current npm latest; the plugin does not float to whatever ships next. And the plugin carries no model, no key and no network endpoint. Codex owns the model; Knolo only answers from the image you mounted.

Step 1: pin a Knolo Knowledge Image and write the config

The Knolo MCP server never downloads or builds knowledge. You install and pin each image first, then describe it in a config file. Paths are absolute, sha256 is 64 lowercase hex characters, and stateRoot is sha256- plus 64 lowercase hex characters. A minimal config from the @knolo/mcp README looks like this:

{
  "agentId": "mcp",
  "auditDir": "/var/lib/knolo/receipts",
  "mounts": [
    {
      "id": "handbook",
      "path": "/opt/knolo/handbook.knolo",
      "sha256": "<64 hex>",
      "stateRoot": "sha256-<64 hex>",
      "policyPath": "/opt/knolo/handbook.policy.json",
      "agents": ["mcp"],
      "principal": "<policy principal>"
    }
  ]
}

Caller identity is agentId in this file, and it must appear in the mount's agents array. Tool arguments cannot change the caller, the image or the policy. If you have not built an image yet, the Knolo CLI docs and Knolo verification guide cover packing and checking one.

Step 2: add the Knolo marketplace to Codex

Point the KNOLO_MCP_CONFIG environment variable at the absolute path of that config, then add the repository as a marketplace, as the README documents:

export KNOLO_MCP_CONFIG=/absolute/path/to/knolo-mcp.json
codex plugin marketplace add HiveForensics-AI/knolo-core

Codex reads .agents/plugins/marketplace.json from the repo root, so the Knolo marketplace shows up with codex-knolo in it. Install the plugin from Codex's plugin directory. OpenAI's plugin packaging guide describes the marketplace commands, including --ref if you want to pin the marketplace to a specific Git ref.

If you would rather skip plugins entirely, Codex can register the same server directly. Keep the version pin:

codex mcp add knolo -- npx -y @knolo/mcp@0.2.4 --config /absolute/path/to/knolo-mcp.json

How the Knolo MCP server behaves under Codex

  • Fails closed. A missing KNOLO_MCP_CONFIG fails closed. A hash, state-root or policy-root mismatch exits non-zero before the MCP connection starts, so Codex never sees an unpinned image.
  • No port. The server speaks stdio only. It does not listen on a port, open a runtime network connection, write knowledge, or expose MCP resources or prompts.
  • Receipts first. Every knolo_search writes an openclaw-knolo-query-v1 receipt before it returns hits. If the audit directory is not writable, the call returns AUDIT_UNAVAILABLE and no hits. See Knolo query receipts for what a receipt records.
  • Pins are rechecked. Before each tool call the server stats the config and every mounted image. A changed file that still matches its pin is reloaded; a mismatch returns IMAGE_INVALID and does not serve the old image.
  • Search is literal. knolo_search lowercases the query, treats a quoted phrase as one contiguous phrase, supports unquoted OR, and drops stopwords and terms under three characters.

The bundled skill is blunt about what a result means: a receipt is an integrity check. It does not mean a claim is proven. That is the right default for a coding agent reading your team's knowledge.

Where Knolo is listed, and where it is not yet

The Codex install path is the repository marketplace. PR #214 states that an entry in OpenAI's official plugin catalog is a separate pull request that comes after this change, so do not expect codex-knolo in that catalog yet. Separately, the official MCP Registry now serves io.github.HiveForensics-AI/knolo at 0.2.4, marked latest, pointing at @knolo/mcp@0.2.4 (PR #213). Neither change published a new npm package, tag or GitHub Release.

Next steps with Knolo

knolo · codex · mcp · how-to · knowledge-image