
Agent Security Scanner Mcp
io.github.sinewaveai由 GitHub 帳號 sinewaveai 發布v2.0.1更新於 Oct 24, 2026
Security layer for AI agents: blocks prompt injection, detects fake packages, scans vulnerabilities.
概覽
本機安全掃描器,用來檢查 AI 撰寫的程式碼、提示詞、MCP 伺服器與建議套件中的漏洞和注入風險。
- 可以做什麼
- 對專案、程式碼差異、單一檔案、提示詞或 MCP 伺服器執行規則式掃描,並給出附 A-F 評級的發現結果。工具家族涵蓋程式碼與儲存庫安全、MCP 與技能稽核、提示詞與動作安全、套件幻覺偵測、SBOM 產生與漏洞檢查,以及合規證據。選用的語意審查代理會呼叫 LLM 供應商找出情境相關問題。
- 適用情境
- 在信任 AI 代理產生或建議的程式碼、相依套件、提示詞或 MCP 工具之前使用,也適合在開啟拉取請求或加入新 MCP 伺服器之前執行。它是 npm audit 等工具的補充,而非替代品。
- 執行需求
- 以 npm 套件形式透過 stdio 在本機執行,需要 Node.js 與 npx。未宣告任何帳號、API 金鑰或環境變數。選用的語意審查代理需要你選擇的 LLM 供應商(例如某個 CLI 或 OpenAI),並會把程式碼傳送給該供應商。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Agent Security Scanner Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
agent-security-scanner-mcp
Security scanner for AI coding agents, MCP servers, prompts, and AI-suggested packages.
Run it before Claude Code, Cursor, Windsurf, Cline, OpenCode, or another agent trusts new code, tools, prompts, or dependencies.
Copy-Paste Start
Scan any repo and get an A-F agent security grade:
Install the scanner into your AI coding client:
Replace claude-code with cursor, claude-desktop, windsurf, cline, kilo-code, opencode, or cody.
Audit an MCP server before adding it to an agent:
Check AI-generated imports for package hallucinations:
What It Catches
Screenshots
Project Scan
MCP Server Audit
Package Hallucination Detection
Demos
Run a safe local demo that creates intentionally vulnerable fixtures, scans them, and cleans them up.
Expected demo shape:
Install In Your Agent
Then restart the client. Your agent can call the scanner as an MCP tool.
Agent Playbook
Paste this into an agent task when you want it to work safely:
Common Workflows
Before You Trust An Agent-Written PR
Before Installing An MCP Server
Before Adding A Dependency Suggested By AI
Add CI
Generate Share Copy From A Real Scan
CLI Reference
All scanner outputs support context-friendly verbosity:
MCP Tools For Agents
When installed as an MCP server, agents get these tool families:
Why Developers Install It
- One
npxcommand gives an A-F security grade for AI-written code. - MCP-specific checks catch risks that normal SAST tools miss.
- Package hallucination detection checks 4.3M+ package names across npm, PyPI, RubyGems, crates.io, pub.dev, CPAN, and raku.land.
- Output is compact by default so coding agents can read it without burning the context window.
- Works as a CLI, MCP server, GitHub Action workflow, Apify Actor, and semantic review agent.
- MIT licensed.
Semantic Code Review
cr-agent is bundled with the npm package for LLM-powered semantic review. It reads project intent, then looks for code that violates that intent.
Use it when rule-based scanning is not enough and the question is, "Does this code make sense for what this project is supposed to do?"
SBOM And Compliance Evidence
Useful before releases, SOC 2 evidence collection, vendor reviews, and AI-generated dependency changes.
Apify Actor
Run the scanner as an Apify Actor when you want a hosted API or scheduled scans:
Latest Release
v4.5.8 adds diff-scoped cr-agent semantic review, fixes nested repository diff lookups, and filters semantic findings to changed hunks so PR reviews stay focused on code that actually changed.
Detailed release history lives in CHANGELOG.md. The older README-embedded changelog is archived at archive/README_CHANGELOG_ARCHIVE.md.
FAQ
Is this only for MCP servers? No. It scans normal repos, diffs, prompts, actions, packages, SBOMs, MCP servers, and AI skills.
Does it send my source code anywhere?
Rule-based CLI and MCP scans are local. cr-agent uses the provider you choose for semantic review.
Is it a replacement for npm audit? No. It complements npm audit by catching AI-specific risks: hallucinated packages, prompt injection, MCP tool poisoning, unsafe agent actions, and vulnerable generated code.
What should I run first?
Run npx agent-security-scanner-mcp scan-project . --verbosity compact.
Links
License
MIT
來源:README.md,提交 ef3f20e
工具
0版本歷史
1- v2.0.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分