
Kakunin
io.github.nqzai由 GitHub 帳號 nqzai 發布v0.2.3更新於 Oct 24, 2026
X.509 identity, risk scoring, and audit logging for AI agents. MiCA + EU AI Act compliant.
概覽
Kakunin 是本地 MCP 伺服器,讓 AI 代理核驗自身的 X.509 身分與權限範圍、查詢風險評分,並將事件附加到稽核日誌。
- 可以做什麼
- 核驗代理是否獲授權執行特定動作、場所與金額,檢查憑證狀態、允許的動作、金額上限與撤銷狀態,並回傳是否允許及原因。查詢代理近 30 天的滾動風險評分、風險等級、漂移趨勢與建議。將行為事件附加到代理的不可竄改稽核日誌,回傳風險評分與交易 ID,高分事件會觸發憑證撤銷檢查。
- 適用情境
- 適用於在 Kakunin 簽發身分下運作的代理,在執行動作前自查權限範圍、監控自身風險狀況,或為 MiCA 與歐盟 AI 法案等法規要求記錄可稽核事件。
- 執行需求
- 透過 npx 以 npm 套件形式在本機執行,需要 Node.js 18 或更新版本。需要 Kakunin 儀表板提供的 API 金鑰(環境變數 KAKUNIN_API_KEY)與代理 ID(環境變數 KAKUNIN_AGENT_ID)。選用環境變數 KAKUNIN_BASE_URL 可覆寫 API 位址。需要能連線至 Kakunin API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Kakunin,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@kakunin/mcp — MCP server for AI agent identity & compliance
[OpenSSF Scorecard] [kakunin-mcp MCP server]
[kakunin-mcp MCP server]Model Context Protocol server for the Kakunin AI agent compliance API. Lets AI agents self-verify scope, check their own risk score, and log behavioral events — all from within Claude, Cursor, or any MCP-compatible runtime.
Tools
verify_agent_scope
Check whether this agent is authorised to perform an action before executing it. Verifies the active X.509 certificate, permitted_actions scope, financial limits, and revocation status.
Returns { allowed: true|false, reason, certificate_status, permitted_actions }.
check_risk_score
Retrieve the agent's rolling 30-day risk score, band (low/medium/high), drift trend, and actionable guidance. No input required.
audit_log_append
Append a behavioral event to the agent's immutable audit log. Returns risk score + transaction ID. Events scoring ≥ 0.85 auto-trigger a certificate revocation check.
Setup
Prerequisites: Node ≥ 18, Kakunin API key + Agent ID from kakunin.ai/dashboard.
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Environment variables
Sandbox mode
Use a kak_test_... key for development — hits the sandbox CA, no cost, 100 free certs/day.
Full docs at docs.kakunin.ai.
Contributors
Thanks to everyone who contributes (emoji key) — code and non-code alike:
Contributions of any kind are welcome — this project follows the all-contributors spec.
來源:README.md,提交 473b117
工具
0版本歷史
1- v0.2.3最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分