Knolo

io.github.HiveForensics-AI由 GitHub 账号 HiveForensics-AI 发布v0.1.0更新于 Oct 25, 2026

Verified, local-first retrieval over pinned Knolo Knowledge Images.

已验证STDIO仅桌面文件与存储知识与记忆

概览

AI 生成的概览

一个只读的本地 MCP 服务器,让助手在已固定的 Knolo 知识镜像中搜索、获取并校验内容。

可以做什么
在已固定的 Knolo 知识镜像中搜索并返回匹配结果,每次搜索在返回结果前写入查询回执(knolo_search)。从已挂载的镜像中获取指定内容(knolo_get)。按固定值、状态根和策略校验镜像(knolo_verify)。查看服务器与挂载状态(knolo_status)。
适用场景
适用于已在本地安装并固定 Knolo V5 知识镜像、希望助手在既定策略下查询并保留每次搜索审计记录的场景。它面向本地检索,而非通用网页或文档搜索。
运行要求
通过 npx 以本地 stdio 进程运行,需要 Node 20 或更高版本以及 @knolo/core ^6.0.0。需要配置 JSON 的绝对路径,通过 --config 参数或 KNOLO_MCP_CONFIG 环境变量传入。配置须包含 agentId、auditDir,以及带绝对路径、sha256、stateRoot、policyPath、agents 和 principal 的挂载项。启动前须安装并固定镜像;不匹配会以非零状态退出。
安装前请注意
服务器只读,但每次搜索都会向 auditDir 写入回执;若该目录不可写,搜索会以 AUDIT_UNAVAILABLE 失败且不返回结果。调用方身份取自配置中的 agentId,且必须列在挂载项的 agents 数组中;客户端上报的名称仅作为 sessionId 保存,不用于授权。更改固定值需重启进程,不支持热重载。README 说明 0.1.0 版本尚未发布到 npm 或 MCP Registry。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Knolo,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@knolo/mcp

@knolo/mcp is a read-only MCP server for pinned Knolo V5 Knowledge Images. It exposes the same four tools as @knolo/openclaw: knolo_search, knolo_get, knolo_verify, and knolo_status. Pins, policy checks, and query receipts come from @knolo/tools. When at least one mount includes a kar block, the server also exposes knolo_kar_evaluate, knolo_kar_verify, and knolo_cortex_verify.

The server speaks stdio only. It does not download images, open a runtime network connection, write or compile knowledge, or expose MCP resources or prompts. Install and pin each image before starting it. A hash, state-root, or policy-root mismatch exits non-zero before the MCP connection starts.

Caller identity is agentId in the config file, default mcp. That id must be listed in the mount's agents array. Tool arguments cannot set it. The MCP client's clientInfo.name is stored on the receipt as sessionId and is not used for authorization. One principal per mount is what policy evaluation sees.

Every search writes an openclaw-knolo-query-v1 receipt before it returns hits. An unwritable auditDir returns AUDIT_UNAVAILABLE and no hits. Restart the process to change pins. There is no hot reload.

@knolo/[email protected] is the in-tree server. This change does not publish it to npm or the MCP Registry. The registry name in server.json is io.github.HiveForensics-AI/knolo. Published @knolo/[email protected] remains the four-tool server.

Config

Paths are absolute. sha256 is 64 lowercase hex characters. stateRoot is sha256- plus 64 lowercase hex characters.

json
{  "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>",      "kar": {        "graphPath": "/opt/knolo/handbook.kar.json",        "graphSha256": "<64 hex>"      }    }  ]}

kar is optional. graphSha256 is the raw file SHA-256, 64 lowercase hex characters, without a sha256- prefix. The server hashes that file and binds it to the mount before it accepts a connection. A hash or binding mismatch exits before MCP starts. A call for a mount that has no kar block fails closed when the three tools are enabled by another mount.

knolo_kar_evaluate takes mountId, proposition, and an inline plan object of at most 65536 UTF-8 bytes. SATISFIED means evidence requirements were met. It does not mean a claim is proven. UNSATISFIED_EVIDENCE_REQUIREMENTS is a completed evaluation. The plan is parsed by the KAR plan parser. Domain Pack template names are not accepted.

knolo_kar_verify takes the same mount, proposition, and plan, plus exactly one of result or dossier. knolo_cortex_verify takes mountId, an answer trace, and an optional question. It uses the pinned graph when the trace references KAR. These tools do not call a model and do not run askCortex.

Query receipts stay openclaw-knolo-query-v1. KAR and Cortex tools write knolo-mcp-evidence-receipt-v1 in auditDir before they return a result. An unwritable audit directory returns AUDIT_UNAVAILABLE and no result.

Start it with knolo-mcp --config /absolute/knolo-mcp.json or KNOLO_MCP_CONFIG. Logs go to stderr. Stdout is JSON-RPC only.

Clients

Claude Desktop, Claude Code, and Cursor:

json
{  "mcpServers": {    "knolo": {      "command": "npx",      "args": ["-y", "@knolo/mcp", "--config", "/absolute/knolo-mcp.json"]    }  }}

Claude Code CLI:

sh
claude mcp add knolo -- npx -y @knolo/mcp --config /absolute/knolo-mcp.json

VS Code (.vscode/mcp.json):

json
{  "servers": {    "knolo": {      "type": "stdio",      "command": "npx",      "args": [        "-y",        "@knolo/mcp",        "--config",        "${workspaceFolder}/knolo-mcp.json"      ]    }  }}

The package requires Node 20 or newer, @knolo/core ^6.2.0, and @knolo/tools ^0.2.0. Coverage, composition, and authoring stay outside this server. Verification checks integrity. It does not decide that a claim or an answer is true.

来源:packages/mcp/README.md,提交 1149f56

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Oct 13, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分