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 分