Constraint Runtime
● Activeio.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.
Or add it manually — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor):
{
"mcpServers": {
"constraint-runtime": {
"command": "uvx",
"args": [
"constraint-runtime"
]
}
}
}claude mcp add constraint-runtime -- uvx constraint-runtimecodex mcp add constraint-runtime -- uvx constraint-runtimecode --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.
Is it safe? Is it maintained?
Serverdex check: Nov 30, 2026Looks 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.
Report Card
How the grade works →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, 2026Pythonagent-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 →Alternatives to Constraint Runtime
All Constraint Runtime alternatives →Best AI & Agents servers →Compare side by side →The most-starred AI & Agents servers in the index, with their live-check result.
| Server | Stars | Last push | Live check |
|---|---|---|---|
| Ruflo | 82,393 | Nov 2026 | Local / not checked |
| Claude Flow | 82,392 | Nov 2026 | Local / not checked |
| CodeBurn | 11,945 | Nov 2026 | Local / not checked |
| Kaneo | 9,891 | Nov 2026 | Local / not checked |
| Ha MCP | 8,110 | Nov 2026 | Local / 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.
More from tanbopiao
All 13 servers by tanbopiao →- ATH SDKATH 1.0 trusted handshake client SDK: register, 9-step handshake, scoped tokens, MCP over stdio.APIs & Integrations
- 宗源根 谱系总册Genealogy registry MCP: register, resolve, and trace lineage chains. Append-only, pure stdlib.Food, Home & Lifestyle
- IEE Engine 本体-架构-算子补全Ontology → architecture → operator scaffold MCP in three traceable stages. Pure stdlib, zero deps.Developer Tools
- 宗源编年史 时序记事册Chronicle MCP: append-only event log with range queries and chronological summaries. Pure stdlib.Other
More AI & Agents servers
Browse all AI & Agents →Experience Retrieval
Production-ready
Retrieves engineering experience points from preserved-repo deep-reads.
SOP Retrieval
Production-ready
Self-serve SOP retrieval MCP server with document, version and section citations.
wengu 温故
Production-ready
Cross-session persistent memory for AI agents. Pure stdlib, single file, zero dependencies.
garnet-mcp
Well-maintained
RAG memory for LLM agents over Garnet Vector Sets: store text as embeddings, recall by meaning.
TasksAI Agent Skills: Realtor, Farmer and Teacher
Production-ready
Find Realtor, Farmer and Teacher skills free; buy single-use instructions with budget-limited x402.
Obyte MCP
Well-maintained
Query Obyte mainnet and testnet: balances, units, autonomous agents, AA state, dry runs, tokens.
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.
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
[](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.
Install buttons — for your README
[](https://serverdex.io/install/cursor/io-github-tanbopiao-constraint-runtime) [](https://serverdex.io/install/vscode/io-github-tanbopiao-constraint-runtime) [](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).