# ISSUE: Hoppe-Gallery MCP (+ Hoppe-tainment MCP) > Filing-ready draft for **Joanna & Joern**, prepared 2026-11-21 by Mistral Vibe (Donny's session). > When ready, post as a Gitea issue on `git.hoppe.mywire.org` (org: `Hoppe.home-Public`) — issue creation needs a logged-in token, which the agent session does not hold. ## Summary Today's "Donny photo hunt" in `\\Hoppe-FS\Family Hoppe\Shared Pictures` showed the agent can *walk* the picture library (81,681 images inventoried) but cannot *understand* it: - **Zero in-file tags**: no image carries a `Donny` keyword (shell `System.Keywords` scan of all 88k items + byte-level XMP/EXIF header scan both empty). Whatever "tagged as Donny" means, it lives in an app's database — not in the files. - **Hoppe-Gallery already knows** which pictures are whose. The gallery sits behind the Hoppe.home portal auth (`https://hoppe.mywire.org/gallery/` → portal `login.html?next=%2Fgallery%2F`), so agent sessions cannot query it today. - Visual triage at scale is slow and expensive for an agent (image-by-image review), when a single gallery query like *"all photos of Donny, 2024+"* would answer instantly. Adding an **Hoppe-Gallery MCP** (and an **Hoppe-tainment MCP**) closes exactly this gap and lets the existing seven-server MCP topology (Brain, Codebox, Estate, H365, IdeaHub, OBS, Ops) grow for media use cases. ## Why an MCP for Hoppe-Gallery Primary consumers: agent sessions (Vibe, Codex, VS Code) doing library tasks — e.g. the recurring "copy / prefill albums / review by person" jobs, and Joern's private-area work. ### Proposed endpoint - Online: `https://hoppe.mywire.org/gallery/mcp` (behind the same reverse proxy + portal auth as `/gallery/`) - Local: `https://hoppe.home/api/portal/gallery/mcp` (or the host/port where the gallery actually runs, e.g. `hoppe-apps.hoppe.home/gallery`) - Auth: bearer token, provisioned as `HOPPE_GALLERY_MCP_TOKEN` (pattern already established for the other seven servers) - Persona note (echoing `MCP-ACCESS-TEST-REPORT-JOERN.md`): tool exposure ≠ authorization. Gallery permissions *(who may see whose private area, e.g. Joern's private area)* must be enforced server-side, per token, not by convention. ### Proposed tools (v1) | Tool | Purpose | |---|---| | `gallery_health` | Service + index status, indexed photo count, last scan time | | `gallery_list_albums` | List albums/areas incl. private areas the token may access | | `gallery_search_photos` | Query by **person tag** (e.g. `Donny`), folder path, date range, rating/flags; returns paths + metadata | | `gallery_get_photo` | One photo's metadata (face tags, keywords, date, path on `\\Hoppe-FS`) | | `gallery_classify_pending` | Return photos the gallery has detected but not yet album-assigned (as-of-now "unsorted") | | `gallery_add_to_album` *(write)* | Add an existing library photo to an album (e.g. the "Sexy Body & Feet"-style collections) | | `gallery_tag_photo` *(write)* | Set/remove person or keyword tags | | `gallery_bulk_paths_for_person` *(write)* | Export a person's photo paths as a list — the fastest handoff for file copy jobs | Bonus: a `gallery_person_face_search` helper if face-recognition data exists ("all photos where Donny appears") — that is the single most valuable query from today's session. ### Acceptance criteria 1. `initialize` returns HTTP 200 through portal auth with a `HOPPE_GALLERY_MCP_TOKEN`. 2. `gallery_search_photos(person="Donny", from="2024-01-01")` returns correct file paths as verified against the inventory. 3. A write-path tool can add one existing library photo to a test album without touching the file on `\\Hoppe-FS`. 4. Private-area ACLs verified: a token without permission gets a clean 4xx, never someone else's private photos. 5. Endpoint + token registered in `MCP-CLIENT-ONBOARDING.md` matrix and in all client `mcp.json` profiles. ## Why an MCP for Hoppe-tainment The `\\Hoppe-FS\Hoppe-Streaming-Cache` share and home streaming setup already store media Movie/Series/Music wallpapers/logs; the agent can list files but knows nothing about the catalog: what's a movie vs. series episode vs. music album, what's watched, what bitrate/version exists. ### Proposed endpoint - Online: `https://hoppe.mywire.org/tainment/mcp` - Local: `https://hoppe.home/api/portal/tainment/mcp` - Auth: `HOPPE_TAINMENT_MCP_TOKEN` ### Proposed tools (v1) | Tool | Purpose | |---|---| | `tainment_health` | Catalog size, library scan status | | `tainment_search` | Search movies / series / episodes / music by title, year, genre | | `tainment_item_details` | One item's metadata: type, resolution, codecs, watch status | | `tainment_list_recently_added` | New arrivals (e.g. "the last 10 things Joern added") | | `tainment_recently_watched` | Continue-watching / history per user profile | | `tainment_request_download` *(write, optional queue)* | Add to watchlist/download queue | ### Acceptance criteria 1. `initialize` HTTP 200 with the token through portal auth. 2. `tainment_search(title="...")` finds items that exist on `\\Hoppe-FS\Hoppe-Streaming-Cache` / the media library. 3. Read-only for v1; any write tool (queue/download) default-off until reviewed. ## Implementation notes for Joanna & Joern - Follow the established pattern: HTTP (streamable) MCP, bearer-token auth via reverse proxy, token rotation like the existing seven servers. - Gallery: if the gallery app can't host MCP itself, a small adapter service (host-facing ` → MCP`) colocated on `hoppe-apps` is fine. - Register both in the onboarding doc's server matrix and in every client profile (`VS Code`, `Codex`, Antigravity, Claude) with placeholder inputs, never literal tokens. ## Background: what happened in the agent session (2026-11-21) - Inventoried `\\Hoppe-FS\Family Hoppe\Shared Pictures`: 88,172 files, 81,681 images (Family HK 35.5k, Family DE 22.9k, Donny & Joern 10.9k, Family 2021-2026 ~10.8k, Z Fold 3 1.1k, rest assets). - Verified no image carries `Donny` keywords in XMP/EXIF/shell metadata → folder-based or app-side tagging only. - Spot-triage of the newest ~150 photos (Z Fold 3 tail, Family 2026) found no qualifying "body/feet" photos; remaining recent years still to review — exactly the work a `gallery_search_photos(person="Donny", ...)` call would replace.