Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Audit HTTP cookie security against your local policy. Returns findings without cookie values.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"cookieguard": {
"command": "npx",
"args": [
"-y",
"@aiscihub/cookieguard-mcp",
"--config",
"your-value"
]
}
}
}在终端中运行这条命令
claude mcp add cookieguard -- npx -y @aiscihub/cookieguard-mcp --config your-value这个服务器需要在启动命令中填入值,请复制设置后自行填写。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"cookieguard": {
"command": "npx",
"args": [
"-y",
"@aiscihub/cookieguard-mcp",
"--config",
"your-value"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器需要在启动命令中填入值,请复制设置后自行填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"cookieguard": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@aiscihub/cookieguard-mcp",
"--config",
"your-value"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 aiscihub 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.2.0)于昨天进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Spec Driven Development, Remote Desktop Commander, Asset Notation
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ 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.
Read and maintain an Asset Notation file on disk: net worth, holdings, valuations, CSV import.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Let an MCP client check HTTP cookie configuration against your local policy. CookieGuard returns PASS / FAIL / INCOMPLETE, rule IDs, explanations, and fixes. Cookie values never appear in tool results.
Version 0.2.0 on npm, listed in the official MCP Registry as io.github.aiscihub/cookieguard. Requires Node.js 24+. Version 0.2.0 adds cookieguard_capabilities, cookieguard_audit (including sanitized evidence files), and cookieguard_explain. See Tools and results.
flowchart LR
Client[AI client] --> MCP[Local MCP adapter] Config[Your origins and policy] --> MCP MCP --> HTTP[Bounded HTTP header scan] HTTP --> Engine[CookieGuard policy engine] Engine --> Result[PASS / FAIL / INCOMPLETE] Result --> Client
The client launches a local program and communicates over stdio. No cloud hosting, API key, Python, or browser installation is needed. The adapter uses the existing cookieguard-ci scanner and @aiscihub/cookieguard-core policy engine.
From a clone of this repository:
npm ci
npm run demo:mcp
The demo starts a local fixture and connects a real MCP SDK client to the server. It reads the capabilities, audits three endpoints, explains the failure, audits a report written by a separate CLI run, checks every outcome, and exits:
MCP tools: cookieguard_audit, cookieguard_capabilities, cookieguard_explain, cookieguard_policy, cookieguard_scan
Capabilities: 9 checks; allowed origins: 1; evidence files: enabled secure: PASSED (exitCode 0) missing-httponly: FAILED (exitCode 1) — CG001 Missing HttpOnly preference: INCOMPLETE (exitCode 2) — expected-auth-cookie-not-observed Explain CG001: Set HttpOnly on the authentication cookie at the server. Evidence login-report.json: FAILED (exitCode 1); observed by server: no MCP demo passed; cookie-value canary absent from results and diagnostics.
The preference endpoint is incomplete because the configured session_id was not observed. The demo itself exits 0 when every expected outcome is verified.
Example /absolute/path/cookieguard.json:
{
"allowedOrigins": ["http://127.0.0.1:3000"], "policy": { "authCookies": ["session_id"], "failOn": "high", "allowedSameSite": ["lax", "strict"], "requireExplicitSameSite": true, "requireHostOnly": true, "maxLifetimeDays": 30 }, "timeoutMs": 10000, "evidenceDir": "/absolute/path/cookieguard-evidence" }
evidenceDir is optional and only used by cookieguard_audit (0.2.0+). Use your actual application origin and authentication-cookie names. An origin contains scheme, host, and optional port, with no URL path, credentials, query, or fragment. localhost and 127.0.0.1 are distinct origins. The allowlist is required even for loopback; there is no default authorization for other local services. At most 20 origins are accepted. Public remote origins must also be explicitly configured; the scanner blocks private non-loopback addresses and remote IPv6.
For clients that use an mcpServers JSON object:
{
"mcpServers": { "cookieguard": { "command": "npx", "args": [ "--yes", "@aiscihub/cookieguard-mcp@0.2.0", "--config", "/absolute/path/cookieguard.json" ] } } }
Replace the configuration path. The pinned version keeps the server from changing until you update it. Use an absolute path to npx if your client cannot find it on PATH. To run from a checkout instead, run npm ci in the repository root, set command to node, and make /absolute/path/cookieguard-ai/packages/mcp/bin/cookieguard-mcp.js the first argument before --config. Client-specific configuration locations and wrapper keys vary; the command and argument array above are the stdio launch settings. This release was tested with the official MCP SDK client on Linux (Node.js 24) and macOS (Node.js 26); desktop MCP clients have not been tested yet.
Ask your client: “Read CookieGuard's policy, then scan http://127.0.0.1:3000/secure and explain any confirmed failures.” In a clone of this repository, run npm run demo in another terminal to provide that fixture endpoint.
Restart the MCP server after changing configuration. The server loads a snapshot at startup; neither a tool call nor an edit to the file changes a running policy. An agent with shell access could still edit the configuration and restart the process, so filesystem permissions and client permissions remain your boundary.
| Tool | Arguments | Result | Available in |
|---|---|---|---|
cookieguard_policy | {} | Allowed origins, resolved policy defaults, timeout, and scope | 0.1.0 |
cookieguard_scan | {"url":"http://127.0.0.1:3000/secure"} | Status, exit code, counts, findings, limitations, and any scan error | 0.1.0 |
cookieguard_capabilities | {} | Checks, this server's configuration, result semantics, integrations, privacy, and limits | 0.2.0 |
cookieguard_audit | {"url":"…"} or {"evidenceFile":"login.json"} | Same result as cookieguard_scan, plus provenance | 0.2.0 |
cookieguard_explain | {"id":"CG001"} | Meaning, confirmed versus review conditions, and fix for a rule, issue, error, or status | 0.2.0 |
Since 0.2.0, every finding also carries evidenceSource (header for a server Set-Cookie declaration, browser for cookie-store metadata) and identityBasis (developer configuration versus uncalibrated heuristics). Output schemas are published in schemas/.
The server never attaches to a browser or reads another process's cookies. To audit a login that only a browser can perform, run it in your own test code with the Browser Use integration (result.write_json(path)), the Playwright adapter (write formatJson(await audit.evaluate())), or the CLI (--output). Write the sanitized report into the configured evidenceDir, then call cookieguard_audit {"evidenceFile": "login.json"}. The server reads only plain .json names inside that directory (no paths or symlinks, at most 1 MiB), rebuilds the value-free observations field by field, and evaluates them under its own startup policy. Evidence for origins outside allowedOrigins is rejected, provisional or incomplete collections stay incomplete, and results carry provenance.observedByServer: false, because the server cannot verify who wrote the file. integrations/browser-use/scripts/agent_discovery_e2e.py runs this path end to end with a real Browser Use agent and the Python MCP SDK.
Only url is accepted by the scan tool. Policy, headers, credentials, and origin overrides are rejected. timeoutMs is a startup setting from 100 to 10000 milliseconds, defaulting to 10000. Only one scan runs at a time; an overlapping call returns BUSY rather than queuing more network work.
The scan response includes identical JSON in structuredContent and its text content block. Its exitCode is a result field, not the MCP server process's exit status:
status | exitCode | Meaning |
|---|---|---|
passed | 0 | Completed; no confirmed violations at or above failOn |
failed | 1 | Confirmed cookie-policy violations at or above failOn |
incomplete | 2 | Missing evidence or a scan that could not complete |
A policy failure is a successful tool execution (isError: false). A blocked target, timeout, HTTP error, or busy server returns isError: true, incomplete, and a fixed error code/message. SDK argument-validation failures return isError: true and may have only text content. Always check both isError and the structured status. Invalid startup configuration exits the process with 2 and writes a fixed diagnostic to stderr; normal stdout contains only MCP traffic.
Configure authCookies to identify your real authentication cookies. Without that evidence, classifier guesses stay in review and do not become confirmed authentication-cookie failures. Defaults and rules are described in the CI policy guide.
cookieId identifiers and show cookieName only when it matches a configured authCookies name. Multiple scoped cookies with the same name have distinct IDs within a response.omittedFindings records truncation; summary counts and status cover every finding. Use the CLI's local report when you need full cookie metadata. IDs are not stable across scans.npm run test:mcp
npm run lint npm run typecheck npm run verify:mcp
verify:mcp installs packed artifacts into an isolated directory and runs the same MCP demo against the installed binary. It packs the installed, locked runtime dependencies and installs offline with an empty npm cache; it does not publish. CI includes the MCP tests in npm test and the packaged-consumer check in npm run release:check.
The official SDK serves both legacy initialization and the 2026-07-28 protocol over stdio. Tests exercise both. Registry metadata is prepared in server.json; see the release checklist for the separate npm and registry approval steps.