What it is

Margaret is 78 and lives alone. Her daughter Alex and her son Sam help look after her from two different cities. Hearthkeeper is the one care plan they all share: medications and today's doses, appointments, who is doing what, a symptom journal, and a family feed. Margaret talks to the care agent by voice or text. The agent edits the plan through WebMCP, and the family's screens update.

Live: https://hearthkeeper.vercel.app · Code: https://github.com/chinesepowered/hearthkeeper

The moment it is built for

Margaret says: "I've been dizzy since I started the new blood pressure pill on Monday."

The agent reads the plan, logs the symptom, checks Amlodipine against her Metoprolol (an additive blood-pressure effect, dizziness on standing is a known early side effect), adds a note to the medication card, books a phone call with the pharmacist for tomorrow, gives Alex a concrete job tonight (blood pressure sitting and standing), and sends the family an urgent update. Switch to Viewing as Alex and it is all there: the alert at the top of the feed, the task in her list. She asks "did Mom take her morning pills?" and gets an answer from the live plan.

No forms. No phone tree. Mom just said how she felt.

Why this is a strong fit for WebMCP

Caregiving is coordination: a dozen small facts scattered across text threads, pill bottles and fridge notes. An agent can only help if it can act on the real plan, not a screenshot of it, and not a copy that drifts. Hearthkeeper exposes the plan as twelve structured tools registered with document.modelContext.registerTool:

get_care_plan, log_symptom, check_interactions, add_medication, update_medication, mark_dose_taken, add_appointment, reschedule_appointment, cancel_appointment, assign_task, complete_task, notify_family

Any WebMCP-capable agent, whether ChatGPT's in-app browser, Chrome with WebMCP enabled, or the built-in Gemini care agent, reads and updates exactly what the family sees. Tool descriptions carry the guardrails (the agent may move a dose time but never change a dose; dose changes come from the prescriber), and every write posts to the shared feed so nothing an agent does is invisible.

How it creates a better experience

  • For the parent: talk, don't navigate. Voice input, plain-language replies, and the agent takes the follow-up steps instead of handing back a to-do list.
  • For the family: one plan instead of a group chat. Every agent action lands in the feed with who it was sent to. Tasks are concrete and assigned. Perspective switching shows the same plan from each person's side.
  • For safety: the interaction check is a read-only tool with a small reference table, and the prompt escalates red-flag symptoms to emergency services rather than trying to be a doctor.

What people and agents can do together that was hard before

Before: Mom mentions dizziness on the phone, Alex googles it at work, Sam doesn't hear about it until Sunday, nobody calls the pharmacist. Now: Mom says it once, the agent does the coordination in seconds, and the family corrects or extends it on the same board. The human keeps judgment and relationships; the agent keeps the plan in sync.

How WebMCP is implemented

  • lib/webmcp.ts: tools are registered with document.modelContext.registerTool(..., { signal }) and unregistered via AbortController on unmount. Native calls from the browser agent and calls from the in-page agent share one execute path and one activity log.
  • lib/tools.ts: the twelve tools with JSON Schema inputs, natural-language descriptions and read-only / destructive annotations.
  • lib/care.ts: the shared store. The UI's checkboxes and the tools mutate the same state, so agent edits appear instantly for every viewer.
  • components/AgentPanel.tsx + app/api/agent/route.ts: a Gemini function-calling loop that discovers the registered tools and dispatches through WebMCP, with Web Speech API for voice in and out and a model fallback chain for free-tier limits.

Tested in Chrome 153 with chrome://flags/#enable-webmcp-testing (DevTools → Application → WebMCP lists all twelve tools) and with the in-page Gemini agent.

Demo data only. Not medical advice.

Stack

Next.js 16 · Tailwind 4 · Web Speech API · Gemini function calling · WebMCP · Vercel

Built With

Share this project:

Updates

Submission history