How hareeshwar-n-k/lexaflow-alexa-plus-mcp works
LexaFlow is a stateful household assistant: a browser-based Alexa+ simulator sends requests to an HTTP server, which uses an agent runtime and MCP tools to coordinate memory, commerce, smart-home, and media capabilities. Tool services persist household state and produce structured results for the simulator. The README documents the fallback and optional Bedrock paths; sampled excerpts do not expose every server route or UI request, so those links use README evidence.
Main entry points: tools.js MCP tool dispatch · store.js Persistent household state · server.js HTTP API server · bedrock-agent.js Agent runtime
Components 16
Alexa+ experience
- Echo Show simulator
public/app.js
Agent and MCP runtime
- HTTP API server
src/server.js - Agent runtime
src/bedrock-agent.js - MCP endpoint
src/mcp-server.js - MCP tool dispatch
src/tools.js
Household services
- Household memory
src/memory-service.js - Cart and checkout
src/commerce-service.js - Product and recipe catalog
src/catalog.js - Smart-home scenes
src/smarthome-service.js - Multimodal cards
src/media-service.js
State and telemetry
- Persistent household state
src/store.js - Initial household data
src/seed.js - Event and telemetry stream
src/store.js
Other components
- Household user
- Amazon Bedrock
- External MCP client
Connections 20
- Household user → Echo Show simulator: interacts with
README.md - Echo Show simulator → HTTP API server: sends requests
README.md - HTTP API server → Agent runtime: invokes agent
README.md - Agent runtime → MCP tool dispatch: calls tools
src/bedrock-agent.js - HTTP API server → MCP endpoint: mounts endpoint
src/server.js - External MCP client → MCP endpoint: sends JSON-RPC
README.md - MCP endpoint → MCP tool dispatch: dispatches tools
src/mcp-server.js - MCP tool dispatch → Household memory: calls memory
src/tools.js - MCP tool dispatch → Cart and checkout: calls commerce
src/tools.js - MCP tool dispatch → Smart-home scenes: calls scenes
src/tools.js - MCP tool dispatch → Multimodal cards: renders cards
src/tools.js - Cart and checkout → Product and recipe catalog: reads products
src/commerce-service.js - Cart and checkout → Persistent household state: reads and updates
src/commerce-service.js - Household memory → Persistent household state: reads and updates
src/memory-service.js - Smart-home scenes → Persistent household state: reads and updates
src/smarthome-service.js - Multimodal cards → Persistent household state: reads state
src/media-service.js - Persistent household state → Initial household data: initializes from
src/store.js - Initial household data → Product and recipe catalog: builds seed cart
src/seed.js - Agent runtime → Amazon Bedrock: plans with
README.md - HTTP API server → Event and telemetry stream: broadcasts events
src/server.js