
Humsana Mcp
io.github.sriramnatrajhenPublished by GitHub account sriramnatrajhenv1.1.3Updated Oct 24, 2026
Detect developer stress, focus, fatigue from typing. Block dangerous commands when tired.
Overview
A local MCP server that reads developer stress, focus and fatigue signals and gates shell commands and AI file rewrites behind safety interlocks.
- What you can do
- Read the developer's current stress, focus and fatigue levels from a local daemon's behavioral data and check whether a given shell command would be blocked before running it. Execute shell commands through a safety interlock that warns or blocks dangerous commands when fatigue is high. Write files with protection against large AI rewrites, warning or blocking deletions above configured line thresholds and saving blocked writes for review. Log safety overrides to a local audit file and optionally notify a webhook.
- When to use it
- Useful for developers who want a guardrail against running destructive commands or accepting large AI-generated rewrites while tired, especially in AI-assisted coding sessions on a desktop machine.
- Requirements
- Runs as a local stdio process started by the desktop client (Node.js for the npm package). Requires the separate Humsana daemon (installed via pip) to be running in a terminal. Configuration lives in a local config file; no API keys or environment variables are declared.
Installation
In SourceWeft
- Open Humsana Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
Source: README.md at commit 58003d1
Tools
0Version history
1- v1.1.3LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.