GENIUS
Provides a voice-reactive MCP server for Amazon Alexa+ and Echo devices, enabling them to access the home graph, diagnose acoustic incidents, and propose proactive maintenance actions.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
GENIUS — Graph Engine for Networked Infrastructure Understanding & Service
The Home World Model for the Alexa+ Era
Submitted to the Amazon Developer Hackathon 2026 (Primary Track: Alexa+ | Mini-Challenges: AWS Builder & Open Source)
Live AWS Simulator · beepdb Open Source Library · Devpost Submission
Executive Summary: What Is Real vs. Simulated
GENIUS (Graph Engine for Networked Infrastructure Understanding & Service) is a self-hosted Model Context Protocol (MCP) server (spec 2025-11-25, Streamable HTTP transport at POST /mcp) paired with a browser-based Alexa+ Preview Device Simulator (client/app.js).
What Runs Live in Code
Spec-Compliant MCP Streamable HTTP Client & Server:
client/app.jsconnects directly toPOST /mcpusing JSON-RPC 2.0 (initialize$\rightarrow$Mcp-Session-Idheader $\rightarrow$notifications/initialized$\rightarrow$tools/list$\rightarrow$tools/call) and renders UI cards dynamically from the MCP server's JSON responses.12 Registered MCP Tools: Voice-native chirp diagnosis (
diagnose_from_description), companion-sensor DSP feature extraction (hear_sound+diagnose), persistent SQLite Home Graph (list_entities,get_home_health,register_entity,record_incident), strictpropose_action$\rightarrow$confirm_actiongate, warranty ledger (check_warranty,file_warranty_claim), and live Amazon Bedrock Nova Pro (amazon.nova-pro-v1:0) 5-year TCO deliberation (deliberate_repair).Deterministic Signal Processing & Physics: Hilbert transform amplitude envelope, Hann-windowed FFT, two-parameter Weibull hazard reliability ($R(t)$), and lumped-capacitance building heat-loss simulation ($dT/dt$) with 5,000-run Monte Carlo uncertainty quantification.
What Is Simulated (Per Alexa+ Track Guidelines)
Because the Alexa+ Developer Preview is gated and does not stream raw room audio to third-party MCP servers, the primary Alexa+ interaction path is conversational (
diagnose_from_description), whilehear_soundrepresents a companion sensor intake (e.g., mobile app or auxiliary edge microphone).Package delivery (
POST /simulate/delivery), weather drops (POST /simulate/freeze), and order fulfillment references (AMZN-2026-94819-...) are simulated state triggers used to demonstrate multi-day lifecycles inside a 2-minute evaluation window.When the static S3 simulator URL is opened without a local MCP server running, it explicitly displays an amber
Offline Replay (No MCP Server Connected)badge.
Related MCP server: NightWatch
1. Architecture & The 12 MCP Tools
+----------------------------------+
| ALEXA+ PREVIEW SIMULATOR |
| (Browser MCP Client app.js) |
+----------------+-----------------+
|
| 1. MCP Streamable HTTP (2025-11-25)
| POST /mcp (JSON-RPC 2.0 + Mcp-Session-Id)
| 2. SSE Proactive Push (/events)
v
+--------------------------------------+---------------------------------------+
| GENIUS MCP SERVER |
| |
| +---------------------+ +---------------------+ +------------------+ |
| | 12 MCP Tools | | Acoustic Pipeline | | SQLite Graph | |
| | - hear_sound | | - Hilbert Envelope | | - Entities | |
| | - diagnose | | - FFT Peak (3368Hz) | | - Incidents | |
| | - diagnose_from_... | | - beepdb Matcher | | - Warranties | |
| | - list_entities | | - data.fill(0.0) | | - Proposals | |
| | - get_home_health | +---------------------+ | - Provenance | |
| | - propose_action | +------------------+ |
| | - confirm_action | +---------------------+ |
| | - record_incident | | Amazon Bedrock | +------------------+ |
| | - register_entity | | Nova Pro Engine | | Amazon Polly | |
| | - check_warranty | | - TCO Deliberation | | Neural TTS | |
| | - file_warranty_... | | - Tag OCR Vision | | /api/polly/speak | |
| | - deliberate_repair | +---------------------+ +------------------+ |
| +---------------------+ |
+------------------------------------------------------------------------------+# | Tool Name | Key Parameters | Function & Output |
1 |
|
| Companion sensor intake. Extracts Hilbert/FFT features in volatile RAM, zeroes buffer ( |
2 |
|
| Matches features against |
3 |
|
| Voice-native Alexa+ path: Matches spoken chirp cadence, burst count, and brand hints against |
4 |
|
| Queries the Home Graph hardware registry with verified provenance tags and Weibull reliability scores. |
5 |
| none | Computes composite 0–100 health score, healthy/aging/EOL counts, and MCP Apps card payload. |
6 |
|
| Strict architectural gate: Stages structured proposal in SQLite. Never mutates external state. |
7 |
|
| Authorization mutation gate. Marks proposal confirmed and returns dynamic order reference only after explicit user approval. |
8 |
|
| Appends anomaly record to the persistent SQLite Home Graph ledger. |
9 |
|
| Day 0 onboarding. Registers equipment specifications (or parses nameplate image via Bedrock Nova Pro) and seeds warranty policies. |
10 |
|
| Inspects policy coverage dates, active/expired status, and manufacturer replacement terms. |
11 |
|
| Assembles manufacturer replacement claim dossier for devices that fail within warranty. |
12 |
|
| AWS Builder: Invokes Amazon Bedrock Nova Pro ( |
2. Signal Processing, Reliability Priors & Thermal Physics
A. Acoustic Feature Extraction (audio/features.py & audio/ephemeral.py)
Analytic Signal Envelope (Hilbert Transform): Computes $A(t) = |s(t) + i \cdot \mathcal{H}{s(t)}|$ to measure continuous pulse width ($\text{ms}$) across oscillating $3\text{ kHz}+$ piezo square waves without zero-crossing dropouts.
Spectral Peak Extraction (Hann-Windowed FFT): Extracts dominant frequency $f_{\text{peak}}$ above $400\text{ Hz}$. Physical smoke detector piezo recordings (Bloofrzo CC0
#819808at $3,368.1\text{ Hz}$ and#819807at $3,122.3\text{ Hz}$ vs $3,200\text{ Hz}$ nominal manual spec) motivated our calibrated $\pm 350\text{ Hz}$ tolerance window inbeepdb.Zero Disk Persistence: Raw audio is never written to disk, logs, or SQLite (verified by
test_audio_never_persisted_to_disk_or_db), and in-memory PCM arrays are cleared best-effort viadata.fill(0.0).
B. Continuous Reliability Priors (graph/store.py)
Equipment lifecycle degradation is modeled using two-parameter Weibull priors:
$$R(t) = \exp\left(-\left(\frac{t}{\eta}\right)^\beta\right), \quad h(t) = \frac{\beta}{\eta} \left(\frac{t}{\eta}\right)^{\beta - 1}$$
CO Detectors: $\eta = 7.0\text{ yr}, \beta = 3.0$ (electrochemical electrolyte dry-out)
Smoke Detectors: $\eta = 10.0\text{ yr}, \beta = 2.5$ (optical chamber degradation)
HVAC Furnaces: $\eta = 15.0\text{ yr}, \beta = 2.2$ (heat exchanger thermal fatigue)
Water Heaters: $\eta = 10.0\text{ yr}, \beta = 2.0$ (sacrificial anode depletion)
C. Lumped-Capacitance Pipe Freeze Model (proactive/engine.py)
Before issuing freeze warnings, the Proactive Engine evaluates unheated pipe-cavity cooling ($Q_{\text{furnace}} = 0$):
$$T_{\text{zone}}(t) = T_{\text{out}} + \big(T_{\text{zone}}(0) - T_{\text{out}}\big) \cdot e^{-t / \tau_{\text{pipe}}}$$
Deterministic Trajectory ($\tau_{\text{pipe}} = 16.0\text{ h}$, $T_{\text{out}} = 24^\circ\text{F}$): Starting from $68^\circ\text{F}$ indoor setpoint, the pipe zone reaches $32^\circ\text{F}$ in $t = -16.0 \cdot \ln(8/44) = \mathbf{27.3\text{ hours}}$ (or $21.7\text{ hours}$ if the uninsulated cavity starts cooler at $55^\circ\text{F}$; whole-house envelope $\tau = 35\text{ h}$ reaches $32^\circ\text{F}$ in $59.7\text{ hours}$).
Conditioned Monte Carlo ($N = 5,000$, seed 42): Under $\tau_{\text{pipe}} \sim \text{Lognormal}(\ln(16), 0.3)$ and $T_{\text{out}} \sim \mathcal{N}(24^\circ\text{F}, 2.5^\circ\text{F})$, $P(T_{\text{pipe}} \le 32^\circ\text{F} \text{ within } 48\text{ h}) = \mathbf{94.1%}$ ($P_{10} = 18.7\text{ h}$, $P_{50} = 27.1\text{ h}$; sensitivity across alternative priors: $\tau = 24\text{ h} \rightarrow 66.0%$, $\tau = 35\text{ h} \rightarrow 24.6%$).
3. Transparent Benchmarks & Automated Test Suite (22/22 Passing)
Run python benchmarks/run_benchmarks.py (writes receipt to benchmarks/latest_benchmark_receipt.json) and pytest -v tests/ to reproduce all metrics:
Benchmark / Verification Gate | Measured Result | Honest Scope & Method |
20-Device Synthetic Cadence Suite | 95.0% (19/20) | Multi-burst synthetic WAV regression across all 20 |
Physical Smoke Piezos (Bloofrzo CC0) | 2/2 Calibrated | Real 1.0s single-chirp recordings ( |
Real Hardware Tone DSP Extraction | 4/4 Verified | Real PC POST beep, microwave beep, buzzer, and alarm recordings verified for accurate Hilbert pulse width and Hann FFT peak extraction. |
ESC-50 Domestic Noise Smoke Test | 6/6 Spec · 6/6 Peak |
|
Synthetic + ESC-50 Noise Bed | 90.0% (9/10) | 10 synthetic cadence clips mixed with real ESC-50 domestic room noise at +15 dB and +6 dB SNR. |
Local DSP + Scrub + SQLite Pipeline | 13.52 ms |
|
Automated Pytest Suite | 22/22 Passing | Includes |
pytest -v tests/
python benchmarks/run_benchmarks.py4. Quickstart & Cloud Deployment
Option 1: Local Python Environment (Full Live MCP Server + Simulator)
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
# Launch FastAPI + MCP Streamable HTTP Server
python -m uvicorn server.main:app --host 127.0.0.1 --port 8000Open http://127.0.0.1:8000/client/index.html. The simulator header will display a green Live MCP Session (...) · Spec 2025-11-25 badge confirming an active JSON-RPC 2.0 session over POST /mcp.
Option 2: Docker Compose
docker compose up --buildOption 3: Static AWS S3 Simulator Preview
URL: http://genius-simulator-115207986956.s3-website.eu-west-2.amazonaws.com
Displays
Offline Replay (No MCP Server Connected)until pointed at a running MCP server via the ⚙️ Server URL button.
5. Architectural Decision Records (ADRs)
ADR 001 (Proactive Push Transport): Uses Server-Sent Events (
/events) to push unprompted notifications to the simulator alongside a dormant MCP notification stub (proactive/transports/mcp_push.py).ADR 002 (Smart Home API Deferral): Defers legacy OAuth Smart Home skill linking in favor of self-hosted MCP Streamable HTTP (
2025-11-25).ADR 003 (Simulator-Only Demo Path): Because Alexa+ builder tooling is gated, the demo runs on the labeled "ALEXA+ PREVIEW DEVICE SIMULATOR" (
client/app.js), which acts as a real MCP Streamable HTTP client callingPOST /mcp. Echo hardware integration is not claimed.
6. Licensing & Attributions
Code: MIT License (both
geniusand standalonebeepdb).Data & Audio Corpus: CC-BY 4.0 and CC0 Public Domain. Full attributions in ATTRIBUTIONS.md.
This server cannot be deployed
Related MCP Connectors
Governed personal world model and memory for your AI agent. Pair once, connect over MCP.
Cross-vendor AI memory over MCP. One semantic store, readable and writeable from every MCP client.
An authenticated remote MCP server for user-owned devices and one-shot capability invocation.
Remote MCP server exposing SMI Aware tools, resources, and skills over Streamable HTTP.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables persistent household routine planning with interruption replanning, preserving completed progress and rejecting stale updates through MCP tools over Streamable HTTP.MIT
- AlicenseNot gradedqualityBmaintenanceEnables context-aware home safety monitoring by exposing tools to retrieve recent Ring events, household context, deterministic activity assessments, and alert explanations over MCP.183,610 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables turning spoken household issues into evidence-linked maintenance cases, deterministic diagnostic plans, quote comparisons, and owner-approved but unexecuted action proposals.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables hands-free, context-aware control of a smart home by exposing MCP tools for device control, routine orchestration with confirmation flows, object finding, scene description, recent event history, and daily briefings. It keeps a mock home-state model with SQLite event memory and includes a web simulator that acts as an MCP client.MIT