Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Deadline-aware governance for AI agents: PII scan always, safety check if it fits the deadline
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"governance-gateway": {
"command": "uvx",
"args": [
"governance-gateway"
]
}
}
}在终端中运行这条命令
claude mcp add governance-gateway -- uvx governance-gateway粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"governance-gateway": {
"command": "uvx",
"args": [
"governance-gateway"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"governance-gateway": {
"type": "stdio",
"command": "uvx",
"args": [
"governance-gateway"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 tanishq-ctrl 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.1)于12天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Spec Driven Development, Remote Desktop Commander, SwarmMemo
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ 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.
Talk with agent swarms: rooms, private messages and paid tasks for AI agents
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Governance checks that an AI agent runs before it acts, built so they keep up with the agent instead of falling behind it.
Every request gets a format check and a personal-data (PII) scan, which never skip. A safety classifier, which flags toxic text and jailbreak attempts, is the slow, optional check: it runs only if a cheap screen finds the text suspicious and it can still finish before the request's deadline. Under load, a guardrail that checks everything falls behind and its checks finish after the agent has already acted; this one stays on time and never drops the privacy check.
It runs locally as an MCP server, so text never leaves your machine, and works with any MCP client: Claude Desktop, Claude Code, Cursor, VS Code, Gemini CLI and others. In Claude Code an optional hook makes the checks compulsory for every command, file write and web request the agent makes.
With uv nothing needs installing in advance:
uvx governance-gateway --version
Or with pip: pip install governance-gateway, then run governance-gateway. Python 3.10 or later; the only dependency is the mcp package.
Claude Desktop: in claude_desktop_config.json (Settings > Developer > Edit Config):
{
"mcpServers": { "governance-gateway": { "command": "uvx", "args": ["governance-gateway"] } } }
Cursor: the same block in ~/.cursor/mcp.json (or .cursor/mcp.json in a project).
Gemini CLI: the same block in ~/.gemini/settings.json.
VS Code (Copilot agent mode): in .vscode/mcp.json:
{
"servers": { "governance-gateway": { "type": "stdio", "command": "uvx", "args": ["governance-gateway"] } } }
Claude Code:
claude mcp add governance-gateway -- uvx governance-gateway
If you installed with pip, use "command": "governance-gateway" and no args.
| Tool | What it does |
|---|---|
check_message(text, deadline_ms=100) | Runs the checks. Returns allow, redact (with the personal data masked) or block, the reasons, whether the screen and the classifier ran, and the timing. Never echoes the text back. |
governance_status() | Requests so far: verdicts, mean and 95th-percentile lag, share on time, share of classifier checks skipped or screened out. |
recent_decisions(limit=20) | The latest decisions: verdict, kinds of personal data found, timing. No text. |
decision_matrix(...) | For a pipeline's deadline, traffic shape, peak-hour factor, detector recall, target and cost share: whether checking everything is enough, adaptive checking is needed, or only more capacity helps. |
simulate_load(load, deadline_ms, traffic, seconds) | Races "check everything" against the deadline-aware guard on a simulated clock with measured check costs. |
Resources: governance://status and governance://policy (which checks run, which are mandatory, and how the gateway decides). All tools are read-only.
An MCP tool is only called when the agent decides to call it. In Claude Code a PreToolUse hook can run the check before every action instead. The easiest way is the governance-guard plugin, which adds both the server and the hook:
/plugin marketplace add tanishq-ctrl/governance-gateway
/plugin install governance-guard@governance-gateway
Or add the hook yourself to ~/.claude/settings.json (or a project's .claude/settings.json):
{
"hooks": { "PreToolUse": [ { "matcher": "Bash|Write|Edit|MultiEdit|NotebookEdit|WebFetch", "hooks": [ { "type": "command", "command": "uvx", "args": ["--from", "governance-gateway", "governance-gateway-hook"], "timeout": 10, "onFailure": "block" } ] } ] } }
The hook sends the text of each action (the command, the file content, the URL) to the running gateway, with a budget of GSL_HOOK_DEADLINE_MS (default 200 ms):
If the gateway is not running, the hook still runs the personal-data scan itself. If the check cannot run at all, the action is blocked (set GSL_FAIL_OPEN=1 to allow it instead). Addresses at GSL_ALLOW_EMAIL_DOMAINS (default anthropic.com, users.noreply.github.com, example.com) are ignored, so commit trailers pass.
| Option | Environment | Default | Meaning |
|---|---|---|---|
--cascade on/off | GSL_CASCADE | on | Run the suspicion screen before the classifier |
--estimator p90/mean | GSL_ESTIMATOR | p90 | How the classifier's cost is estimated from recent checks |
--workers N | GSL_GATEWAY_WORKERS | 1 | Workers serving the queue |
--audit-log PATH | GSL_AUDIT_LOG | none | Append one JSON line per decision (no text) |
--port N | GSL_GATEWAY_PORT | 8737 | Local port for the hook (127.0.0.1 only) |
--no-hook-endpoint | Do not open the local port |
Use it alongside, not instead of, your organisation's own data-protection controls.
The gateway comes from an MSc project that measured how far governance checks fall behind fast automated decisions as load grows. Checking everything collapses at full capacity: on real chatbot traffic it stopped meeting its target at 77% of capacity. The deadline rule held to 1.06, and the screen plus the deadline rule to 1.44, while keeping the privacy check on time.
Prabhu, T. S. (2026). *Quantifying "Governance Speed Lag" (GSL) in Agentic AI Ecosystems: A simulation-based framework for self-adaptive real-time data compliance.* MSc Data Science project, VIT.
https://github.com/tanishq-ctrl/governance-gateway
Code: MIT. The bundled models and workload data are derived from ToxicChat and are for non-commercial use only (CC BY-NC 4.0); see LICENSE-DATA.md.