Securecode

io.github.juanisidoro由 GitHub 帳號 juanisidoro 發布v0.15.2更新於 Oct 24, 2026

Secrets vault for Claude Code with audit logs, access rules, and AES-256 encryption.

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

本機 MCP 伺服器,讓 Claude Code 使用 SecureCode 加密保險庫中的密鑰,而不在對話中曝光密鑰值。

可以做什麼
  • 初始化保險庫並匯入密鑰:引導式設定、透過安全網頁視窗匯入 .env、匯出為 .env 或 CSV
  • 建立、讀取、更新、刪除與續期密鑰,並依標籤與到期狀態列出密鑰
  • 管理存取工作階段:喚醒限定範圍的工作階段、查看剩餘時間、鎖定工作階段或清除磁碟上注入的檔案
  • 檢視生效的存取規則、執行安裝後安全性檢查,並查詢方案、用量與伺服器版本
適用情境
當助理需要專案的 API 金鑰、權杖或密碼,但你不希望原始值出現在對話中時適用。適合希望在自己機器上透過 Claude Code 取得可稽核、受規則約束的密鑰存取權的開發者。
執行需求
透過 stdio 在本機執行,通常使用 npx,需要 Node.js 18 或更新版本。需要 SecureCodeHQ 帳號(免費額度:50 個密鑰、每月 1 萬次存取),每台機器首次使用時需進行裝置核准。未宣告任何環境變數或標頭。
安裝前請注意
此伺服器處理真實憑證:API 金鑰、權杖與密碼。當 reveal 設為 true 時,密鑰值會回傳給 AI,除非必要請使用注入模式。密鑰值會寫入本機檔案,並在 sleep、byebye 或程序結束時刪除。存取會記錄 AI 模型、IP、機器識別與時間戳記,規則還可寄送存取通知信。建立、更新、刪除與匯出密鑰會變更已儲存的資料。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Securecode,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@securecode/mcp-server

MCP Server for SecureCodeHQ. Lets Claude Code access your secrets securely without ever seeing them.

[SecureCode MCP server]

Quick Start

bash
claude mcp add securecode -- npx -y @securecode/mcp-server

Then tell Claude Code:

Set up SecureCode in this project

The onboard tool walks you through account creation, secret import, and configuration. Takes about 2 minutes.

What It Does

Your secrets (API keys, tokens, passwords) are encrypted with AES-256 and stored in SecureCode. Claude Code accesses them via MCP, but the actual values never appear in the chat.

When Claude reads a secret, the value is written to a local file on your machine. The AI gets the file path but never sees the raw value. This is inject mode, the default.

Tools

ToolWhat it does
onboardGuided setup: signup, import, API key, config, SDK
get-secretGet a secret (injected to file by default, reveal: true to show to AI)
list-secretsList all secrets with tags and expiry status
create-secretCreate a new secret
update-secretUpdate value, description, or tags
delete-secretDelete a secret
renew-secretRenew expired secrets or change TTL
import-envImport .env via secure web window (values never pass through AI)
export-envExport secrets as .env or CSV
get-statusCheck plan, usage, and MCP server version
wake-sessionUnlock session with optional scope and auto-sleep timer
sleep-sessionLock session and clean injected files
session-statusCheck session state and time remaining
byebyeLock session + clean all secrets from disk
get-active-rulesList active MCP access rules (read-only)
security-checkPost-setup security hardening checks
helpDocs: tools, SDK, sessions, rules, troubleshooting

MCP Access Rules

Control how AI agents access your secrets with tag-based policies. Created from the dashboard, enforced server-side.

ActionEffect
Block AlwaysSecret only accessible from the dashboard
Require ConfirmationAgent must acknowledge before accessing
Require SessionRequires active session (wake-session)
Block ModelsOnly allows specific AI models
NotifySends email on access (non-blocking)

Session Lock

You: "Wake my session for acme staging"Claude: Session unlocked. Only acme/staging secrets accessible.
You: "byebye"Claude: Session locked & secrets cleaned from disk.

Sessions auto-sleep after configurable inactivity (default: 2 hours).

How It Works

  • Secret values are written to a local file, the AI never sees them (inject mode)
  • Explicit reveal: true returns value to AI (audited)
  • Injected files are removed on sleep, byebye, or process exit
  • Multiple Claude Code instances don't collide (hash based on API key + PID)
  • Encrypted with AES-256-GCM using envelope encryption (Cloud KMS)
  • Every access is logged with AI model, IP, machine identity, and timestamp
  • Runs locally via stdio transport, secrets never pass through third parties
  • Device approval required on first use from each machine

SDK

The companion SDK lets your app load secrets at runtime:

bash
npm install @securecode/sdk
typescript
import { loadEnv } from '@securecode/sdk';await loadEnv(); // all secrets loaded into process.env

SDK on npm

Links

Requirements

  • Node.js >= 18
  • A SecureCodeHQ account (free tier: 50 secrets, 10K accesses/month)

License

MIT

來源:README.md,提交 0fe1cc1

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.15.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分