
SafeWeave
dev.safeweave由 safeweave.dev 發布官方發布者v0.7.5更新於 Oct 27, 2026
Security scanner for AI-written code: SAST, secrets, dependencies, IaC, containers and DAST.
概覽
SafeWeave 是針對 AI 撰寫程式碼的安全掃描器,讓助理掃描專案中的漏洞、外洩密鑰、風險相依套件、IaC 與容器問題,並在同一輪對話中修正。
- 可以做什麼
- 掃描原始碼中的 SQL 注入、XSS、SSRF、路徑穿越與不安全加密等漏洞
- 偵測原始碼中硬編碼的密鑰、API key、權杖與私鑰
- 檢查 npm、pip、Go 與 Cargo 相依套件的已知 CVE 與高風險授權
- 掃描 Terraform、Dockerfile、Kubernetes 設定、容器映像與 API 安全態勢
- 套用 standard、hardened、owasp、soc2、pci-dss、hipaa 等合規設定檔
- 在付費雲端方案下對執行中的應用程式進行 DAST 執行期掃描
- 適用情境
- 適合在提交、推送或建立 PR 之前,讓助理檢查剛寫好的程式碼並當場修正問題;也適合在支援 MCP 的編輯器中定期檢查相依套件、密鑰與基礎設施設定。
- 執行需求
- 可作為遠端端點使用,也可透過 npx 執行本機 npm 套件 safeweave-mcp,或以 Docker 搭配 SSE 執行。宣告需要 OAuth;SAFEWEAVE_LICENSE_KEY 為選用(無金鑰為 10 次試用,免費帳號可解鎖 7 個本機掃描器,付費方案提供 DAST 與託管掃描)。首次使用會下載掃描器二進位檔,需要網路連線;支援 macOS、Linux 與 Windows x64。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 SafeWeave,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/dev.safeweave%2Fsafeweave/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"safeweave": {
"type": "http",
"url": "https://mcp.safeweave.dev/mcp"
}
}
}README
SafeWeave
Security scanner for AI-written code. SafeWeave runs inside your AI editor over MCP (Claude Code, Cursor, VS Code, Windsurf) and checks your code for vulnerabilities, leaked secrets, risky dependencies, IaC and container issues, so your assistant can fix findings in the same turn.
- npm:
safeweave-mcp - Official MCP Registry:
dev.safeweave/safeweave - Website: safeweave.dev · try a scan without signing up at safeweave.dev/scan
This repository is the open-core part of SafeWeave: the scanner engines (packages/scanners), the scan gateway (packages/gateway), shared types (packages/common), Docker files and the Claude Code skill. The MCP server itself ships on npm.
Quick Start
Run one command. It downloads the scanners and configures every editor it finds:
Or add it to your editor's MCP config yourself:
The key is optional. Without one you get a 10-scan trial (SAST, secrets and dependencies). A free account at safeweave.dev/signup unlocks unlimited local scans with 7 scanners.
Plans
See safeweave.dev/pricing for details.
Alternative: Docker
If you prefer running via Docker:
How Scanner Binaries Work
SafeWeave automatically downloads and manages the scanner binaries it needs on first use.
- Binaries are resolved in order: system PATH →
~/.safeweave/bin/cache → auto-download - If you already have
gitleaksortrivyinstalled via Homebrew/apt, those are used (never shadowed) - For SAST, system
semgrepis preferred; if not found,opengrep(a standalone Semgrep-compatible fork) is downloaded — no Python required - Downloads happen in the background at startup — the server is ready immediately
- Versions are pinned and updated with each SafeWeave release
- If a download fails (no internet), that scanner is skipped gracefully
Supported platforms: macOS (arm64, x64), Linux (arm64, x64), Windows (x64)
Cache location:
To force a re-download: rm -rf ~/.safeweave/bin ~/.safeweave/meta
What's Included
MCP Integration
Works with any MCP-compatible editor — Cursor, Claude Code, VS Code, Windsurf, and more.
Once configured (see Quick Start above), ask your AI:
- "Scan this project for security vulnerabilities"
- "Check my dependencies for CVEs"
- "Scan for hardcoded secrets"
- "Run an IaC misconfiguration scan"
If running via Docker, use the SSE transport instead:
HTTP API
Health Check
Run a Scan
Scan Specific Scanners
Compliance Profiles
Built-in profiles: standard, hardened, owasp, soc2, pci-dss, hipaa
Set via MCP set_profile tool or create a custom .safeweave/profile.yaml in your project.
Configuration
Environment Variables
Claude Code Skill: Auto-Scan Before Push
SafeWeave includes a Claude Code skill that automatically scans your code before every git commit, git push, or PR creation.
Install the skill
Copy the skill to your Claude Code skills directory:
Or clone and copy:
What happens after install
Once installed, Claude Code automatically runs a SafeWeave scan whenever you say "commit", "push", "ship it", or "create a PR":
Prerequisites
SafeWeave MCP server must be configured. Run npx safeweave-mcp to set it up automatically.
Verify
Start a new Claude Code session and ask it to commit code. You should see a SafeWeave scan run before the git operation.
License
MIT. See LICENSE.
來源:README.md,提交 8cb96a9
工具
0版本歷史
2- v0.7.5最新Oct 20, 2026
- v0.7.4Oct 19, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分