Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Answer CTRLRun approvals from an MCP client: list what is held, inspect it, grant or deny.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"ctrlrun-operator": {
"command": "uvx",
"args": [
"ctrlrun",
"mcp-operator"
]
}
}
}在终端中运行这条命令
claude mcp add ctrlrun-operator -- uvx ctrlrun mcp-operator粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"ctrlrun-operator": {
"command": "uvx",
"args": [
"ctrlrun",
"mcp-operator"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"ctrlrun-operator": {
"type": "stdio",
"command": "uvx",
"args": [
"ctrlrun",
"mcp-operator"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 CTRLRun 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.12.2)于2个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Spec Driven Development, Remote Desktop Commander, Dechonet MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
30 security tools for AI agents: phishing links, exposure maps, DNS, SSL, PQC, history, pivots.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
ctrlrun stops AI agents from taking wrong, restricted, or malicious actions in your workflows.
Every action is checked against your rules before it runs. Allowed actions go through.
Sensitive ones wait for a person. Forbidden ones are blocked.
Execution safety for AI agents. A Python library that sits between the decision to act and the call that acts.
A consequential action happens at most once, exactly as approved, and leaves a receipt.
When the outcome is unknown, ctrlrun says so instead of guessing.
Runs in production on a single file, or on Postgres across hosts. Apache-2.0.
pip install ctrlrun && ctrlrun demo
The model guesses. ctrlrun does not. The ticket says refund €500. The agent asks for €5,000, one extra zero. The tool is in its list, the arguments are well formed, and the model is completely confident. Nothing above the call disagrees, because nothing above the call is a check: a tool being callable is not permission to call it with those arguments.
| Without ctrlrun | With ctrlrun |
|---|---|
| Nothing checks the amount. The call goes through. €4,500 too much. | Your rule checks the amount. The call never leaves. €0 wrongly paid. |
ctrlrun is that check. It reads the arguments about to leave your process and answers what may happen to them: let it run, ask a human, or stop it cold. Four rules do the work, and each one is a test in this repository before it is a sentence here.
| Exact means exact | Changed arguments need a new approval. |
| Once stays once | Same effect key, shared store, no repeat. |
| Unknown means wait | Confirm the outcome before retrying. |
| Every answer is kept | Requests, decisions and results, refusals included. |
The third one is the half people forget. A correct €500 refund commits at the provider and the reply is lost coming back, so the agent retries. Retry libraries, agent frameworks and tool loops collapse *this failed* into *I do not know what happened*. ctrlrun keeps them apart: a lost reply is AMBIGUOUS, never FAILED, and a retry against an AMBIGUOUS effect is refused until a human, or a reconcile hook, says what happened.
What ctrlrun demo shows: five failures and five refusals, byte for byte
$ ctrlrun demo
ctrlrun demo — five ways an agent action goes wrong, and what stops it. Policy: refunds up to €1,000 are autonomous, up to €10,000 need a human, above that are denied.
refund €500 → remote commits → response lost → effect: AMBIGUOUS agent retries the same refund ✗ BLOCKED — effect may already have committed; blind retry refused remote refund calls: 1 only a human moves it on: ctrlrun resolve refund:txn_1 --committed|--failed
agent proposes refund €2,000 → human approves apr_0aa78e0380ba55d77a601dc782f57095 (bound to the action hash) agent executes refund €5,000 → ✗ BLOCKED — approved action ≠ requested action (mismatch)
Agent A reserve refund:txn_123 → ACQUIRED → executes Agent B reserve refund:txn_123 → ✗ BLOCKED — already reserved (in_progress)
approval apr_dbc8bc6f06690cdf2e2c55a4e591ef3b used once → consumed same approval presented again → ✗ BLOCKED — single-use approval already consumed
human €100,000 delegable → finance agent €25,000 → support agent €2,000 support agent's grant: dlg_5f8d41938a3f29972d5489d676cd9edb support agent requests €50,000 → ✗ BLOCKED — outside the delegated grant (authority_constraint) remote refund calls: 0 finance agent tries to delegate €50,000 under its own €25,000 → refused (containment: constraints) support agent requests €1,500 → authority permits it, and the policy asks a human (apr_f86eca24dd80206ab5189ccb1b62aa55) two axes, and an action needs both: the stricter of the pair wins
Receipts (8): .ctrlrun/demo/receipts.jsonl Events: .ctrlrun/demo/events.jsonl
Read them: CTRLRUN_STATE=.ctrlrun/demo/state.db ctrlrun receipts
Approval and delegation ids are generated per run; everything else is exactly what the demo prints, and a test fails if the two drift apart. No network, no external service, under a second. pip install ctrlrun && ctrlrun demo runs it locally in about the same time.
Where it stops. It does not detect prompt injection: it contains the consequence rather than reading the cause. It cannot promise exactly-once against a remote it does not control, it refuses to *knowingly* act twice, and it rolls nothing back. Receipts are chained, so an alteration is detected; a truncation at the end and a forged append are not, because the head that would catch them is a row in the same database, and closing that is what ctrlrun anchor is for. They are not signed: alteration is not authorship. The badge above means the declared guarantees pass in the setup they ran against, and it does not mean secure, safe, compliant, certified or audited: what the badge means · OWASP-AGENTIC-TOP10.md names the four entries this does not address.
If an agent only reads and answers, you do not need ctrlrun. The moment it can send, pay, refund, delete, deploy, grant, revoke, approve, submit, purchase or cancel, you do.
The animation above is this section, recorded against the real library: one policy file, two short programs, four commands, nothing staged.
1. Install it.
pip install ctrlrun
2. Write down what the agent may do. One file, ctrlrun.yaml. Amounts are integer minor units, so 50000 is €500. Both ends of every band are bound, because an upper bound alone lets a negative amount through, and a refund of a negative amount is a charge. Anything not listed is denied; there is no default-allow.
schema: ctrlrun.policy/v2
actions: stripe.refund: effect: "refund:{payment_id}" rules:
3. Wrap the call that has the consequence. The decorator names the action, the effect key names the consequence it has in the world, and the context names who is acting. stripe here is a stand-in that records calls instead of making them.
import sys
import ctrlrun
class FakeStripe: """Stands in for the provider: it records calls instead of making them."""
def init(self) -> None: self.calls: list[tuple[str, int]] = []
def refund(self, payment_id: str, amount: int) -> dict: self.calls.append((payment_id, amount)) return {"id": f"re_{payment_id}", "amount": amount, "status": "succeeded"}
stripe = FakeStripe()
@ctrlrun.protect("stripe.refund", effect="refund:{payment_id}") def refund(payment_id: str, amount: int) -> dict: return stripe.refund(payment_id, amount)
if name == "main": with ctrlrun.context(agent="support-agent"): print("€500 ->", refund(payment_id="txn_1", amount=50_000)["status"]) try: refund(payment_id="txn_2", amount=500_000) except ctrlrun.ApprovalRequired as pending: print("€5,000 -> a human decides:", pending.request_id) with open("request_id.txt", "w") as handle: handle.write(pending.request_id) else: sys.exit("the €5,000 refund ran without a human; the policy is not in force") print("calls that reached the provider:", len(stripe.calls))
The €500 refund runs on its own. The €5,000 one stops and names the request a human answers:
€500 -> succeeded
€5,000 -> a human decides: apr_63e80076f2cccfee52b17491a4b2e125 calls that reached the provider: 1
A human answers from the shell. The grant names the hash of the exact action the human read, and when it lapses. Ids, hashes and dates are generated per run; yours differ.
ctrlrun approve "$(cat request_id.txt)"
granted apr_63e80076f2cccfee52b17491a4b2e125 for sha256:22ec1c398e4b93d080b6cba61e5e11b0e21879552ac5dbf63c192d2b2e6af752
expires 2026-09-13T20:10:11.367Z
The agent presents it, then tries to spend it on something else. The first call is exactly what the human app
只显示了开头部分;其余内容请在仓库中阅读