Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Injects secrets into shell commands at exec time; plaintext never reaches the LLM context
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"vaultshell": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/sowhati/vaultshell:0.1.2"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add vaultshell -- docker run -i --rm ghcr.io/sowhati/vaultshell:0.1.2วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"vaultshell": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/sowhati/vaultshell:0.1.2"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"vaultshell": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/sowhati/vaultshell:0.1.2"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub SoWhatI ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.2) เข้า registry 37 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Docker ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
English | 简体中文
Available on the official MCP Registry: io.github.SoWhatI/vaultshell
An MCP server that stores secrets in local secure storage, injects them into shell child processes at exec time based on rules, and guarantees secret plaintext never reaches the model context — not in tool responses, not in logs, not in audit records.
The closed loop: reference-based storage + conditional injection + mandatory output redaction.
Status: M3 — one-shot commands + persistent sessions + credential proxy +
external CLI backends. See
CHANGELOG and docs/design-spec.md.
[REDACTED:NAME]), and redacted output.env and never pass through the tool layer.shell_exec has no free-form env parameter. Secrets enter by rule reference only.Requires Node.js 20+.
# Run on demand directly from the repo (npm installs devDependencies and
prepare script):npx -y github:SoWhatI/vaultshell
npm i -g github:SoWhatI/vaultshell
This is the same code as the npm registry package, installed from git — npm clones the repo, runs prepare (→ npm run build) and links the vaultshell bin. Pin a tag for reproducibility: npx -y github:SoWhatI/vaultshell#v0.1.1.
docker run -i --rm \
-e MASTER_KEY=<64 hex chars> \ -v ~/.vaultshell:/home/node/.vaultshell \ ghcr.io/sowhati/vaultshell:latest
MCP client config using Docker:
{
"mcpServers": { "vaultshell": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "MASTER_KEY=<64 hex chars>", "-v", "~/.vaultshell:/home/node/.vaultshell", "ghcr.io/sowhati/vaultshell:latest" ] } } }
The image runs as the non-root node user (HOME=/home/node), so the data volume mounts at /home/node/.vaultshell. node-pty is excluded from the image — sessions automatically fall back to pipe mode (pty: false) in containers; injection and redaction are unchanged. The web subcommand passes through (docker run … ghcr.io/sowhati/vaultshell web — loopback inside the container, of limited use).
No Smithery distribution: Smithery has gone hosted-only (it only
accepts servers deployed to its own infrastructure). vaultshell's secrets
must stay on the user's machine by design — third-party hosting is
incompatible with its threat model, so we deliberately do not publish
there.
# Run via npx (after publish) or from source:
npm install && npm run build
export MASTER_KEY=$(openssl rand -hex 32)
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": { "vaultshell": { "command": "npx", "args": ["-y", "vaultshell"], "env": { "MASTER_KEY": "<64 hex chars>" } } } }
Full setup, configuration reference, rule-writing guide, client integration, and FAQ: [docs/user-guide.md](docs/user-guide.md).
| Tool | Purpose | Returns |
|---|---|---|
shell_exec | Run a one-shot command with per-rule injection. Params: command, cwd?, profile?, extraEnv? (allowlist), dryRun?, timeoutSeconds? (≤3600) | {exitCode, stdout, stderr} (redacted), injected:[names], ruleId, redactedCount, timedOut, truncated, warnings; dryRun → {dryRun:true, ruleId, injected, envKeys, denied} |
shell_session_open | Open a persistent session; secrets injected once at creation | {sessionId, cwd, injected:[names], pty, ttlSeconds} |
shell_session_send | Send a command to a session | {output} (merged, redacted), exitCode, redactedCount |
shell_session_close | Kill a session; secrets die with the process | {ok} |
shell_session_list | List live sessions | metadata only |
shell_session_revoke | Kill and rebuild the session without secrets | {sessionId} (new) |
shell_proxy_start | Start a credential-injecting reverse proxy on 127.0.0.1 | {proxyId, port, expiresAt, upstreamHost} |
shell_proxy_stop | Stop a proxy | {ok} |
shell_proxy_list | List running proxies | metadata only (incl. secret name, never value) |
secret_list | List names + metadata (backend ref, resolvable) | never values |
secret_set | Write to backend; persisted, never echoed | {name, ok} |
secret_delete | Delete and unregister | {name, ok} |
secret_probe | Check a ref resolves | {ok, masked:"****"} |
rule_list | Rules + static warnings (e.g. inject-everywhere) | — |
rule_validate | Static findings: unknown secrets, unreachable rules, inject-everywhere, union risk, requireConfirm capability | {ok, findings[]} |
audit_query | Read audit entries | names + redacted commands only |
dryRun: true on shell_exec reports the would-be ruleId, injected names, final env key list (never values) and the deny-list verdict — without executing anything.timeoutSeconds (default defaults.execTimeoutSeconds = 120, capped at 3600) kills the command and returns timedOut: true.defaults.maxOutputBytes (default 1 MiB) truncates each output stream and sets truncated: true. Truncation happens after the Redactor — it can never bypass redaction.defaults.maxConcurrentExecs (default 8) rejects excess concurrent shell_exec calls with a clear error (no queue).dryRun / timedOut / truncated flags).vaultshell web # loopback-only HTTP UI on a random port
vaultshell web --port 5317
Prints a one-time-token URL like http://127.0.0.1:5317/?token=… — open it to manage secrets (write-only), edit rules with live static-validation warnings and a matcher dry-run, edit config, and browse the redacted audit log. The token dies with the process; every API call needs it, mutations require same-origin application/json requests, and no endpoint can ever return a secret value. Do not port-forward it. Design & threat model: docs/web-config-ui-design.md.
For high-sensitivity API tokens, prefer not landing the secret in env at all. Declare a proxy in config.yaml:
proxies:
Then shell_proxy_start { "id": "stripe" } → { port, expiresAt }, and commands call http://127.0.0.1: /v1/charges instead of https://api.stripe.com/v1/charges. The proxy injects the header in memory only and auto-stops after its TTL (default 300s). Audit records the host and secret name, never the header value.
Boundaries: http:///https:// upstreams only (proxy→upstream TLS is properly validated; no CONNECT tunneling, no TLS termination); the client→proxy leg is plaintext on 127.0.0.1, which inherits the same-UID local-process boundary from the threat model.
shell_session_open spawns a long-lived shell with the matched rule's secrets injected at creation. The session is recycled after an idle TTL (defaults.sessionTtlSeconds, default 900s, overridable per rule via ttlSeconds or per call) — when the process dies, the secrets die with it. shell_session_revoke kills a possibly-compromised session immediately and rebuilds one without any secrets.
Sessions use a real PTY via node-pty (an optional dependency — native build, needs Xcode CLT on macOS / build-essential + python3 on Linux). If node-pty cannot be loaded or spawned, vaultshell automatically falls back to a plain child_process shell and the shell_session_open response says pty: false; injection and redaction behave identically, only interactivity is degraded. Session output merges stdout/stderr (PTY semantics) and passes through the same Redactor.
| Backend | Ref scheme | Status | Platforms | Notes |
|---|---|---|---|---|
| Encrypted file | encfile://NAME | ✅ Implemented | all | AES-256-GCM; master key from env:MASTER_KEY or macOS keychain; default |
| Local keychain | keychain://svc/acct | ⚠️ macOS only | macOS | spawns security CLI; Linux/Windows give a clear error |
| Process env | env://NAME | ✅ Implemented | all | read-only; good for CI |
| File | file://path | ✅ Implemented | all | first line; refuses permissions > 0600 |
| Inline | inline: | ⚠️ Restricted | all | plaintext in config; disabled by default, startup warning when enabled |
| 1Password | op://vault/item/field | ✅ via CLI | all | needs authenticated op CLI; read-only |
| Vault | vault://path#field | ✅ via CLI | all | needs authenticated vault CLI; read-only |
| Infisical | infisical://proj/env/KEY | ✅ via CLI | all | needs authenticated infisical CLI; read-only |
| Doppler | doppler://proj/config/KEY | ✅ via CLI | all | needs authenticated doppler CLI; read-only |
Details, per-backend setup, and how to register a plugin resolver: docs/backends.md.
| Threat | Mitigation |
|---|---|
| Model-context leakage | Structural: values never cross the tool layer; only names and masks |
| Command output echoing secrets | Mandatory redaction (exact + URL/Base64 variants + generic patterns), fail-closed |
Agent dumping env (env, printenv, /proc/*/environ, …) | Hard-blocked deny-list (configurable via security.dangerousCommands: extra patterns, or mode: warn to allow-with-audit) + shell_exec_blocked audit events |
Same-UID local process reading /proc/PID/environ | OS-level limit, cannot be fully fixed; per-command injection shrinks the window. Explicit boundary. |
| Long secret residency | Per-command injection by default; sessions have idle-TTL recycling + instant revoke |
| Misconfigured rule causing inject-everywhere | rule_validate / rule_list static warnings; mergeStrategy defaults to override; requireConfirm rules demand interactive approval (fail-closed without elicitation) |
| Config files leaking | Config stores refs only, never values; inline: disabled by default; store files forced to 0600 |
Full discussion: docs/design-spec.md §7. Report vulnerabilities privately per SECURITY.md.
~/.vaultshell/
config.yaml # main config rules.yaml # injection rules + secret refs (refs only, never values) secrets.enc # encrypted-file backend (0600) audit/ # JSONL audit, redacted
VAULTSHELL_HOME overrides the data directory (used by tests).
npm run build # tsc
npm test # vitest — redactor property tests, backend round-trips,
See CONTRIBUTING.md — including the security red lines every PR mus
ตัดมาแค่ช่วงต้น อ่านต่อใน repo