Copy library / What got built / Multiple
Letting Meta Muse and Grok Bot use a home Mac mini over MCP, safely
# 让 Meta Muse 和 Grok Bot 通过 MCP 安全使用自家 Mac mini Source: https://github.com/Jish2/df/pull/61 Author: Jish2 作者想让云端代理(Meta Muse、Grok Bot)通过 MCP 使用家里的 Mac mini(提醒事项、iMessage、文件),又不把 shell 暴露到公网。做法:Desktop Commander 跑在本地代理后面,经 Cloudflare 隧道发布;代理重新校验 Cloudflare Access JWT,只开放 17 个工具的白名单,隐藏可改自身限制的配置工具等,并记录每次调用。测试中无 JWT、受众错误或过期 JWT 都返回 401。
- What it does
- The author wanted cloud agents (Meta Muse, Grok Bot) to reach his Mac mini over MCP for reminders, iMessage and files without exposing a shell to the internet. Desktop Commander runs behind a small local proxy published through a Cloudflare tunnel; the proxy re-verifies the Cloudflare Access JWT, exposes an allowlist of 17 tools, hides tools such as the config setter an agent could use to lift its own limits, and logs each call. In tests, missing, wrong-audience and expired JWTs got 401.
- Scenarios
- Social scheduling Security & privacy
- What the source covers
- Author & original linkYes
- What it doesYes
- Verbatim source excerptYes
- Screenshots / mediaNot in source
- Steps / chaptersYes
- Verbatim prompt / configNot in source
- Results / numbersYes
- Risk notesYes
- Related entriesYes
— means the source doesn't say; we don't fill it in.
- Verbatim source excerpt
mini: let cloud agents use the Mac mini over MCP at mini-mcp.jgoon.com
I want my cloud agents (Meta Muse, the Grok bot) to reach mini over MCP — remindctl, imsg, my files — without opening a shell to the whole internet.
`fleet.desktopCommander` runs [Desktop Commander](https://github.com/wonderwhy-er/DesktopCommanderMCP) behind a small proxy (`proxy.mjs`) on `127.0.0.1:7801`, published at `mini-mcp.jgoon.com` by its own tunnel (terraform: https://github.com/Jish2/terraform/pull/21). The proxy:Show full post
- re-verifies the Cloudflare Access JWT (audience, issuer, expiry, signature), so the port is useless without Access in front;
- exposes an allowlist of 17 tools — shell sessions, files, search. Hidden: `set_config_value`/`get_config` (an agent could clear its own limits), `kill_process`, `write_pdf`, and DC's usage/feedback tools;
- logs each call with the calling service token.
DC is the npm release, built with `buildNpmPackage` from the tag's lockfile with install scripts off (no install-tracking ping, no Chromium/ripgrep downloads); telemetry and remote feature flags are off.
The proxy is a **LaunchAgent**: imsg and remindctl need the login session (Messages automation, Reminders and Full Disk Access are per-session TCC), so it runs while I'm logged in, like BlueBubbles. The **connector** is a LaunchDaemon on a separate tunnel from `cloudflared-ssh`, so the ssh lifeline is untouched.
Also: `make doctor` checks, a FLEET.md section, and `steipete/tap/remindctl` declared (already installed by hand).
Tested on mini against the built package: no JWT, wrong audience and expired JWTs get 401; `tools/list` returns only the allowlist; `set_config_value` is refused; `start_process` runs commands. `darwinConfigurations.mini.system` builds.
After merge: `yadm pull`, switch mini via the remote procedure, then grant Reminders / Automation → Messages / FJish2 · · Open original ↗ From the project README, verbatim and untranslated.
- Steps / points from the source
- install nix os
- install yadm
- yadm clone repo
- run make in nix
- [ ] add rectangle config
Verbatim from the source, untranslated.
- Prompt
The source does not include a prompt you can copy verbatim.
- How to copy
- Open the repo: github.com/Jish2/df/pull/61 ↗
- Read the README, send the repo link to your Bot and have it reproduce it
- Get it working small first, then add a routine
- Risks and limits
- Uses a browser or website login: the costliest kind of step, so prefer a connector where one exists
- The author's result may not reproduce for you; the original post is the reference
- Usage estimate
- Estimate with the metal calculator