Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Local-first credential broker: agents use gated APIs through scoped, audited requests, never keys.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
BROKER_AGENT_ID, BROKER_POLICY_FILE, BROKER_AUDIT_FILE, BROKER_APPROVALS_FILE, BROKER_HOT_RELOAD, BROKER_ALLOW_KEY_REQUESTS你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"credential-broker": {
"command": "npx",
"args": [
"-y",
"@sarutobi-sasuke/credential-broker-mcp"
],
"env": {
"BROKER_AGENT_ID": "your-value",
"BROKER_POLICY_FILE": "your-value",
"BROKER_AUDIT_FILE": "your-value",
"BROKER_APPROVALS_FILE": "your-value",
"BROKER_HOT_RELOAD": "your-value",
"BROKER_ALLOW_KEY_REQUESTS": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add credential-broker --env BROKER_AGENT_ID=your-value --env BROKER_POLICY_FILE=your-value --env BROKER_AUDIT_FILE=your-value --env BROKER_APPROVALS_FILE=your-value --env BROKER_HOT_RELOAD=your-value --env BROKER_ALLOW_KEY_REQUESTS=your-value -- npx -y @sarutobi-sasuke/credential-broker-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"credential-broker": {
"command": "npx",
"args": [
"-y",
"@sarutobi-sasuke/credential-broker-mcp"
],
"env": {
"BROKER_AGENT_ID": "your-value",
"BROKER_POLICY_FILE": "your-value",
"BROKER_AUDIT_FILE": "your-value",
"BROKER_APPROVALS_FILE": "your-value",
"BROKER_HOT_RELOAD": "your-value",
"BROKER_ALLOW_KEY_REQUESTS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"credential-broker": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@sarutobi-sasuke/credential-broker-mcp"
],
"env": {
"BROKER_AGENT_ID": "your-value",
"BROKER_POLICY_FILE": "your-value",
"BROKER_AUDIT_FILE": "your-value",
"BROKER_APPROVALS_FILE": "your-value",
"BROKER_HOT_RELOAD": "your-value",
"BROKER_ALLOW_KEY_REQUESTS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
BROKER_POLICY_FILE envBROKER_AUDIT_FILE envBROKER_APPROVALS_FILE envBROKER_HOT_RELOAD envBROKER_ALLOW_KEY_REQUESTS env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月10日
注册名称已通过 GitHub 账户 SarutobiSasuke8 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:BROKER_AGENT_ID
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.2)于昨天进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Spec Driven Development, Remote Desktop Commander, Floppy
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量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.
Share a file with a short link and see who opened it: pages read, time per page, bots filtered.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A local-first MCP server that lets AI agents use gated APIs without ever holding the keys.
The agent asks the broker to make a request. The broker canonicalises the URL, checks a declarative per-operation policy, verifies any required approval at execution time, injects the secret at the last moment, calls the upstream, redacts and filters the response, and writes a content-free audit record. The secret lives with the broker process and is never relayed to the agent in any representation the broker creates: raw, Base64, base64url, percent-encoded, form-encoded, or Unicode-normalised. An upstream that transforms a secret with a one-way function of its own defeats string matching; scoped operations and metadata-only responses are the defence there, and SECURITY.md states this boundary honestly.
Early release (0.x). Published to npm with provenance from GitHub
Actions. Expect the policy format and tools to change before 1.0.
Needs Node 22 or 24. Keys are stored in the OS keychain: Windows Credential Manager, the macOS login keychain, or the Secret Service on Linux (GNOME Keyring or KWallet through secret-tool). Without one, set each credential's env_var instead.
npx -y -p @sarutobi-sasuke/credential-broker-mcp credential-broker-keys
Run through npx, the policy, audit log and approvals live in ~/.credential-broker (%USERPROFILE%\.credential-broker on Windows), so they survive npm cache clean-ups and upgrades. Set BROKER_HOME, or BROKER_POLICY_FILE, BROKER_AUDIT_FILE and BROKER_APPROVALS_FILE, to put them somewhere else. From a clone of this repo, run npm ci then npm run keys; the files then stay in the checkout.
github, base URL https://api.github.com, paste a token, tick the agent that may use it (or add an identity such as codex), then press Add key. The key goes into your OS keychain and the policy file gets a read-only grant. Press Test on the card to prove the key works.~/.codex/config.toml or update the existing credential-broker entry. For Claude Code, run the copied command. Restart your client. Both options use local stdio and require Node on PATH. The Codex configuration also applies to local sessions in the ChatGPT desktop app on the same host. If you use environment-backed credentials, list the variable names in env_vars under the Codex server table. See the Codex MCP configuration guide.Use
broker_explain_requestfor a GET to
https://api.github.com/repos/octocat/hello-worldwith credentialgithub.
It answers *allowed* and names the deciding rule. Now ask the same with DELETE: *denied*, no grant. Then ask for broker_read on the GET and you get the response body with the token redacted wherever it might appear. The audit log (data/audit.jsonl) now holds the who, what and outcome, never the content.
PAUSE. The agent's next call is refused with a message not to retry. Press Resume all access and type RESUME. From a terminal: npm run pause -- on and npm run pause -- off.The broker's native connection is local stdio. For a private ChatGPT integration, an eligible workspace can connect through OpenAI Secure MCP Tunnel, with the tunnel client launching the broker under a dedicated policy identity. Run the tunnel client under the OS account that owns the keys and keep the key manager on loopback. This connection needs its own workspace setup and verification. Public distribution as a local ChatGPT desktop plugin is limited to approved partners.
Giving an agent an API key gives it everything the key can do, for as long as the key lives, invisibly. Most agent tasks need a fraction of that: *read these repos*, *query this endpoint*, *GET but never DELETE*. This broker turns "here is my key" into "here is a scoped, observable capability":
evaluate(). What the broker reports and what it enforces cannot drift apart.| Tool | What it does |
|---|---|
broker_whoami | Show the authenticated agent and its per-credential operation grants. |
broker_list_credentials | Granted credentials: id, kind, base URL, provisioned or not. Never values. |
broker_explain_request | Dry run: would this request be permitted, which rule decides it, and is an approval required or satisfied? No upstream call, no secret touched. |
broker_read | GET or HEAD through a granted credential. Honestly annotated read-only. |
broker_mutate | POST, PUT, PATCH, or DELETE. Annotated destructive and non-idempotent, because its strongest capability is. May require an approval and an idempotency key. |
broker_request_credential | Opt-in (BROKER_ALLOW_KEY_REQUESTS=1). Asks the operator for a key by opening the key manager pre-filled. The agent never sees the page, the token or the key. |
Policy objects reject unknown fields at every level. Correct misspelt keys and remove unsupported metadata before upgrading; ignored fields could otherwise remove a restriction, such as a misspelt enabled or deny.
One YAML file declares credentials and per-credential operation grants:
version: 2
credentials:
agents:
A request must clear every gate: identity provisioned and enabled, credential granted, URL canonical and provably unambiguous, origin exactly the credential's origin, path inside the credential's base path, no deny match, and an operation whose method, path template, query parameter allowlist, and body rule all match. broker_explain_request reports which gate decided any outcome.
Semantics worth knowing:
base_url: https://api.example.com/v2, the template /weather authorises /v2/weather.query_params are denied.body rule reject any request body. Body rules name allowed content types and a byte cap. Mutations must declare requires_approval explicitly, true or false.response_body: true relays the body, and only for content types in response_content_types (default application/json).query must set high_risk: true: URLs are commonly retained by upstream and proxy telemetry, so a query-string secret has a wider blast radius than a header.An operation with requires_approval: true executes only when the request carries an approval_id that exists in the approval store, is bound to exactly this principal, credential, and operation, is unexpired, and is not revoked, checked at execution time, not config-load time. On stdio the store is a JSON file (config/approvals.json by default) that is re-read on every check, so editing it revokes access mid-flight:
[
{ "id": "apr-2026-08-13-01", "agent_id": "researcher", "credential_id": "github-readonly", "operation_id": "create-issue", "expires_at": "2026-08-14T00:00:00Z", "revoked": false } ]
Version 1 policies shared one method list and path set across every credential an agent held, so authority needed for one credential widened all of them. The broker refuses v1 files. Convert with:
npm run migrate -- config/broker.yaml > config/broker-v2.yaml
The output is deliberately conservative (mutations require approval, query parameters must be enumerated) and flagged for review: it makes the old blast radius visible rather than silently preserving it.
fetch would re-send the injected credential there.Set-Cookie and friends are dropped.indeterminate, never silently retried.On stdio, BROKER_AGENT_ID is a trusted-launcher assertion: the operator starting the process vouches for which agent is connected. It is only a real boundary when the broker runs under the secure-launch profile in SECURITY.md: dedicated OS identity, owner-only
只显示了开头部分;其余内容请在仓库中阅读