Skip to main content
Glama
Alexa+ Enterprise Hub

Alexa+ Enterprise Hub

by Aqillz
README.md
# Alexa+ Enterprise Hub

An inventory dashboard and local Model Context Protocol (MCP) server for small shops and cafés. The project started as an Alexa+ track entry for the Amazon Developer Hackathon.

[Live inventory demo](https://aqillz.github.io/alexa-enterprise-hub/) · [How it works](ARCHITECTURE.md) · [Deployment and maintenance](DEPLOYMENT.md) · [License](LICENSE)

## Try the demo

1. Check the **Stockout forecast** for the items with the fewest days of supply.
2. Run **$150 budget** to see which low-stock items fit in the budget.
3. In **Stock ledger**, filter for low stock, add a fictional item, or record a restock. Download the current ledger with **Export CSV**.
4. Select **Reset demo** to return to the original sample inventory.

The public demo starts with ten fictional products. It runs in the browser and keeps changes in memory for the current tab. A reload restores the sample. The app uses no API keys, external AI services, accounts, analytics, or persistent browser storage. GitHub Pages serves the static files. [Demo guide](docs/README.md)

## Run the local dashboard and MCP server

With Python 3.11 or later, run from the repository root. Windows users can run these commands in PowerShell without activating the virtual environment.

```powershell
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
.\.venv\Scripts\python.exe server.py
```

On macOS or Linux, use the same commands with `.venv/bin/python` in place of `.\.venv\Scripts\python.exe`.

Open `http://127.0.0.1:8000`. The local dashboard saves changes to SQLite. On first startup it populates `inventory.db` from `inventory_seed.json`. Set `INVENTORY_DB` to a different path to keep a separate database, using an existing parent directory. A local MCP client can connect over Streamable HTTP at `http://127.0.0.1:8000/mcp`. [MCP client setup and tool reference](ARCHITECTURE.md)

### Preview the public demo locally

```sh
python -m http.server 8080 --bind 127.0.0.1 --directory docs
```

Open `http://127.0.0.1:8080`. Serving HTTP resolves the JavaScript modules and matches how GitHub Pages serves the demo.

## Repository layout

| Path | Purpose |
| --- | --- |
| `docs/` | GitHub Pages source, browser tool logic, and fictional demo data |
| `server.py` | FastAPI dashboard, SQLite storage, and MCP endpoint |
| `inventory_seed.json` | Initial local inventory |
| `Dockerfile` | Container setup for the local dashboard and MCP server |
| `ARCHITECTURE.md` | Inventory rules, trade-offs, and MCP tool reference |
| `DEPLOYMENT.md` | Pages configuration, verification, local Docker setup, and privacy |

The simulator maps documented commands to inventory tools. Stock forecasts use fixed daily usage. Purchase orders are drafts and restock actions only update the selected inventory ledger. The project is an independent Alexa+ interaction simulation.