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

Two-Key

作者:Insomniac-VibeLabs版本 0.8.0i★ 2i在你的电脑上运行
注册名称io.github.Insomniac-VibeLabs/two-key

安装方法

What it does

Authorization proxy for another MCP server: a rule check and AI judges approve each tool call

  • Connects 在你的电脑上运行
  • Account or key No key needed
  • Category 其他

安装

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

通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月13日

第一步:你用哪个 AI?

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

可连接 Claude,但需要先准备

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

  1. 安装 Python (uv)

    只需一次,所有需要 Python (uv) 的服务器都能用

    打开 Python (uv) 下载页 ↗

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

    SettingsDeveloperEdit Config

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

    {
      "mcpServers": {
        "two-key": {
          "command": "uvx",
          "args": [
            "two-key",
            "mcp-proxy",
            "--config"
          ]
        }
      }
    }
  4. 退出 Claude 再重新打开

  5. 试一试

    用 Two-Key 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 Two-Key,或回答中出现 Two-Key 的工具名称,就表示连接成功

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

ChatGPT 暂时无法连接 Two-Key

Two-Key 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器

你可以改用这些方式

A · 使用能连接 Two-Key 的应用

  • 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
  • 需要先在电脑上安装 Python (uv)(只需一次)
  • 需要先在电脑上安装 Python (uv)(只需一次) · 没有一键按钮,需要粘贴设置并自行填写
  • 需要先在电脑上安装 Python (uv)(只需一次) · 没有一键按钮,需要粘贴设置并自行填写

B · 其他 类中能连接 ChatGPT 的其他服务器

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

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

需要先在电脑上安装 Python (uv)(只需一次)

  1. 安装 Python (uv)

    只需一次,所有需要 Python (uv) 的服务器都能用

    打开 Python (uv) 下载页 ↗

  2. 打开终端

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

  3. 粘贴这条命令并按 Enter

    claude mcp add --scope user two-key -- uvx two-key mcp-proxy --config
  4. 在 Claude Code 中输入 /mcp

    应能看到 Two-Key 在列表中并显示已连接

  5. 试一试

    用 Two-Key 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 Two-Key,或回答中出现 Two-Key 的工具名称,就表示连接成功

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

可连接 Cursor,但需要先准备

需要先在电脑上安装 Python (uv)(只需一次) · 没有一键按钮,需要粘贴设置并自行填写

  1. 安装 Python (uv)

    只需一次,所有需要 Python (uv) 的服务器都能用

    打开 Python (uv) 下载页 ↗

  2. 打开 Cursor 的 MCP 设置文件

    ~/.cursor/mcp.json

    粘贴这些设置,填写空着的值并保存

    {
      "mcpServers": {
        "two-key": {
          "command": "uvx",
          "args": [
            "two-key",
            "mcp-proxy",
            "--config"
          ]
        }
      }
    }
  3. 在 Cursor 中以 Agent 模式打开 AI 聊天

  4. 试一试

    用 Two-Key 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 Two-Key,或回答中出现 Two-Key 的工具名称,就表示连接成功

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

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

需要先在电脑上安装 Python (uv)(只需一次) · 没有一键按钮,需要粘贴设置并自行填写

  1. 安装 Python (uv)

    只需一次,所有需要 Python (uv) 的服务器都能用

    打开 Python (uv) 下载页 ↗

  2. 打开 VS Code 的 MCP 设置文件

    MCP: Open User Configuration

    粘贴这些设置,填写空着的值并保存

    {
      "servers": {
        "two-key": {
          "type": "stdio",
          "command": "uvx",
          "args": [
            "two-key",
            "mcp-proxy",
            "--config"
          ]
        }
      }
    }
  3. 在 VS Code 中以 Agent 模式打开 AI 聊天

  4. 试一试

    用 Two-Key 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 Two-Key,或回答中出现 Two-Key 的工具名称,就表示连接成功

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

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

查看所有支持 MCP 的应用 →

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

卡住了?问问正在用 Two-Key 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

安装在电脑上

Claude Code

claude mcp add --scope user two-key -- uvx two-key mcp-proxy --config

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "two-key": {
      "command": "uvx",
      "args": [
        "two-key",
        "mcp-proxy",
        "--config"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "two-key": {
      "command": "uvx",
      "args": [
        "two-key",
        "mcp-proxy",
        "--config"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "two-key": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "two-key",
        "mcp-proxy",
        "--config"
      ]
    }
  }
}

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

一览

每周下载量i
177/周
许可证i
Apache-2.0
连接方式
在你的电脑上运行
最新版本i
0.8.0
分类i
其他
发布到注册中心i
2026年10月29日
代码最后更新i
2026年11月12日
作者
Insomniac-VibeLabs
软件包
pypi: two-key
注册状态
活跃

哪些应用可以使用它

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

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

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

全部应用及其优缺点 →

它能做什么

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

基础检查i

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

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 Insomniac-VibeLabs 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于前天

  • ✓ 通过

    有许可证

    使用 Apache-2.0

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

讨论

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

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

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

使用 Google 登录后发帖

用户评价

还没有评价

用 Google 登录后写评价

与“其他”中的其他服务器比较i

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

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

常见问题

Two-Key 安全吗?

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

它需要哪些密钥或代码?

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

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

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

它还在维护吗?

GitHub 仓库最后更新于前天,最新版本(0.8.0)于16天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:World Monitor, Claude Flow, Windmill

同类别的其他选择

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

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

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 97 tools.

作者:koala73广泛使用★ 9.1万昨天更新

在云端运行✓ 服务方 · worldmonitor.app

Claude Flow

AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.

作者:ruvnet广泛使用↓ 1.4万/周★ 8.2万14个月前更新

在你的电脑上运行

Windmill

Run Windmill scripts and flows and manage jobs, schedules, resources and variables.

作者:windmill-labs广泛使用★ 1.9万前天更新

在云端运行

作者的 README

打开 README

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

Two-Key

Two independent keys must turn before an AI agent can act. No human needed.

AI agent authorization and MCP gateway with dual-path authorization. Deterministic bytecode policy combined with AI judge approval, single-use capability tokens, and an encrypted ledger.

🎯 The Problem

AI agents can be given permission to use a tool without being given authority to perform every consequential action that tool can perform.

Traditional tool permissions answer:

"Can this agent call this tool?"

Two-Key asks a different question:

"Is this specific action authorized to execute?"

Two-Key is an authorization layer for AI agents that use tools. Before a consequential tool call executes, Two-Key requires independent authorization through a deterministic policy path and an independent judge path:

  • The policy key (Path A). The rules you sign compile to bytecode. A small deterministic VM checks every call against fields read from the call's own arguments: the tool, the amount, the counterparty, the data class, and fields you define. It reads no prose, so no prompt can talk it out of a rule.
  • The judgment key (Path B). One or more AI judges, each with its own credential, review the call against your written constitution. Two-Key refuses to start with a judge that holds the agent's own credential.

Only when both keys turn does Two-Key issue a single-use token, bound to the exact arguments, the signed constitution, and the ledger state. The gateway runs the tool only with that token, and every decision, allowed or denied, is written to an encrypted, hash-chained ledger with a signed head.

What you get:

  • Works with the agent you have. Grok, ChatGPT, Claude, Gemini, or a local model (i.e. Ollama) proposes the call as data; Two-Key decides.
  • Judges you choose. xAI, OpenAI, Anthropic, Gemini, or a local model. One judge is enough to start; the high_assurance profile asks for judges from two makers and a yes from a local one.
  • In front of any MCP server (0.5.0). two-key mcp-proxy shows the agent only the tools you signed and runs every call through both keys.
  • Facts from your systems, not from the agent (0.5.0). A field such as "this invoice matches its purchase order" comes from your own lookup, and is looked up again just before the tool runs.
  • An audit trail you can check. AES-256-GCM at rest, a hash chain, a head signed by the principal and a witness key, and two-key audit.
  • A copy in your SIEM (0.7.0). Every decision can go to syslog or an HTTPS webhook as it is written, in Two-Key's own schema, ECS, or OCSF, with reason codes and digests but no argument values. A collector that is down never blocks a decision.
  • Keys you can recover. Passphrase backup of every key, in three bundles.
  • Small on purpose. Python 3.10 to 3.14, one required dependency (cryptography), Apache-2.0.

Status: beta. 0.9.0 is the current release, the last beta before 1.0: every signature is hybrid Ed25519 + ML-DSA-65 (quantum-resistant), a 0.8.0 deployment's keys are upgraded once at the first start, a tool behind the proxy can check its own calls (the tool check), a tool error spends its token, and two-key setup --window sets up in a window. 0.8.0 added a summary of recent decisions for the judges, each judge's ballot in the ledger, one proxy per agent, a read-only ledger audit window (two-key ledger-view) and a constitution editor. 0.7.3 added two-key setup and two-key config set, get, undo and check for setting up and changing a deployment, a signed serial so a ledger never goes back to older rules, and start-up checks for the upstream server's files behind a launcher. 0.7.0 added the SIEM export, a start-up check that refuses to run when the monitored agent is Two-Key's own account, and a count of the tokens the gateway refuses. Maintainer-reviewed and tested with live LLM agents and judges. Read Known limits and docs/FIT.md before you rely on it.

Contents

  • Quick start
  • Put Two-Key in front of an MCP server
  • Documentation
  • Components
  • Dual-path authorization
  • Architecture
  • What this repo leaves out
  • Known limits
  • Roadmap
  • Install and versions
  • Layout
  • History and license

Quick start

Install 0.9.0 from PyPI (docs/PYPI.md):

pip install "two-key[yaml]==0.9.0"

Tag v0.9.0 on main is the same code.

Or run the offline demo from a clone. It uses test-double judges, so it needs no API keys:

python3 -m venv .venv

. .venv/bin/activate pip install -e ".[yaml]" python -m two_key demo python -m two_key authorize --help

For a ten-minute walkthrough from install to an allowed and a refused call with a local judge, on the command line or in the setup and ledger windows, see docs/QUICKSTART.md.

Real judges are configured in examples/judges.yaml. The operator guide is docs/HOWTO.md. Before a real agent runs, close every way around Two-Key: docs/CONNECTING.md.

Put Two-Key in front of an MCP server

New in 0.5.0 (#2):

pip install "two-key[mcp]==0.9.0"

An MCP client (a desktop assistant, an IDE, an agent framework) normally starts an MCP server and calls its tools directly. With Two-Key, the client starts two-key mcp-proxy instead. The proxy starts the real server itself, shows the agent only the tools you signed, and runs every call through both keys before the server sees it. Facts such as a purchase-order match come from your own hook, never from the agent. A refused call comes back to the agent as a tool error with a reason code.

flowchart TD

host["Agent host MCP client"] -- "tools/list and tools/call, stdio" --> tk subgraph proxy["two-key mcp-proxy, its own OS user"] hooks["Fact hooks your code"] -- "facts" --> tk["Two-Key checks policy, asks judges"] tk -- "token" --> gw["Gateway same process"] end tk -. "normalized record" .-> judges["Judges"] gw -- "projected args, stdio" --> up["Upstream MCP server child process, third OS user"] up --> sor["System of record"] hooks -. "look facts up" .-> sor

two-key setup writes a first deployment; two-key config set, get, and undo change one setting at a time, checked and recorded in the ledger, and config key-passphrase encrypts the principal key (SETUP). two-key config check --config proxy.yaml says whether the proxy would start, and config show prints the settings it resolves to; both are read-only (HOWTO "Look at a config without starting the proxy"). two-key mcp-draft-specs drafts the tool specs from the server's own schemas for you to review and sign. The walkthrough, with a worked example, is HOWTO "Put Two-Key in front of an MCP server". Run the proxy and the upstream server as separate OS users, so neither the agent nor the server can reach the proxy's keys (HOWTO "Key custody"). The proxy speaks stdio only and does not listen on the network; an agent on another machine starts it over SSH with a forced command (CONNECTING), a route that still needs live testing. From 0.7.0 the proxy refuses to start when the account that started it is Two-Key's own, is root, or can change Two-Key's files (on_agent_access).

Documentation

ReadFor
docs/FIT.mdWhether Two-Key is the right control for you
docs/QUICKSTART.mdTen minutes from install to an allowed and a refused call, on the command line or in the windows
docs/DEMO.mdA first-time demo, step by step with screenshots: the MCP filesystem server behind Two-Key, a local LM Studio judge on Windows, and an agent on Ubuntu
docs/GUI_WALKTHROUGH.mdEvery window step by step, in screenshots from one live run: setup, the constitution editor, the ledger view, and the 0.8.0 key upgrade (0.9.0)
docs/HOWTO.mdSetup, configuration, the MCP proxy, and operations
docs/CONNECTING.mdConnecting the agent and every hook so it cannot go around Two-Key, with a checklist
docs/SETTINGS.mdEvery setting: its file, default, what high_assurance does to it, and who may change it
docs/SETUP.mdtwo-key setup for a first deployment, config set, get, and undo to change one setting, and config key-passphrase to encrypt the principal key: who may run them, what they check, and what they refuse
docs/SCANNERS.mdContent scanning with your antivirus or DLP product (0.6.0)
docs/SIEM.mdSending the ledger to a SIEM, and checking a copy against it (0.7.0)
docs/TOOL_CHECK.mdThe tool check: a tool behind the proxy refuses a call that did not come through both keys, and signs a receipt (0.9.0)
docs/AGENT_ROSTER.mdThe signed agent roster: each agent tied to the account it runs as, which tools each may use, and judges from another maker (0.9.0)
docs/LEDGER_VIEW.mdtwo-key ledger-view: search, filter and sort the ledger in a read-only window for an audit (0.8.0)
docs/CONSTITUTION_EDITOR.mdtwo-key constitution-editor: write, try and sign a constitution in a window (0.8.0)
docs/JUDGES_AND_QUORUM.mdHow judges vote and how the two keys combine

| [docs/THREAT_MODEL.md](docs/THREAT_M

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