Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Policy proxy for MCP tool calls. A denied call never reaches the downstream server.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
SAFENODE_API_KEY, SAFENODE_BASE_URLค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"safenode-gateway": {
"command": "npx",
"args": [
"-y",
"safenode-mcp-gateway"
],
"env": {
"SAFENODE_API_KEY": "ใส่ค่าของคุณ",
"SAFENODE_BASE_URL": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add safenode-gateway --env SAFENODE_API_KEY='ใส่ค่าของคุณ' --env SAFENODE_BASE_URL='ใส่ค่าของคุณ' -- npx -y safenode-mcp-gatewayเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"safenode-gateway": {
"command": "npx",
"args": [
"-y",
"safenode-mcp-gateway"
],
"env": {
"SAFENODE_API_KEY": "ใส่ค่าของคุณ",
"SAFENODE_BASE_URL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"safenode-gateway": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"safenode-mcp-gateway"
],
"env": {
"SAFENODE_API_KEY": "ใส่ค่าของคุณ",
"SAFENODE_BASE_URL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
SAFENODE_BASE_URL envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 9 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub sp3ak ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: SAFENODE_API_KEY
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.2) เข้า registry 3 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, SwarmMemo
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
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
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
An MCP proxy that enforces policy on every tool call. The agent cannot route around it.
npx safenode-mcp-gateway
An MCP server that exposes an evaluate_action tool is theatre. The model can choose not to call it, which means it enforces nothing.
This is a proxy. It sits between your MCP client (Claude Desktop, Claude Code, Cursor, any MCP host) and the MCP servers you already use. tools/list passes straight through, so the model sees exactly the tools it saw before. Every tools/call is evaluated against SafeNode *first*. A denial means the call never reaches the downstream server at all.
Claude Desktop ──► safenode-mcp-gateway ──► filesystem server
│ github server ▼ postgres server SafeNode API allow/warn/review/deny
Your agent needs no code changes. It does not know the gateway is there.
Get an API key — free tier, no card · Docs · Python SDK
Free at safenode.tech. Keys look like sn_....
safenode-gateway.json — take the servers straight out of your existing MCP client config:
{
"failMode": "fail_closed", "payloadMode": "redacted", "logFile": "./safenode-decisions.jsonl", "servers": [ { "name": "filesystem", "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/you/projects"] } ], "tools": { "read_file": { "failMode": "fail_open" }, "write_file": { "payloadMode": "metadata_only" } } }
Do not put your API key in this file. Set SAFENODE_API_KEY in the environment — it takes precedence over the config, so the file stays safe to commit.
SAFENODE_API_KEY=sn_... npx safenode-mcp-gateway --dry-run
Prints the exact JSON body that an evaluation would POST. No network call. This is the fastest way to satisfy yourself about what leaves your machine.
Claude Desktop — claude_desktop_config.json:
{
"mcpServers": { "safenode": { "command": "npx", "args": ["-y", "safenode-mcp-gateway", "--config", "/absolute/path/to/safenode-gateway.json"], "env": { "SAFENODE_API_KEY": "sn_..." } } } }
Claude Code — .mcp.json in your project:
{
"mcpServers": { "safenode": { "command": "npx", "args": ["-y", "safenode-mcp-gateway", "--config", "./safenode-gateway.json"], "env": { "SAFENODE_API_KEY": "sn_..." } } } }
Cursor — ~/.cursor/mcp.json, same shape as Claude Desktop.
Replace your existing server entries with this one. The gateway spawns them itself, so listing them in both places would run each server twice.
| Decision | Behaviour |
|---|---|
allow | Forwarded. The downstream result is returned unchanged. |
warn | Forwarded, with a [SafeNode warning] line prepended so the model *and* the human see it. |
review | Not forwarded. Returns a message saying approval is needed. |
deny | Not forwarded. Returns the human-readable reasons and the trace_id. |
Denials come back as MCP tool *errors*, not transport failures, so the model sees why and can try something else instead of the host surfacing an opaque crash.
failMode decides what happens when SafeNode itself is unreachable.
fail_closed (default) | Block the call. |
fail_open | Forward it, unevaluated. |
raise | Crash the gateway. |
The gateway defaults to `fail_closed`, unlike the SafeNode SDKs, which default to `fail_open`. That difference is deliberate. An SDK wraps a developer's own code, where taking production down during a SafeNode outage loses the user forever. The gateway fronts arbitrary MCP tools it knows nothing about — filesystem writes, shell commands, payments — and silently letting all of that through the moment SafeNode is unreachable defeats the point of installing it.
Loosen it per tool for the read-only ones:
"tools": {
"read_file": { "failMode": "fail_open" }, "list_files": { "failMode": "fail_open" } }
Degraded decisions are logged to stderr and marked "degraded": true with a null traceId in the decision log, so they can never be counted as real policy decisions.
For every tool call, the gateway sends: the tool name, the downstream server name, a session id, any static context from your config, and the tool arguments as the payload.
payloadMode controls the arguments:
full | Sent verbatim. |
redacted (default) | Scrubbed client-side first. |
metadata_only | No values at all — key names and hashes only. |
Redaction covers emails, Luhn-validated credit cards, US SSNs, provider API key prefixes (sk-, ghp_, xoxb-, AKIA, AIza), bearer tokens, and PEM private key blocks. Values become [REDACTED: ].
Alongside the redacted payload, the gateway sends counts of what it removed:
"safenode_redactions": { "email": 2, "credit_card": 1 }
This is load-bearing. SafeNode's server-side sensitive_data rule matches patterns against payload *values*. If the gateway scrubbed those values and said nothing, a policy of "deny any action containing a card number" would silently start passing — the client-side privacy feature would have disabled the server-side security control. Reporting counts closes that: policy can act on the *presence* of a card number without ever receiving one.
If you use sensitive_data with patterns, pair it with a redaction_metadata rule.
These counts are self-reported. They raise the floor for an honest client; they are not a defence against a hostile one.
The gateway talks to exactly two things: the downstream MCP servers you configured, and the SafeNode API. No analytics, no phone-home, no postinstall scripts.
Set logFile to get a JSONL record of every decision, independent of the server-side audit trail — so you still have evidence of what your agent tried to do when the network was down:
{"timestamp":"2026-08-08T04:12:09.412Z","server":"filesystem","tool":"write_file","decision":"deny","degraded":false,"traceId":"9f1c…","reasons":["Path is outside the approved workspace."],"forwarded":false,"durationMs":143,"sessionId":"a3f1…"}
| Key | Default | Meaning | ||
|---|---|---|---|---|
apiKey | — | Prefer SAFENODE_API_KEY in the environment | ||
baseUrl | https://safenode.tech | For staging | ||
failMode | fail_closed | fail_closed \ | fail_open \ | raise |
payloadMode | redacted | full \ | redacted \ | metadata_only |
timeoutMs | 5000 | Evaluation request budget | ||
logFile | null | JSONL decision log path | ||
prefixTools | false | Force __ naming | ||
servers[] | required | Downstream MCP servers | ||
tools{} | {} | Per-tool overrides | ||
context{} | {} | Static context on every evaluation |
failMode, payloadMode and context can be set globally, per server, or per tool. Most specific wins.
tools. .bypass: true skips evaluation entirely for one tool. It does what it says — the call is forwarded with no policy check at all.
If two downstream servers export the same tool name, the gateway prefixes every tool with __ and logs a warning. Silently picking a winner would apply one server's policy to another server's tool, which is a security bug rather than a cosmetic one.
Each gated tool call adds one round trip to the SafeNode API, with a 5000ms budget by default. Bypassed tools add nothing.
A measured p99 for the evaluate endpoint is not published yet, because it has not been measured under realistic load. When it has been, it will go here and in the docs rather than being estimated.
docker build -t safenode-mcp-gateway .
Running it with no arguments starts against a bundled demo config that proxies an included echo server, so you can see the proxy work without any setup:
docker run -i --rm safenode-mcp-gateway
The demo key is a placeholder, so tools/list passes through while any real tool call is denied by the fail_closed policy. For real use, mount your own config and supply a key:
docker run -i --rm \
-e SAFENODE_API_KEY=sn_... \ -v /path/to/safenode-gateway.json:/app/config.json \ safenode-mcp-gateway --config /app/config.json
-i is required. MCP speaks JSON-RPC over stdio, so without stdin attached the gateway has nothing to talk to.
SKILL.md teaches an agent to set the gateway up for you, moving your existing servers behind it, and how to behave when a call is blocked or held for review. Copy it into a folder in your agent's skills directory (for Claude Code, ~/.claude/skills/safenode-mcp-gateway/). The policy-authoring companion is in skill/safenode-policies/.
Node 18+. One runtime dependency: @modelcontextprotocol/sdk.
See CONTRIBUTING.md. Bug reports about enforcement gaps — anything that reaches a downstream server when it should have been blocked — are the most valuable thing you can file.
See SECURITY.md. Please do not open public issues for vulnerabilities.
MIT. See LICENSE.