Constraint Runtime

● Active

io.github.tanbopiao/constraint-runtime

Agent constraint runtime: ten governance components plus a config-driven orchestration harness.

Connect this server

One click to install, or copy the config below. Suits: Claude Desktop · Cursor.

Add to Cursor Add to VS CodeClaude Desktop / Claude Code: paste the config below.

Or add it manually — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor):

{
  "mcpServers": {
    "constraint-runtime": {
      "command": "uvx",
      "args": [
        "constraint-runtime"
      ]
    }
  }
}
One line, from the terminal
Claude Code
claude mcp add constraint-runtime -- uvx constraint-runtime
OpenAI Codex CLI
codex mcp add constraint-runtime -- uvx constraint-runtime
VS Code
code --add-mcp '{"name":"constraint-runtime","type":"stdio","command":"uvx","args":["constraint-runtime"]}'

Syntax from each client's docs (Claude Code: claude mcp add; Codex: codex mcp add; VS Code: code --add-mcp). Placeholders in angle brackets are values you fill in.

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
AI & Agents
Version
0.5.0
Registry
active
Published
Nov 28, 2026
Listed in:Official MCP registry ↗how this is checked

Is it safe? Is it maintained?

Serverdex check: Nov 30, 2026

Looks healthy: Constraint Runtime is maintained, open source.

Maintained
Active
Last commit 7 days ago (Nov 28, 2026), 0 open issues.
Official registry
Active
Published as io.github.tanbopiao/constraint-runtime in the official MCP registry, version 0.5.0.
Source
Open source, Apache-2.0
Public repository under the Apache-2.0 licence, 0 stars, 1 forks.
Runs
On your machine
A local PyPI package started by your client; it can reach whatever your user account can.
Credentials
None declared
The registry entry declares no required environment variables.
Owner
Unclaimed
Nobody has claimed this page yet; the data above comes from the registry, GitHub and the live check.

Facts only: last commit and licence from GitHub, the entry's status from the official registry, credentials from the live check. Not a code audit — run the security scan on the endpoint yourself.

A

Grade A · Production-ready

Maintenance & production-readiness — 80/100 from the six repository signals below. A comparable rollup, not a code audit.

  • Recent commits+30/30

    Last commit 7 days ago.

  • Open licence+15/15

    Apache-2.0 on GitHub.

  • Documentation+15/15

    The repository ships a README.

  • Adoption0/20

    0 GitHub stars.

  • Registry status+12/12

    Active in the official MCP registry.

  • Product surface+8/8

    Has a homepage or a published package/endpoint.

Own this server? Add the grade badge — it links back here

<a href="https://serverdex.io/server/io-github-tanbopiao-constraint-runtime?utm_source=report-badge"><img src="https://serverdex.io/server/io-github-tanbopiao-constraint-runtime/report-badge.svg" alt="Constraint Runtime — Serverdex Report Card A" height="22"></a>

Compare every server's grade on best-maintained MCP servers.

On GitHub

read Nov 28, 2026
Stars
0
Forks
1
Last push
Nov 28, 2026
License
Apache-2.0

Pythonagent-safetyai-safetyaudit-trailcircuit-breakerembodied-aiguardrailsllm-agentsruntime

From the README

constraint-runtime · 智能体约束运行时组件集 给通用智能体/具身智能装上笼头的十个小部件:围栏规则引擎、影子运行器、熔断停机器、留痕重放器、结算凭证闸、身份闸、输出闸、评测算子、协同闸、注册编排闸;外加一件标准笼头(编排层)——配置驱动,把十件散件按默认管线一次串起来。 元极恒一 纯 Python 标准库实现,零第三方依赖,单文件即用。 为什么需要它 大模型驱动的智能体和具身智能在规模化部署时有一个共同的坑:模型的行为空间是开放的,错误不是线性增加,而是复合增长——1% 的单次出错率 × 1000 台设备 × 每天上千次决策 = 持续不断的故障流,最终拖垮的不是产品口碑,是运维团队。 传统运维的 SLA、监控、回滚都建立在「行为空间有界、可枚举」的前提上,通用智能体打破了这个前提。解法不是更强的模型,而是约束环境。本组件集把约束环境的十个关键环节做成可以直接嵌入决策流的部件: 标准笼头(编排层):散件 → 整机 十件散件各有分工,但「每件单独调」不等于「整机在跑」。runtime_harness.py 是标准笼头——一个编排器把散件按默认管线串起来: • 配置即数据:管线开关与参数来自配置 dict 或 JSON 文件,改配置不改代码; • 场景模板:内置 expense(报销闸)/support(客服闸)/embodied(具身设备闸)三个模板,各自带默认规则包与段参数,一改即适配; • 判定与故障分离:围栏拦截是「制度在起作用」(记成功),规则包损坏/内部异常是「系统带病」(喂熔断、宁可停机)——两者不混; • 一次调用全程留痕:process() 返回统一判定(ALLOW/DENY+命中段+全程 trace),判定入哈希链。 十分钟上手 quickstart.sh 会依次跑完三步,全程约 1 分钟: 1. 十一件自检——每个部件各自证明自己是好的(含编排层); 2. 端到端演示——看四段输出:围栏拦截(BLOCK)、影子记账(只记不拦)、影子对照报告与转正建议、哈希链校验与重放一致性; 3. 篡改发现实验——亲手把台账里一笔 5000 改成 50,链校验当场报不一致。 看完这三步,你就见过约束运行时的全部核心行为。接下来按「用法示例」把 FenceEngine 嵌进你的决策流,剩下的组件按需逐个加。 安装(PyPI) 安装后即得 MCP 服务壳命令行入口 constraint-runtime-mcp(STDIO 传输)。已收录于官方 MCP Registry:io.github.tanbopiao/constraint-runtime。引擎本体零依赖,也可直接从源码运行(见下文)。 快速开始 用法示例 散件直用:围栏规则引擎 规则包是外挂的 JSON——规则是数据,引擎是代码:换规则不改引擎,热更新即生效,且天然满足「裁判与被测不同源」(引擎不用模型判,模型自己说了不算)。规则格式、组合条件(all/any)、比较算子见 examples/rules_example.json 与各组件 docstring。 作为 MCP 服务使用 本组件集附带 MCP 服务壳(src/mcp_server.py),把围栏判定、影子对照、熔断控制、台账校验暴露为 MCP 工具,可在 Claude、Cursor 等客户端中直接调用: 三十五个工具,按治理链分组:…

Read the full README on GitHub →

The most-starred AI & Agents servers in the index, with their live-check result.

ServerStarsLast pushLive check
Ruflo82,393Nov 2026Local / not checked
Claude Flow82,392Nov 2026Local / not checked
CodeBurn11,945Nov 2026Local / not checked
Kaneo9,891Nov 2026Local / not checked
Ha MCP8,110Nov 2026Local / not checked

Constraint Runtime: questions people ask

Is Constraint Runtime a remote or a local MCP server?
According to its entry in the official MCP registry, Constraint Runtime ships as a local package (PyPI) that your client starts on your machine.
Is Constraint Runtime safe to use?
Looks healthy: Constraint Runtime is maintained, open source. In detail — maintained: Active; official registry: Active; source: Open source, Apache-2.0; runs: On your machine; credentials: None declared. Serverdex check of Nov 30, 2026. This is a reading of the repository, the registry entry and the live check, not a code audit; run the Serverdex security scan on the endpoint before trusting it with real data.
Is Constraint Runtime still maintained?
Active: the repository's last commit 7 days ago. Last push Nov 28, 2026, 0 GitHub stars, Apache-2.0 licence. Read from GitHub on Nov 28, 2026.
How do I add Constraint Runtime to Claude, Cursor or VS Code?
Copy the config in "Connect this server" into your client's MCP config file (claude_desktop_config.json, ~/.cursor/mcp.json or .vscode/mcp.json), or use the one-click Add to Cursor / Add to VS Code buttons and the one-line commands for Claude Code and Codex; then restart the client.
  1. ATH SDKATH 1.0 trusted handshake client SDK: register, 9-step handshake, scoped tokens, MCP over stdio.
  2. 宗源根 谱系总册Genealogy registry MCP: register, resolve, and trace lineage chains. Append-only, pure stdlib.
  3. IEE Engine 本体-架构-算子补全Ontology → architecture → operator scaffold MCP in three traceable stages. Pure stdlib, zero deps.
  4. 宗源编年史 时序记事册Chronicle MCP: append-only event log with range queries and chronological summaries. Pure stdlib.
Browse all AI & Agents →

Add the badge to your site

Show visitors that Constraint Runtime is listed here — it’s also the link we check for a free listing.

Constraint Runtime — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-tanbopiao-constraint-runtime?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="Constraint Runtime — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![Constraint Runtime — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-tanbopiao-constraint-runtime?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.

Add to CursorAdd to VS CodeOpen in Claude Code

Install buttons — for your README

[![Add to Cursor](https://serverdex.io/brand/install-cursor.svg)](https://serverdex.io/install/cursor/io-github-tanbopiao-constraint-runtime) [![Add to VS Code](https://serverdex.io/brand/install-vscode.svg)](https://serverdex.io/install/vscode/io-github-tanbopiao-constraint-runtime) [![Open in Claude Code](https://serverdex.io/brand/install-claude-code.svg)](https://serverdex.io/install/claude-code/io-github-tanbopiao-constraint-runtime)

One click opens Cursor or VS Code with this server's config prefilled; the Claude Code button lands on the one-line command. The links point at Serverdex, so when your config changes the buttons keep working.

Install buttons — HTML for your docs

<a href="https://serverdex.io/install/cursor/io-github-tanbopiao-constraint-runtime"><img src="https://serverdex.io/brand/install-cursor.svg" alt="Add to Cursor — via Serverdex" width="140" height="28"></a>
<a href="https://serverdex.io/install/vscode/io-github-tanbopiao-constraint-runtime"><img src="https://serverdex.io/brand/install-vscode.svg" alt="Add to VS Code — via Serverdex" width="147" height="28"></a>
<a href="https://serverdex.io/install/claude-code/io-github-tanbopiao-constraint-runtime"><img src="https://serverdex.io/brand/install-claude-code.svg" alt="Open in Claude Code — via Serverdex" width="180" height="28"></a>

Same buttons as plain links for a docs page or website.

Prefer a live badge with the score, stars and live check? Score badge (links to a page that explains the number and back to this listing).