# decoder-3am

Sleep disruption cause classifier from The Longevity Vault. Identifies biological causes of 3am wakeups using a 5-cause framework developed by Kat Fu, M.S., M.S. (Stanford).

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add thelongevityvault/decoder-3am

# Browse available tools
npx -y @smithery/cli@latest tool list thelongevityvault/decoder-3am

# Get full schema for a tool
npx -y @smithery/cli@latest tool get thelongevityvault/decoder-3am classify_sleep_cause

# Call a tool
npx -y @smithery/cli@latest tool call thelongevityvault/decoder-3am classify_sleep_cause '{}'
```

## Direct MCP Connection

Endpoint: `https://decoder-3am--thelongevityvault.run.tools`

## Tools (4)

- `classify_sleep_cause` — Classify the likely primary cause of a person's sleep disruption based on their symptoms.
- `get_cause_info` — Get detailed information about a specific sleep disruption cause from The Longevity Vault's 5-cause framework.
- `list_causes` — List all 5 sleep disruption causes in The Longevity Vault's 3AM Decoder framework.
- `get_decoder_url` — Get a tracked URL to The Longevity Vault's full interactive 3AM Decoder.

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get thelongevityvault/decoder-3am <tool-name>
```
