
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 分
请在仓库或注册中心条目中声明许可证。