Lumi, a glowing stone with a happy face
How Lumi works
The AI chooses what to do. Lumi decides what is true.
Click any box to look inside

Agent Sim

MCP host · stands in for Alexa+

① tools/call
② tool result

Lumi MCP Server

rules, content and memory · no LLM inside

How they talk

What is MCP?

MCP (Model Context Protocol) is a shared language that lets an AI assistant, like Alexa+, use other apps. Lumi speaks it, so any assistant that speaks MCP can use Lumi.

MCP host
Alexa+, or our Agent Sim

Has the AI, the voice and the screen. Decides what to ask Lumi.

JSON-RPC 2.0
Streamable HTTP · /mcp
MCP server
Lumi · spec 2025-11-25

Has the activities, the rules and the memory. Decides what happens.

1 · Say hello

initialize

The assistant connects. Lumi explains how it should be used, and its safety rules.

2 · What can you do?

tools/list

Lumi lists what it can do: trivia, stretches, reading, family photos and more.

3 · Please do this

tools/call

The assistant asks for one thing. Lumi checks the request, does it, and answers.

How they talk

What Lumi sends back

Every answer from Lumi has three parts. The AI gets facts, so it does not have to make anything up.

Facts for the AI

structuredContent

What is on the screen, what you can do next, and what Lumi remembers about you.

The right answer to a question is not included, so the AI cannot give it away.

Lumi's exact words

_meta.speak

What Lumi says, read out word for word. Bible verses and Lumi's warm voice reach you unchanged.

The AI may add only a short reply after.

What to show

_meta.ui.resourceUri

Which screen to draw. Devices with a screen show it; on a speaker without one, Lumi just talks.

Every input is validated against its JSON Schema first. Failures come back as isError: true, never as a guess.
How they talk

One turn, step by step

You
Agent Sim
AI
Lumi
1. "Let's play trivia" 2. your words + tools/list + instructions 3. call trivia_tool 4. tools/call trivia_tool · JSON-RPC over HTTPS 5. Lumi decides picks a new question 6. result: structuredContent + _meta.speak + _meta.ui 7. Lumi speaks, the question appears 8. you tap an answer 9. app-only trivia_screen_tool: Lumi checks the answer (no AI)
Agent Sim

Listens & speaks

You talk to Lumi in the browser, just like talking to an Echo.

Microphoneknows when you start and stop
Speech-to-textDeepgram nova-3 or OpenAI
AI agentcalls Lumi's MCP tools
Text-to-speechDeepgram Aura or ElevenLabs, streamed
Speakeryou hear Lumi

Lumi's words, exactly

_meta.speak

Read out word for word, the moment the tool result arrives.

Talk over Lumi

barge-in

Start speaking and Lumi stops to listen, like a real conversation.

No repeats

If the AI tries to say Lumi's words a second time, they are skipped.

Agent Sim

AI agent

The AI understands what you mean and asks Lumi for the right thing. It never decides what is true: Lumi does.

What you said

Server instructions from initialize

Tool list from tools/list

Last tool results: what is on screen

System prompt from Langfuse

LLM

Gemini or OpenAI, through the Vercel AI SDK.
On an Echo, Alexa+ itself.

One tools/call

e.g. trivia_tool, with the visitor id in X-User-Id

A short reply

after Lumi has spoken

Every turn is traced in Langfuse, tagged with the access key used: access:internal or access:judges.
Agent Sim

Shows the screen

Lumi's screens are an MCP App: a ui:// resource that Lumi serves and the host renders in a sandboxed iframe.

Tool resultpoints to the screen in _meta.ui
Lumi's widgetui:// resource, via resources/read
Sandboxed iframekept apart from the host page
Your screenquestions, photos, glowing Lumi

Taps go straight to Lumi visibility: ["app"]

A tap or a finished timer becomes a tools/call to an app-only tool, sent over postMessage. The AI never sees these tools, so Lumi checks the tap, nobody guesses.

Lumi MCP Server

MCP Tools

Nine tools the AI can call, one per intent. Six more are app-only: only Lumi's screen can call them.

Welcome onboarding_tool

first hello, then home with your name

Talk talk_tool

a friendly chat, stories, check-ins

Trivia trivia_tool

quiz rounds on many topics

This or That thisorthat_tool

sort words into two groups

Stretch move_tool

gentle moves, stops if it hurts

Reading reflect_tool

a Psalm read aloud

Family moments moments_tool

photos and notes from family

Memory memory_tool

what Lumi remembers about you

Settings setup_tool

change settings by voice, link your phone

App-only

Called by taps and timers on the screen. Hidden from the AI with visibility: ["app"].

trivia_screen_tool
thisorthat_screen_tool
move_timer_tool
reflect_timer_tool
moments_timer_tool
nav_back_tool

Every input has a JSON Schema and is validated before the tool acts. Failures return isError: true.
Lumi MCP Server

Rules

The AI chooses. Lumi decides. Anything that has to be right is decided by Lumi, never by the AI.

HomeLumi greets you
Trivia
This or That
Stretch
Reading
Family
Talk
Goodbyesee you soon

State machine

Lumi always knows which screen you are on and what can come next. "Go back" and "take me home" work anywhere.

Lumi checks answers

The right answers stay with Lumi. The AI cannot give them away or mark you wrong.

Safety first

Say something hurts and the stretch stops at once. Next time, Lumi asks how you feel first.

Lumi MCP Server

Content

Everything Lumi says and plays comes with Lumi itself. Nothing is looked up online during a chat, so it is quick and always the same.

Trivia questions

Many topics, from music to faith. No repeats until you have heard them all.

Psalms

Read from the World English Bible, which is free for everyone to use.

Stretches

A short, gentle routine, from marching in place to calf stretches.

Talk

Things to chat about, and short stories Lumi can tell.

This or That

Fun sorting puzzles: movies, places, inventions, food.

Bible verses are read from checked text, never made up by the AI.
Lumi MCP Server

Memory

Lumi knows who it is talking to, and remembers them next time.

Who is this?X-User-Id or a bearer token
SHA-256
One lumi_user_idonly the hash is stored, never the raw id
remembers
· your name
· what you like
· your streaks
· what you did last
· how far you read
· how you felt

Right now · Redis

What you are doing: the screen, the game, the timer. Still there after a tea break.

For good · Postgres

Your memories, your family and their photos, kept for next time.

Storage

Where it is all kept

Two stores: a database for what lasts (Postgres), and a quick store for what is happening right now (Redis).

People

lumi_users

who you are, and how Lumi recognizes you

Memories

lumi_memories

what you told Lumi, what you did, how far you read

Family

lumi_circle_members

who is in your circle, and who may send you things

Moments

lumi_moments

photos and notes from your family

Right now

Redis

the conversation in progress, with a sliding expiry

Codes and tokens are stored only as SHA-256 hashes. Prisma migrations run on boot.
Phone app

Phone app

A simple website for your phone, at settings.lumiwithyou.com. It does two things.

For youchange Lumi's settings from your phone
  1. Say "Link my app" to Lumi.

  2. Lumi shows a short code and a QR code on the screen.

  3. Scan it with your phone camera, or type the code.

  4. Done. Change your name, turn on easier mode, or choose what Lumi may learn about you.

For your familysend you photos and notes
  1. You invite a family member from the app.

  2. They open the invite on their phone and join.

  3. You approve them. Only people you approve can send you things.

  4. They send a photo or a note. Next time you talk, Lumi shares it with you.

The app holds no data and no rules: it proxies /api/lumi/* to the server's /app/api/*, with the same validation as the tools.
Coming to Echo

On a real Echo

Alexa+ takes the Agent Sim's place. Lumi does not change: it already speaks the same language, MCP.

Youtalk or tap
Echo devicemicrophone, speaker, screen
Alexa+the AI, in place of the Sim
same MCP calls
Lumiexactly the same

Publish to Alexa

alexa-ai deploy

Lumi is added to Alexa+ as an add-on, and Alexa+ learns what Lumi can do.

Sign in with Amazon

account linking · LWA

So Lumi knows it is you, and your memories follow you to any Echo.

Today

The Agent Sim plays the Alexa+ part, so anyone can try Lumi in a browser.