原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

kcp-harness — KCP compliance proxy

作者:Cantara版本 0.4.1i★ 0i在你的电脑上运行
注册名称no.cantara/kcp-harness

安装方法

概览

作者提供的说明(英文原文)

MCP compliance proxy between agent and tools: deterministic governance, fail-closed, audit trail.

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 法律与政府数据

安装

选择你使用的 AI 应用,然后复制设置。

通过 2/2 项检查 · 在你的电脑上运行

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude,但需要先准备

需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用

  1. 安装 Node.js

    只需一次,所有需要 Node.js 的服务器都能用

    打开 Node.js 下载页 ↗

  2. 打开电脑版 Claude 应用的设置文件

    SettingsDeveloperEdit Config

  3. 粘贴这些设置并保存文件

    {
      "mcpServers": {
        "kcp-harness": {
          "command": "npx",
          "args": [
            "-y",
            "kcp-harness",
            "serve"
          ]
        }
      }
    }
  4. 退出 Claude 再重新打开

  5. 试一试

    用 kcp-harness — KCP compliance proxy 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 kcp-harness — KCP compliance proxy,或回答中出现 kcp-harness — KCP compliance proxy 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 kcp-harness — KCP compliance proxy

kcp-harness — KCP compliance proxy 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器

你可以改用这些方式

A · 使用能连接 kcp-harness — KCP compliance proxy 的应用

  • 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
  • 需要先在电脑上安装 Node.js(只需一次)
  • 需要先在电脑上安装 Node.js(只需一次)
  • 需要先在电脑上安装 Node.js(只需一次)

B · 法律与政府数据 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code,但需要先准备

需要先在电脑上安装 Node.js(只需一次)

  1. 安装 Node.js

    只需一次,所有需要 Node.js 的服务器都能用

    打开 Node.js 下载页 ↗

  2. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  3. 粘贴这条命令并按 Enter

    claude mcp add kcp-harness -- npx -y kcp-harness serve
  4. 在 Claude Code 中输入 /mcp

    应能看到 kcp-harness — KCP compliance proxy 在列表中并显示已连接

  5. 试一试

    用 kcp-harness — KCP compliance proxy 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 kcp-harness — KCP compliance proxy,或回答中出现 kcp-harness — KCP compliance proxy 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor,但需要先准备

需要先在电脑上安装 Node.js(只需一次)

  1. 安装 Node.js

    只需一次,所有需要 Node.js 的服务器都能用

    打开 Node.js 下载页 ↗

  2. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  3. 在 Cursor 中以 Agent 模式打开 AI 聊天

  4. 试一试

    用 kcp-harness — KCP compliance proxy 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 kcp-harness — KCP compliance proxy,或回答中出现 kcp-harness — KCP compliance proxy 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code,但需要先准备

需要先在电脑上安装 Node.js(只需一次)

  1. 安装 Node.js

    只需一次,所有需要 Node.js 的服务器都能用

    打开 Node.js 下载页 ↗

  2. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  3. 在 VS Code 中以 Agent 模式打开 AI 聊天

  4. 试一试

    用 kcp-harness — KCP compliance proxy 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 kcp-harness — KCP compliance proxy,或回答中出现 kcp-harness — KCP compliance proxy 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 kcp-harness — KCP compliance proxy 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

安装在电脑上

Claude Code

claude mcp add kcp-harness -- npx -y kcp-harness serve

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "kcp-harness": {
      "command": "npx",
      "args": [
        "-y",
        "kcp-harness",
        "serve"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "kcp-harness": {
      "command": "npx",
      "args": [
        "-y",
        "kcp-harness",
        "serve"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "kcp-harness": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "kcp-harness",
        "serve"
      ]
    }
  }
}

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
217/周
已验证域名
✓ cantara.no
许可证i
未注明许可证
连接方式
在你的电脑上运行
最新版本i
0.4.1
发布到注册中心i
2026年7月14日
代码最后更新i
2026年10月7日
作者
Cantara
软件包
npm: kcp-harness
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月12日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过域名 cantara.no 验证(注册中心会核实域名所有权)

  • ✓ 通过

    仍在维护

    代码最后更新于35天前

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

使用 Google 登录后发帖

用户评价

还没有评价

用 Google 登录后写评价

与“法律与政府数据”中的其他服务器比较i

  • 星标数多于此分类中其他 1812 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1812 个服务器的 17% 更新
  • 基础检查结果等于或优于此分类中其他 1812 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

kcp-harness — KCP compliance proxy 安全吗?

它在 2 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于35天前,最新版本(0.4.1)于4个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Korean Law MCP, Global law, Tw Legal Rag

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Korean Law MCP

Korean law: statutes, precedents, ordinances, treaties and citation verification (법제처 API).

作者:chrisryugj广泛使用★ 28598天前更新

在云端运行

Global law

The law of nearly every country on earth, any date: read it, see what changed it, check citations.

作者:lexifina正在增长★ 1936昨天更新

在云端运行✓ lexifina.com

Tw Legal Rag

Taiwan law MCP server: 22M court judgments, statutes, agency rulings, with citation checks

作者:aa0101181514正在增长★ 346昨天更新

在云端运行

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

kcp-harness

🧾 See it run — interactive KCP playground · read the reveal

Deterministic knowledge governance for any AI agent.

*Your agent can read every file in your project. Can it prove why it read what it read?*

KCP Harness is an MCP compliance proxy that sits between an AI coding agent and its tools. It intercepts knowledge-related calls, routes them through the kcp-agent deterministic planner (14-gate cascade, no LLM), and produces compliance artifacts — decision traces, audit logs, budget ledgers — as a side effect of normal agent operation.

The agent can't bypass governance because it only talks to the proxy's MCP interface. The proxy decides what knowledge is accessible, tracks spend, and logs every decision. Fail-closed: if the harness can't verify a request, the agent gets nothing.

Agent (Claude Code / Cursor / Copilot / Windsurf / Cline / Crush / OpenClaw / ...)

│ │ MCP tool call v ┌─────────────────────────────────────────────────────────┐ │ kcp-harness │ │ │ │ classify → govern (14 gates) → execute → audit │ │ │ │ Side outputs: │ │ · Decision traces (per-request, deterministic) │ │ · Audit log (append-only JSONL) │ │ · Budget ledger (itemized, ceiling-enforced) │ │ · Temporal drift (plan validity over time) │ │ · Approval tickets (named-human sign-off, durable) │ │ · Confidence verdicts (post-synthesis gate) │ └─────────────────────────────────────────────────────────┘ │ v Knowledge manifests (knowledge.yaml)

[Documentation →](https://cantara.github.io/kcp-harness/)

Why

Enterprises need agents that are *defensible* — auditable, reproducible, budget-controlled, temporally pinned. Today's agents can't prove why they read what they read. The harness adds a compliance layer without replacing the agent.

What you keepWhat the harness adds
Your agent (Claude Code, Cursor, Copilot, ...)Deterministic knowledge selection
Your workflow (coding, reviewing, shipping)Decision traces (14 gates per unit)
Your tools (MCP servers, shell, browser)Budget enforcement (ceiling, per-currency)
Temporal governance (drift detection)
Append-only audit log
Replay / cross-examination
Human-approval gates (named reviewer + policy citation)
Confidence gating (post-synthesis, route-to-human)

You sell the compliance layer. The agents are pluggable.

Install

npm install -g kcp-harness

Or use without installing:

npx kcp-harness --help
Native executables

Pre-built binaries (no Node/Deno required) for Linux x64/arm64, macOS x64/arm64, and Windows x64 — grab them from a release. To build one yourself:

npm ci && npm run build

deno compile --allow-read --allow-env --allow-net --allow-run \ --node-modules-dir=auto --output kcp-harness dist/cli.js

Quick start

1. Initialize
kcp-harness init          # creates harness.yaml
2. Generate agent integration
kcp-harness integrate claude-code    # or: pi, cursor, copilot, windsurf, cline, continue, crush, openclaw
3. Start coding

Your agent now routes knowledge access through the harness. Every decision is logged.

Supported agents

AgentConfigIntegration
Claude Code.mcp.json + PreToolUse hookskcp-harness integrate claude-code
Cursor.cursor/mcp.json + .mdc ruleskcp-harness integrate cursor
GitHub Copilot.vscode/mcp.json (uses "servers" key)kcp-harness integrate copilot
Windsurfglobal config + .windsurfruleskcp-harness integrate windsurf
ClineMCP settings + .clineruleskcp-harness integrate cline
Continue.continue/mcpServers/*.yamlkcp-harness integrate continue
Crushcrush.json + PrepareStepkcp-harness integrate crush
OpenClawopenclaw.json + plugin hookskcp-harness integrate openclaw
Pi.pi/mcp.json + project skillskcp-harness integrate pi

Each agent has its own MCP config format, rules file, and quirks. The integrate command handles them all — one governance layer, any agent.

How it works

Every tool call flows through a five-stage pipeline:

1. RECEIVE      MCP JSON-RPC request from agent
  1. CLASSIFY Knowledge-navigation or pass-through?
  2. GOVERN 14-gate cascade (audience → temporal → budget → ...)
  3. EXECUTE Call downstream tool / return content
  4. AUDIT Log decision to append-only audit log
Classifier

The classifier examines each tool call and determines whether it targets governed knowledge. Read("docs/api.md") where docs/ is governed? Route through the planner. Read("package.json") where package.json isn't governed? Pass through. KCP tools (kcp_plan, kcp_load) are always governed.

Governor

Two automated modes, plus a human gate that outranks both:

  • Plan-first (fast path) — the agent calls kcp_plan first. The harness caches the approved plan. Subsequent reads are checked against the cached plan — no re-planning.
  • Auto-plan (fallback) — the agent reads a governed path without planning. The harness runs the planner automatically. Slower, but governance is enforced even for agents that don't know about kcp_plan.
  • Human approval — calls matching a governance.approvals rule are held for a named reviewer (pending), no matter what the automated paths would decide. Tickets survive restarts and resolve via the kcp-harness approvals CLI (or any custom ApprovalProvider channel). Resolutions require a named reviewer *and* a policy citation.
The 14-gate cascade

Every knowledge unit is evaluated through 14 deterministic gates, in order:

audience → not_for → temporal → deprecated → supersession → relevance →

skill_eligibility → attestation → payment → access → strict → max_units → money_budget → context_budget

A unit must pass all gates. The gate that blocks it is recorded in the decision trace. Same inputs → same plan. No model involved.

For the skill_eligibility gate's subject matter — governed kind: skill units — the authoring conventions, linter, and conformance vectors live in Cantara/kcp-skill.

MCP tools

Once connected, agents can use these governance tools:

ToolDescription
kcp_planDeterministic load plan — which units, in what order, which skipped and why
kcp_loadPlan + load eligible unit content
kcp_traceFull 14-gate decision trace
kcp_validateLint a knowledge.yaml
harness_statusCurrent governance state
harness_sessionApproved plans + known units for this session
harness_budgetItemized spend tracking
harness_temporal_checkPlan drift detection
harness_approvalsHuman-approval tickets (pending / approved / dismissed / expired)
harness_assessConfidence-gate a synthesized answer before acting on it

Compliance artifacts

Audit log

Append-only JSONL. Every decision — governed or pass-through — is logged with sequence number, timestamp, tool, targets, and governance decision:

cat .kcp-harness/audit.jsonl | jq 'select(.governed == true)'
Budget ledger

Append-only itemized spend tracking. Per-currency running totals. Ceiling enforcement — a load that would exceed the budget is rejected atomically (no partial loads).

Temporal governance

Plans are registered with a temporal watcher. On subsequent calls, the watcher re-evaluates against the current time. If units have drifted (expired, newly valid), the harness emits a drift event. Long-running sessions stay honest.

Approval tickets

Calls matching an approval rule open a durable ticket (pending_review → approved | dismissed | expired, plus used for a consumed one-shot grant). The ticket store survives restarts — sessions are ephemeral, human review is not. Every resolution records *who* approved, *when*, and *which policy* it satisfies — evidence generated at approval time, never reconstructed from logs.

An approval is a bounded grant, never a standing permission. It covers the session that opened the ticket, the exact tool and target, and the call's arguments digest — and it lapses. Each rule sets grant: once | session | (default session), always capped by governance.approvals.grant_max (default 24h). A call outside a valid grant is denied, audited as grant_denied (expired, wrong_session, used, ...) and opens a *new* ticket. A standing permission is a policy rule, not a click. A grant's window is measured from the store's own clock, not the reviewer-supplied reviewedAt; the first valid resolution of a ticket wins (a dismissed ticket cannot be re-approved by an appended line); with approvals.require_signed_resolutions signatures are verified on every read, not only in resolve(); and approvals.require_args_binding refuses grants from tickets not bound to the call's arguments. What the ticket store does *not* protect — write access to its directory — is stated in the Ticket store trust model. See Governance Model.

Confidence verdicts

harness_assess runs kcp-agent's post-synthesis assess() over a synthesized answer before it may be acted on. The planner gates *loading*, grounding gates *asserting*, this gates *acting*. Below-threshold verdicts on routed configs open an approval ticket with the full verdict embedded as evidence.

Configuration

# harness.yaml

version: "1.0"

governance: domains:

  • manifest: "./knowledge.yaml" paths: ["docs/", "src/"]

policy: fail_closed: true audit_all: true max_units: 5 budget: amount: 1.00 currency: USDC

confidence: # optional post-synthesis gate (harness_assess) threshold: 0.7 severity: critical route_to_role: account-owner

approvals: # optional human-approval gates provider: file rules:

  • match: { tools: [Write, Edit], paths: [records/] } required_role: account-owner expires_after: 72h policy_ref: POL-7.2 grant: session # once | session | 15m / 4h / 1d (default: session) grant_max: 24h # hard cap on any approval's validity (default 24h)

require_signed_resolutions: true # + trusted_keys: verify signatures on every read (recommended)

require_args_binding: true # refuse grants not bound to the call's arguments (recommended)

audit: path: ".kcp-harness/audit.jsonl"

CLI

kcp-harness serve  [--config harness.yaml]   Start the MCP proxy

kcp-harness init Create a harness.yaml template kcp-harness check [--config harness.yaml] Validate configuration kcp-harness integrate [options] Generate agent integration files kcp-harness integrate --list List supported agents kcp-harness export [options] Export compliance evidence (SOC 2 / ISO 27001) kcp-harness dashboard [options] Launch the live compliance dashboard kcp-harness approvals list [--state s] List human-approval tickets kcp-harness approvals approve --reviewer --policy-ref kcp-harness approvals dismiss --reviewer -

只显示了开头部分;其余内容请在仓库中阅读