# LovedOne Family MCP

> Authenticated Model Context Protocol for **one household** — senior tech support and Family Inbox coordination.
> Does not handle personal health data. There is a second server for providers (LovedOne Soft MCP). Do not mix keys.

## This server (family)

- Canonical: https://api.lovedone.app/mcp/v1
- Alias: https://inbox.lovedone.app/api/mcp
- Registry: app.lovedone/family-inbox 0.5.0
- Keys: https://inbox.lovedone.app/settings/mcp-keys (surface: family)
- Docs: https://docs.lovedone.app/mcp-family.html
- In-product: https://inbox.lovedone.app/agents
- Manifest: https://inbox.lovedone.app/agents.json

## The other server (providers)

- LovedOne Soft MCP: https://api.lovedone.app/mcp/vendor/v1
- Registry: app.lovedone/soft 0.2.1
- Docs: https://docs.lovedone.app/mcp-vendor.html
- In-product: https://soft.lovedone.app/agents
- A family key on the vendor URL returns HTTP 403 WRONG_SURFACE.

## Sandwich Pipe

HMAC ingest into sandwichpipe-vault. Not MCP. Not a dashboard.
https://docs.lovedone.app/pipe.html

## OAuth scopes

Public, requestable scopes advertised at inbox.lovedone.app/.well-known/oauth-authorization-server:

- `profile:read`: see name, email, and workspace membership
- `care_circle:read`: list loved ones and read Family Inbox messages and members
- `care_circle:write`: invite family, mint LovedOne Soft link codes, and send Family Inbox replies

Write tools require `care_circle:write`. A read-only token is denied with `insufficient_scope`. Viewers are still rejected. API keys skip the scope gate.

## Family tools

- `ping` (read): Smoke-test tool. Returns pong plus the authenticated caller's uid, tenant, and auth method. No side effects.
- `get_user_profile` (read, profile:read): Returns the signed-in user's LovedOne profile: uid, email, tenant type, and any linked family workspace.
- `list_loved_ones` (read, care_circle:read): Lists loved ones in the caller's family workspace: id, name, and Family Inbox address.
- `list_family_members` (read, care_circle:read): Lists people on the caller's family workspace (role, relationship, invite status). Emails are personal data — do not log them in third-party agent traces if you can avoid it.
- `list_inbox_messages` (read, care_circle:read): Lists recent messages in one loved one's Family Inbox (subject, sender, preview). Does not return HTML bodies. Scope: the caller's family workspace only.
- `get_inbox_message` (read, care_circle:read): Returns one Family Inbox message as plaintext (no HTML). Requires messageId from list_inbox_messages. Rejected if the message is not in the caller's workspace.
- `invite_family_member` (write, care_circle:write): Invites a sibling or other family member to this household by email, with role coordinator or viewer. Sends the same LovedOne invite email as the web app. Requires the invite-members permission in this workspace. This is a write.
- `create_provider_code` (write, care_circle:write): Mints a short-lived, single-use LovedOne Soft link code for one loved one in this household. Hand the code to a LovedOne Soft agency so they can link that person as a client. Requires the manage-providers permission in this workspace. This is a write.
- `reply_to_inbox_message` (write, care_circle:write): Sends a plaintext reply to a Family Inbox message using the same from address (family-inbox@m.lovedone.app) and reply-to (the loved one's @lovedone.app inbox) as the LovedOne web app. Requires the reply permission for that loved one. This is a write.
- `onboard_loved_one` (write, care_circle:write): Sets up a loved one on LovedOne from conversation: creates the caller's family workspace on first use (or adds to it), allocates their private @lovedone.app Family Inbox address, and records the caller's authorization attestation. Idempotent — calling again for the same person returns the existing record. Before calling, confirm attestAuthorized with the user in plain words. The loved one's own email is optional and is never emailed automatically. This is a write.
- `get_onboarding_status` (read, care_circle:read): Returns the caller's LovedOne setup state: whether a family workspace exists, which loved ones and @lovedone.app inbox addresses are set up, member counts, and ordered nextSteps. Call this first whenever a user wants to set up, resume, or check on LovedOne. Read-only.

## Security

Keys stored as SHA-256. mcp_audit_log records caller, tool, duration (not bodies).
HTML email is never returned. This server does not handle personal health data.
SOC 2 Type I is next; Type II is not attested.

## Connection snippet

```json
{
  "mcpServers": {
    "lovedone-family": {
      "url": "https://api.lovedone.app/mcp/v1",
      "headers": {
        "Authorization": "Bearer sk-sand-..."
      }
    }
  }
}
```
