Detect developer stress, focus, fatigue from typing. Block dangerous commands when tired.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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.
safe_execute_command)| Situation | Result |
|---|---|
You're fresh, running ls | β Runs normally |
You're fresh, running rm -rf | β οΈ Warning, allowed |
You're tired, running rm -rf | β BLOCKED β requires override |
safe_write_file)| Situation | Result |
|---|---|
| AI writes new file | β Allowed |
| AI rewrites 10 lines | β Allowed |
| You're tired + AI deletes 30+ lines | β οΈ Warning |
| You're tired + AI deletes 50+ lines | β BLOCKED β saved for review |
Keep this running in a terminal tab.
Create/edit ~/Library/Application Support/Claude/claude_desktop_config.json:
Quit (Cmd+Q) and reopen.
Ask Claude: "What's my current state?"
Humsana starts in dry-run mode for safety. Commands are simulated, not executed.
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."
Create ~/.humsana/config.yaml:
When blocked, say:
Example:
This is logged to ~/.humsana/audit.json and sent to your webhook.
| Tool | Purpose |
|---|---|
get_user_state | Get current stress, focus, fatigue levels |
check_dangerous_command | Check if a command would be blocked |
safe_execute_command | Execute shell commands with interlock |
safe_write_file | Write files with AI rewrite protection |
| Path | Purpose |
|---|---|
~/.humsana/signals.db | Behavioral data from daemon |
~/.humsana/config.yaml | Your configuration |
~/.humsana/activity.json | Activity heartbeats (for fatigue) |
~/.humsana/audit.json | Safety event log |
~/.humsana/pending_reviews/ | Blocked AI writes saved here |
π 100% Local.
Start the daemon in a terminal:
Check your mode:
If it says dry_run, change to live and restart Claude.
Verify your Claude Desktop config path:
~/Library/Application Support/Claude/claude_desktop_config.jsondist/index.js is correctMIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/humsana-mcp)<a href="https://allmcps.com/mcp/humsana-mcp"><img src="https://allmcps.com/api/badge/humsana-mcp?style=directory" alt="Humsana MCP on AllMCPs" /></a>