# humsana-mcp [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/sriramnatrajhen/humsana-mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/humsana-mcp

## Description
Detect developer stress, focus, fatigue from typing. Block dangerous commands when tired.

## Tools
Capabilities this server exposes over MCP:

- **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

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "humsana-mcp": {
    "command": "uvx",
    "args": ["humsana-daemon"]
  }
}
```

## Documentation

## What humsana-mcp MCP server does

The humsana-mcp MCP server adds fatigue-aware controls to AI-assisted development. It reads the current stress, focus, and fatigue levels collected by the Humsana daemon, then uses that state when evaluating shell commands and file changes.

The server covers two safety areas. Dangerous shell commands can produce warnings when the developer is fresh and can be blocked when fatigue exceeds the configured threshold. AI file rewrites are evaluated by the number of removed lines; larger deletions can warn or block when the user is tired. Blocked file writes are saved for later review rather than applied immediately.

The server is intended for local development workflows where an AI assistant can invoke terminal commands or modify project files.

## How it works

Humsana requires a separately installed daemon. The daemon is started with `humsana start` and records behavioral signals in the local Humsana directory. The MCP process then provides those signals and safety decisions to an MCP client such as Claude Desktop.

Execution begins in `dry_run` mode. In this mode, a command that passes the safety check is reported as if it would run, but it is not actually executed. Live execution can be enabled in the Humsana configuration by changing `execution_mode` to `live`. The same configuration controls fatigue and file-write thresholds.

When a safety rule blocks an operation, the documented override format is `OVERRIDE SAFETY PROTOCOL: [reason]`. Overrides are written to `~/.humsana/audit.json` and can also be sent to the configured webhook.

## Setup and configuration

Install the daemon with `pip install humsana-daemon`, then start it with `humsana start`. Install the MCP package globally with `npm install -g @humsana/mcp-server`. An MCP client must be configured to launch the server's `dist/index.js` through Node; the README provides a Claude Desktop configuration using the `mcpServers` entry named `humsana`.

Create `~/.humsana/config.yaml` to change defaults. Supported settings include `execution_mode`, `fatigue_threshold`, `write_warn_threshold`, `write_block_threshold`, `deny_patterns`, and `webhook_url`. Custom deny patterns can add commands such as cloud or container deletion operations to the safety rules.

## Tools and capabilities

The humsana-mcp MCP server exposes four tools:

- `get_user_state` returns current stress, focus, and fatigue levels.
- `check_dangerous_command` evaluates whether a command would be blocked.
- `safe_execute_command` runs shell commands through the safety interlock, subject to dry-run or live mode.
- `safe_write_file` writes files while applying protection against large AI rewrites.

The configured files include `signals.db` for behavioral data, `activity.json` for activity heartbeats, `config.yaml` for settings, and `audit.json` for safety events. Blocked AI writes are stored under `~/.humsana/pending_reviews/`.

## Limitations and notes

Commands do not execute while `execution_mode` remains `dry_run`, even when a safety check passes. The project describes its data handling as local and reports no network calls other than an optional notification webhook. The provided setup explicitly documents Claude Desktop, and the server requires a correct path to its built `dist/index.js` file.

_Full upstream README: https://allmcps.com/mcp/humsana-mcp/readme_

