World Monitor
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 97 tools.
Authorization proxy for another MCP server: a rule check and AI judges approve each tool call
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月13日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
SettingsDeveloperEdit Config
{
"mcpServers": {
"two-key": {
"command": "uvx",
"args": [
"two-key",
"mcp-proxy",
"--config"
]
}
}
}用 Two-Key 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Two-Key,或回答中出现 Two-Key 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Two-Key
Two-Key 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
A · 使用能连接 Two-Key 的应用
B · 其他 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
可连接 Claude Code,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次)
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
claude mcp add --scope user two-key -- uvx two-key mcp-proxy --config应能看到 Two-Key 在列表中并显示已连接
用 Two-Key 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Two-Key,或回答中出现 Two-Key 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次) · 没有一键按钮,需要粘贴设置并自行填写
~/.cursor/mcp.json
粘贴这些设置,填写空着的值并保存
{
"mcpServers": {
"two-key": {
"command": "uvx",
"args": [
"two-key",
"mcp-proxy",
"--config"
]
}
}
}用 Two-Key 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Two-Key,或回答中出现 Two-Key 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次) · 没有一键按钮,需要粘贴设置并自行填写
MCP: Open User Configuration
粘贴这些设置,填写空着的值并保存
{
"servers": {
"two-key": {
"type": "stdio",
"command": "uvx",
"args": [
"two-key",
"mcp-proxy",
"--config"
]
}
}
}用 Two-Key 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Two-Key,或回答中出现 Two-Key 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
Claude Code
claude mcp add --scope user two-key -- uvx two-key mcp-proxy --configClaude 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 为准。
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月14日
注册名称已通过 GitHub 账户 Insomniac-VibeLabs 验证,该账户拥有此仓库
代码最后更新于前天
使用 Apache-2.0
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
还没有评价
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 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
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 97 tools.
AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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:
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:
high_assurance profile asks for judges from two makers and a yes from a local one.two-key mcp-proxy shows the agent only the tools you signed and runs every call through both keys.two-key audit.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.
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.
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).
| Read | For |
|---|---|
| docs/FIT.md | Whether Two-Key is the right control for you |
| docs/QUICKSTART.md | Ten minutes from install to an allowed and a refused call, on the command line or in the windows |
| docs/DEMO.md | A 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.md | Every 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.md | Setup, configuration, the MCP proxy, and operations |
| docs/CONNECTING.md | Connecting the agent and every hook so it cannot go around Two-Key, with a checklist |
| docs/SETTINGS.md | Every setting: its file, default, what high_assurance does to it, and who may change it |
| docs/SETUP.md | two-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.md | Content scanning with your antivirus or DLP product (0.6.0) |
| docs/SIEM.md | Sending the ledger to a SIEM, and checking a copy against it (0.7.0) |
| docs/TOOL_CHECK.md | The 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.md | The 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.md | two-key ledger-view: search, filter and sort the ledger in a read-only window for an audit (0.8.0) |
| docs/CONSTITUTION_EDITOR.md | two-key constitution-editor: write, try and sign a constitution in a window (0.8.0) |
| docs/JUDGES_AND_QUORUM.md | How judges vote and how the two keys combine |
| [docs/THREAT_MODEL.md](docs/THREAT_M