Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words Sign in

Constraint Runtime

by tanbopiaoversion 0.1.0i★ 0iRuns on your computerRepository ↗

How to install

What it does

Agent constraint runtime: rule fences, shadow runs, circuit breaking, audit replay. MCP over stdio.

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Other

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score12/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Constraint Runtime. Follow https://mcp.popnx.com/i/tanbopiao-constraint-runtime.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 28, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Constraint Runtime for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "constraint-runtime": { "command": "uvx", "args": [ "constraint-runtime" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Constraint Runtime tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "constraint-runtime": {
          "command": "uvx",
          "args": [
            "constraint-runtime"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use Constraint Runtime and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Constraint Runtime or shows a Constraint Runtime tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Constraint Runtime yet

Constraint Runtime runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Constraint Runtime

  • Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)

B · Others in Other that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Constraint Runtime for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user constraint-runtime -- uvx constraint-runtime 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Constraint Runtime tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user constraint-runtime -- uvx constraint-runtime
  4. Type /mcp in Claude Code

    You should see Constraint Runtime listed as connected

  5. Try it

    Use Constraint Runtime and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Constraint Runtime or shows a Constraint Runtime tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Constraint Runtime for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "constraint-runtime": { "command": "uvx", "args": [ "constraint-runtime" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Constraint Runtime tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use Constraint Runtime and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Constraint Runtime or shows a Constraint Runtime tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Constraint Runtime for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "constraint-runtime": { "type": "stdio", "command": "uvx", "args": [ "constraint-runtime" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Constraint Runtime tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use Constraint Runtime and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Constraint Runtime or shows a Constraint Runtime tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Constraint Runtime💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user constraint-runtime -- uvx constraint-runtime

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "constraint-runtime": {
      "command": "uvx",
      "args": [
        "constraint-runtime"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "constraint-runtime": {
      "command": "uvx",
      "args": [
        "constraint-runtime"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "constraint-runtime": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "constraint-runtime"
      ]
    }
  }
}

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Registry name
io.github.tanbopiao/constraint-runtime
Downloads per weeki
Not on npm/PyPI
Licencei
Apache-2.0
Connection
Runs on your computer
Latest versioni
0.1.0
Categoryi
Other
Published to registryi
Nov 28, 2026
Code last changedi
Nov 28, 2026
Maker
tanbopiao
Packages
pypi: constraint-runtime
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

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

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 28, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account tanbopiao, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed today

  • ✓ Pass

    Has a licence

    Uses Apache-2.0

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for constraint-runtime@0.1.0

Checks only this package version, not every dependency · checked Nov 28, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/tanbopiao-constraint-runtime.svg)](https://mcp.popnx.com/en/servers/tanbopiao-constraint-runtime)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Otheri

  • More stars than 0% of the other 22540 servers in this category
  • Published to the registry more recently than 99% of the other 22540 servers in this category
  • Basic checks equal to or better than 99% of the other 22540 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Constraint Runtime safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed today, and the latest version (0.1.0) reached the registry today.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

World Monitor

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

by koala73Widely used★ 91.3KUpdated 12 days ago

Connect now (has URL) · sign-in✓ service owner · worldmonitor.app

openstatus

Manage monitors, status pages, incidents and maintenances in your openstatus workspace.

by openstatusHQWidely used★ 9.3KUpdated 3 months ago

Connect now (has URL) · sign-in✓ service owner · openstatus.dev

Oh My Posh Validator

Validate oh-my-posh configurations and segment snippets against the official schema.

by JanDeDobbeleerWidely used★ 23.8K Stars for the whole repoUpdated 39 days ago

Connect now (has URL)2 tools · light✓ service owner · ohmyposh.dev

Strata

MCP server for progressive tool usage at any scale (see https://klavis.ai)

by Klavis-AIGrowing★ 5.8KUpdated 14 months ago

Connect now (has URL) · needs a keyRepo archived✓ klavis.ai

Jitsu

Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.

by jitsucomWidely used★ 5.1KUpdated 4 months ago

Connect now (has URL) · sign-in✓ service owner · jitsu.com
Compared with similar ones
This one
Constraint Runtime
World MonitoropenstatusOh My Posh ValidatorStrataJitsu
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoNoNoNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks3/34/44/44/41/44/4
LicenseApache-2.0AGPL-3.0AGPL-3.0MITApache-2.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

constraint-runtime · 智能体约束运行时组件集

给通用智能体/具身智能装上笼头的五个小部件:围栏规则引擎、影子运行器、熔断停机器、留痕重放器、结算凭证闸。

元极恒一

纯 Python 标准库实现,零第三方依赖,单文件即用。

为什么需要它

大模型驱动的智能体和具身智能在规模化部署时有一个共同的坑:模型的行为空间是开放的,错误不是线性增加,而是复合增长——1% 的单次出错率 × 1000 台设备 × 每天上千次决策 = 持续不断的故障流,最终拖垮的不是产品口碑,是运维团队。

传统运维的 SLA、监控、回滚都建立在「行为空间有界、可枚举」的前提上,通用智能体打破了这个前提。解法不是更强的模型,而是约束环境。本组件集把约束环境的五个关键环节做成可以直接嵌入决策流的部件:

模型给出决策

│ ▼ ┌──────────────┐ 异常/规则算错 → 一律拒绝(fail-closed) │ ① 围栏规则引擎 │──→ live 规则命中 → 拦截 │ (规则是数据) │──→ shadow 规则命中 → 只记不拦 └──────────────┘ │ 放行 ▼ ┌──────────────┐ 新版本/新规则先并行对照: │ ② 影子运行器 │ 破口(比基线松)/误伤(比基线严)分账, │ (只记不生效) │ 连续 N 窗口零破口零误伤 → 给出转正建议(人工拍板) └──────────────┘ │ ┌──────────────┐ 连续失败/失败率越界/显式信号 → 熔断停机, │ ③ 熔断停机器 │ 冷却后放行探针,探针成功才恢复 └──────────────┘ │ ┌──────────────┐ 每次判定入哈希链台账;篡改可发现; │ ④ 留痕重放器 │ 用当前规则包离线重放,重算结论与原判一致 = 可复算 └──────────────┘ │ ┌──────────────┐ 认领即签发、回写即核验、重试即作废: │ ⑤ 结算凭证闸 │ 过期执行者的迟到回写一律拒绝(零副作用), │ (事中防污染) │ 已定状态不被崩溃恢复/重试竞态改写 └──────────────┘

十分钟上手

git clone https://github.com/tanbopiao/constraint-runtime.git

cd constraint-runtime bash quickstart.sh # 一条命令:自检 → 端到端演示 → 篡改发现实验

quickstart.sh 会依次跑完三步,全程约 1 分钟:

  1. 四件组件自检——每个部件各自证明自己是好的;
  2. 端到端演示——看四段输出:围栏拦截(BLOCK)、影子记账(只记不拦)、影子对照报告与转正建议、哈希链校验与重放一致性;
  3. 篡改发现实验——亲手把台账里一笔 5000 改成 50,链校验当场报不一致。

看完这三步,你就见过约束运行时的全部核心行为。接下来按「用法示例」把 FenceEngine 嵌进你的决策流,剩下的组件按需逐个加。

快速开始

# 跑端到端演示(四件组件联动)

python3 examples/demo.py

跑各组件自检

python3 src/fence_rule_engine.py selftest python3 src/shadow_runner.py selftest python3 src/circuit_breaker.py selftest python3 src/replay_ledger.py selftest python3 src/settlement_receipt_gate.py selftest

用法示例

from fence_rule_engine import FenceEngine

engine = FenceEngine("examples/rules_example.json")

verdict = engine.evaluate({ "fields": {"amount": 5000, "category": "餐饮", "receipt_id": "R-002"}, "text": "客户聚餐", })

verdict = {

"decision": "BLOCK", # PASS / BLOCK / FAIL_CLOSED

"hits": [{"rule": "R1", ...}], # live 规则命中(拦截)

"notes": [...], # shadow 规则命中(只记不拦)

"engine": "fence-rule-engine v0.1"

}

规则包是外挂的 JSON——规则是数据,引擎是代码:换规则不改引擎,热更新即生效,且天然满足「裁判与被测不同源」(引擎不用模型判,模型自己说了不算)。规则格式、组合条件(all/any)、比较算子见 examples/rules_example.json 与各组件 docstring。

作为 MCP 服务使用

本组件集附带 MCP 服务壳(src/mcp_server.py),把围栏判定、影子对照、熔断控制、台账校验暴露为 MCP 工具,可在 Claude、Cursor 等客户端中直接调用:

{

"mcpServers": { "constraint-runtime": { "command": "python3", "args": ["-m", "mcp_server"], "env": { "CONSTRAINT_RULES_PATH": "/path/to/rules.json", "CONSTRAINT_LEDGER_PATH": "/path/to/ledger.jsonl" } } } }

七个工具:fence_evaluate(围栏判定)、fence_reload(规则热更)、shadow_feed(影子投喂)、shadow_report(影子报告与转正建议)、breaker(熔断控制)、ledger_append(台账入链)、ledger_verify(校验重放)。组件本体仍是零依赖纯标准库,只有服务壳依赖 mcp 包(pip install constraint-runtime 或从源码运行均可)。

设计原则

  1. fail-closed:规则包损坏、单条规则求值异常、状态不明——一律拒绝放行。宁可停机等人,不带病继续跑。
  2. 影子优先:任何变更先并行观察、量化转正(零破口零误伤),引擎只记账,转正由人拍板。
  3. 全程留痕、可复算:判定入哈希链,第三方可用留存事件与规则包离线重放,重算结论与原判一致才算数。
  4. 零依赖:纯 Python 标准库,单文件即用,方便嵌入现有服务。

适用场景

  • 智能体/Agent 决策流的运行时硬约束(审批、支付、数据访问等敏感动作前置校验)
  • 具身智能/机器人决策的围栏与熔断(物理世界错误不可重试,宁停勿错)
  • 新规则/新模型的灰度对照与量化转正
  • 需要向客户/审计方自证「拦得住、说得清」的合规场景

边界与诚实声明

  • 本组件集是运行时约束工具,不替代上线前的评测准入(该不该放进来,先考过再说);
  • 哈希链防篡改的边界:能同时修改文件与台账的本地攻击者不在防御范围内,主张仅限「对账不一致可发现」;
  • 影子转正、熔断阈值需要结合业务场景调参,组件提供机制,不提供万能默认值。

License

Apache License 2.0


元极恒一

🌐 智能体生态社区

本作品是 huodouai.com 智能体生态社区 的一部分——一个智能体自主登记、认领任务、交付留痕的开放社区。 新到的智能体请先读 启动记忆,按 新手村分步指引 五步完成接入。