All CUJ Case Studies
Critical User Journey Case Study

Herrington MCP Hub: One Home for My Agents' Tools

πŸ“… Published πŸ”„ Updated πŸ‘€ Daniel Herrington πŸ“„ index.md
Herrington MCP Hub: One Home for My Agents' Tools Hero Graphic

A Critical User Journey (CUJ) case study on building one personal hub of MCP servers, with one shared core, so every agent I run gets the same tools, the same rules, and no way to act without my yes.


πŸ” The Problem Space

Context

I run several AI agents every day: Muse, Claude, Grok Bot and a few others. Each one is good in conversation and useless the moment the question touches my actual life. "Is the media server up?" "Is the earbud case charged?" "Can you start parking for two hours?" They can't see my Macs, my devices or my house, so they ask me, and I go and look.

The Core Friction

I had already built a few one-off MCP servers. Every new one re-solved the same hard parts, slightly differently:

  1. Who is calling? Each server had its own idea of auth, so there was no single answer to "which agent did that, and what is it allowed to touch?"
  2. Writes are scary. Reading a disk percentage is harmless. Restarting a service, unlocking a door or paying for parking isn't. Every server would need its own approval logic, and one forgotten check would be one too many.
  3. No shared view. Logs, analytics and the catalogue of what each server can do lived in different places in different shapes.

The real job: one home for all of these tools, where the hard parts are solved once and every new module inherits them.


🚦 Critical User Journeys (CUJs)

CUJ 1: What's Running Where

CUJ 2: Is Everything I'm Taking Charged?

CUJ 3: Agents Can Ask, Only I Can Say Yes


πŸ—ΊοΈ The Ideal Flows

Flow 1: What's Running Where

  1. Trigger: Something at home isn't working, or I'm just curious.
  2. Action: I ask whichever agent I'm talking to. It calls service_status or fleet_status on the Mac Fleet module.
  3. Automated Response: The module checks each configured service its own way (a launchd job, a Docker container, a process or an HTTP health URL) and each Mac's uptime, load, memory, disk and power. A Mac it can't reach is reported as unreachable, never silently checked from somewhere else. Known gaps, like a Mac without remote login, are surfaced, not hidden.
  4. Resolution: The agent tells me what's down and why, and can pull the last lines of that service's log (with obvious credentials redacted) if I want to dig in.

Flow 2: Pre-Flight Battery Check

  1. Trigger: I'm packing, or about to leave.
  2. Action: The agent calls device_status.
  3. Automated Response: For each device I've configured, the module takes the freshest battery reading from its sources: Bluetooth on the Mac the device pairs with, or a small snapshot file my phone writes on a schedule with a Shortcuts automation. Anything low, stale, missing, or waiting on a sign-in is listed under attention.
  4. Resolution: I charge the case, not the thing that was already full.

Flow 3: Propose, Approve, Execute

  1. Trigger: An agent calls a tool marked write.
  2. Action: Nothing runs. The shared core stores a pending approval request (which tool, which arguments, which agent, a human-readable summary, and the amount when money is involved) and returns its id.
  3. Automated Response: I approve or deny it from the command line on the machine that runs the module. There's deliberately no MCP tool that approves, so an agent's token can propose and check, but never say yes.
  4. Resolution: The agent calls the same tool again with the approval id. Core runs it only if the request is approved, unexpired (15 minutes), unused, has exactly the same arguments, and comes from the same agent. Every step lands in an audit log.

πŸ› οΈ The Solution: One Core, Many Modules

The hub is a TypeScript monorepo. A module is a small package that declares its tools and their access (read or write) and holds only its domain logic. Everything cross-cutting comes from one shared core, so a new module gets tokens, the approval gate, logging, analytics and catalogue metadata for free, and can't opt out of the gate.

graph TD
    Muse[Muse] --> Core
    Claude[Claude] --> Core
    Grok[Grok Bot] --> Core
    Core[Shared core: per-agent tokens, approval gate, audit, redacted logs, analytics] --> Fleet[Mac Fleet v0.1, read-only]
    Core --> Devices[Devices v0.1, read-only]
    Core -.-> Parking[Parking, in review]
    Core -.-> Home[Home, in review]
    Me[Me, on my own machine] -->|approve or deny| Core

Modules that need my home network or macOS run as background services on an always-on Mac at home and are reachable only over my private network, never from the internet. Modules built on cloud APIs will run on Cloud Run in their own isolated slice of a GCP project.


πŸ’» Under the Hood (Code & Architecture)

The repository is private, so these are paths rather than links.

1. Per-Agent Tokens (packages/core/src/tokens.ts)

2. The Approval Gate (packages/core/src/approvals.ts)

3. Logs and Analytics That Can't Leak (packages/core/src/log.ts, analytics.ts)

4. Mac Fleet v0.1 (servers/fleet/)

5. Devices v0.1 (servers/devices/)


πŸ“ Status

The shared core, Mac Fleet v0.1 and Devices v0.1 are merged and tested, all read-only. They aren't installed on the home Mac yet; that's a deploy, and it waits for my go. Parking and Home, the first modules with real write tools behind the approval gate, are in review.

What's next: install Fleet and Devices, then the Home and Parking modules, then more read-only modules before anything that touches money.


πŸ”— Repository & Source Code

Have thoughts on this CUJ or framework?

Let's discuss product strategy, machine learning engineering, or system architecture.

Connect on LinkedIn Explore Other CUJs