
Humsana Mcp
io.github.sriramnatrajhen由 GitHub 帳號 sriramnatrajhen 發布v1.1.3更新於 Oct 24, 2026
Detect developer stress, focus, fatigue from typing. Block dangerous commands when tired.
概覽
一個本機 MCP 伺服器,依打字行為讀取開發者的壓力、專注度與疲勞度,並對 shell 指令與 AI 檔案改寫加上安全聯鎖。
- 可以做什麼
- 從本機守護程序的行為資料讀取開發者目前的壓力、專注度與疲勞程度,並在執行前檢查某個 shell 指令是否會被攔截。透過安全聯鎖執行 shell 指令,疲勞度高時對危險指令提出警告或直接阻擋。寫入檔案時防止 AI 大規模改寫,刪除行數超過設定門檻時警告或阻擋,並將被阻擋的寫入保存待審。將安全覆寫記錄到本機稽核檔,並可選擇通知 webhook。
- 適用情境
- 適合希望在疲累時避免執行破壞性指令或接受 AI 大規模改寫的開發者,尤其是桌面端的 AI 輔助編碼情境。
- 執行需求
- 作為本機 stdio 程序由桌面用戶端啟動(npm 套件需要 Node.js)。需要另外安裝的 Humsana 守護程序(透過 pip 安裝)在終端機中執行。設定存放在本機設定檔;未宣告任何 API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Humsana Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@humsana/mcp-server
Cognitive Security for AI-assisted development.
🛡️ "The breathalyzer for your terminal."
Humsana prevents you from running dangerous commands or accepting large AI code rewrites when you're fatigued. Think of it as an industrial safety interlock, but for your brain.
What It Does
Command Protection (safe_execute_command)
AI Rewrite Protection (safe_write_file)
Quick Start
1. Install the Daemon
Keep this running in a terminal tab.
2. Install the MCP Server
3. Configure Claude Desktop
Create/edit ~/Library/Application Support/Claude/claude_desktop_config.json:
4. Restart Claude Desktop
Quit (Cmd+Q) and reopen.
5. Test It
Ask Claude: "What's my current state?"
Execution Modes
Humsana starts in dry-run mode for safety. Commands are simulated, not executed.
Dry-Run Mode (Default)
Switching to Live Mode
When you trust the system, enable real execution:
Step 1: Create/edit ~/.humsana/config.yaml:
Step 2: Restart Claude Desktop (Cmd+Q, reopen)
Step 3: Test with a safe command first:
You should see actual output instead of "WOULD have been executed."
Configuration Reference
Create ~/.humsana/config.yaml:
Override Protocol
When blocked, say:
Example:
This is logged to ~/.humsana/audit.json and sent to your webhook.
Tools Available
Files & Folders
Privacy
🔒 100% Local.
- All data stays on your machine
- No network calls (except optional webhook)
- No telemetry, no tracking
- Fully auditable open-source code
Troubleshooting
"Daemon not running" error
Start the daemon in a terminal:
Commands not executing
Check your mode:
If it says dry_run, change to live and restart Claude.
MCP not connecting
Verify your Claude Desktop config path:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json - Ensure the path to
dist/index.jsis correct
License
MIT
來源:README.md,提交 58003d1
工具
0版本歷史
1- v1.1.3最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。