dot-iphone-mcp

mcp
Guvenlik Denetimi
Basarisiz
Health Uyari
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Basarisiz
  • rm -rf — Recursive force deletion command in .github/workflows/npm-release.yml
  • fs module — File system access in .github/workflows/npm-release.yml
  • network request — Outbound network request in apns-relay/worker.mjs
  • fs.rmSync — Destructive file system operation in bin/dot-iphone-mcp.mjs
  • os.homedir — User home directory access in bin/dot-iphone-mcp.mjs
  • network request — Outbound network request in bin/dot-iphone-mcp.mjs
  • os.homedir — User home directory access in lib/apns-sender.mjs
  • process.env — Environment variable access in lib/apns-sender.mjs
  • crypto private key — Private key handling in lib/apns-sender.mjs
  • os.homedir — User home directory access in lib/config.mjs
  • process.env — Environment variable access in lib/config.mjs
  • os.homedir — User home directory access in lib/notify.mjs
  • process.env — Environment variable access in lib/notify.mjs
  • process.env — Environment variable access in lib/rendezvous.mjs
  • exec() — Shell command execution in lib/sentinel-guard.mjs
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Zero-dependency MCP server giving AI agents live iPhone access and Dynamic Island approval cards via App Store DSH Dot

README.md

@oxmumu3/dot-iphone-mcp

npm
GitHub stars
License: MIT
App Store DSH Dot

dot-iphone-mcp 能力全景:跨 7 大桌面 AI Agent 直连 iPhone 原生能力

Give Claude Code, Codex, Cursor, Antigravity, DeepSeek Harness, WorkBuddy, 千问办公, and OpenClaw real-time access to your iPhone (Calendar, Reminders, Alarms/Timers, Contacts, Health summary, Maps/Navigation, Shortcuts) plus Lock Screen & Dynamic Island (Live Activity) approval cards — powered by the official App Store DSH Dot app with zero external npm dependencies.

100% Local Bridge + Zero-Retention Push Relay: All MCP calls stay on your Mac/PC (127.0.0.1 loopback + Bearer token), device tools stream directly between your computer and paired iPhone over LAN / Tailscale / Cloudflared, and Lock Screen / Dynamic Island wakeup notifications go through a stateless open-source Cloudflare Worker relay (apns-relay/worker.mjs) that stores zero user data and logs zero payloads.


Quick Start(两步零命令接入 · 推荐)

Step 1 · Install the iOS Companion App

Download DSH Dot from the Apple App Store (v1.3.9+) on your iPhone.

Step 2 · Paste One Sentence to Any Desktop AI Agent

Open your desktop AI Agent (Claude Code / Codex / Cursor / Antigravity / DeepSeek Harness / WorkBuddy / 千问办公 / OpenClaw), send this message, click Allow when prompted, and enter the 6-digit PIN in DSH Dot on your iPhone:

帮我安装并配置 @oxmumu3/dot-iphone-mcp:先启动本机守护桥并生成 6 位配对码给我,等我在手机 DSH Dot 配对完成后,再把 iphone MCP 配置到当前工具并检查连接状态。
  • Same Wi-Fi & 5G Remote Out of the Box: Same Wi-Fi connects directly over LAN; for 5G / cross-network access, dot-iphone-mcp automatically downloads Cloudflare's official cloudflared binary into ~/.dsh/dot-mobile-bridge/bin/ on first run (if not already installed) and opens a self-healing encrypted HTTPS Quick Tunnel — zero Homebrew or manual tunnel setup required.
  • Windows / Linux: install-agent is macOS LaunchAgent only; run npx -y @oxmumu3/dot-iphone-mcp serve directly in the background (auto cloudflared 5G tunnel also works on Windows/Linux).

Manual Setup(手动命令行方式)

1. Start & Pair the Local Bridge

# macOS: install auto-start LaunchAgent (Windows/Linux: use `npx -y @oxmumu3/dot-iphone-mcp serve`)
npx -y @oxmumu3/dot-iphone-mcp install-agent

# Print your 6-digit pairing PIN + QR banner
npx -y @oxmumu3/dot-iphone-mcp pair

Open DSH Dot on your iPhone -> Pair / Connect -> enter the 6-digit PIN shown in terminal (valid for 15 minutes).

2. Add iphone MCP Server to Your Agent

Run npx -y @oxmumu3/dot-iphone-mcp setup to print ready-to-paste snippets, or add manually:

Claude Code / Cursor / Antigravity (mcp_config.json)

{
  "mcpServers": {
    "iphone": {
      "command": "npx",
      "args": ["-y", "@oxmumu3/dot-iphone-mcp"]
    }
  }
}

Codex (~/.codex/config.toml)

[mcp_servers.iphone]
command = "npx"
args = ["-y", "@oxmumu3/dot-iphone-mcp"]

13 Exposed MCP Tools

Category Tool Name Safety Model Description
Status iphone_status Read-only Connectivity, paired device status, latency, APNs/LiveActivity readiness, active modules
Calendar iphone_calendar_list Direct read Query iPhone calendar events inside an ISO date range
Calendar iphone_calendar_create Staged approval Stage a new calendar event card on iPhone for user confirmation
Reminders iphone_reminders_list Direct read Query open/completed iOS Reminders
Reminders iphone_reminder_create Staged approval Stage a new reminder card on iPhone (YYYY-MM-DD HH:mm / ISO)
Alarms iphone_alarm_create Staged approval Stage a countdown timer (durationSeconds) or AlarmKit wake-up (fireIso)
Health iphone_health_summary Direct read Query today's steps, sleep, workouts, heart rate & active energy from HealthKit
Contacts iphone_contacts_search Direct read Fuzzy search iPhone Contacts by name/phone/org
Maps iphone_maps_search_or_handoff Direct read Search places or compute ETA + Apple Maps / Amap / Baidu / Google deep links
Shortcuts iphone_shortcuts_list_and_run Read / Staged List iOS Shortcuts/recipes or stage a confirmation card to launch a Shortcut
Combo iphone_combo_plan Staged approval Stage a multi-step morning/travel/focus card on iPhone
Approval iphone_request_approval Dynamic Island gate Push an interactive Lock Screen / Live Activity approval card (准奏 / 取消) and wait up to 120s
Approval iphone_check_action Poll / Cancel Check settlement state (approved / cancelled / pending) or cancel a card

Sentinel Security & Privacy Guarantees

  1. Loopback-Only MCP Endpoint: /api/mcp/device-call rejects non-loopback sockets and any request carrying X-Forwarded-For, CF-Connecting-IP, or Forwarded.
  2. Read-Only Direct Execution Guard: Even if someone attempts op: "invoke" for mutating iOS tools (calendar.create, reminders.create, alarms.timer, shortcuts.run, etc.), the server fails closed (403 approval_required) and requires interactive mobile confirmation.
  3. Secret Leakage Circuit Breaker: lib/sentinel-guard.mjs scans staged titles/summaries/fields/payloads for API keys (sk-..., ghp_..., AKIA...), PEM private keys, database URIs, OTP codes, and Luhn credit card numbers, rejecting with 400 SENTINEL_SECRET_BLOCKED before anything leaves localhost.
  4. Notification Privacy (APNs Relay): By default, @oxmumu3/dot-iphone-mcp routes Lock Screen & iOS Live Activity pushes through the public stateless relay at https://dot-apns-relay.dsh-plugin-finder.workers.dev (16 KB body limit, IP/token rate limiting, zero storage, zero payload logging).
    • Disable relay completely: export DOT_APNS_RELAY_URL=off (iPhone must stay in foreground/App to confirm).
    • Self-host your own relay / own iOS build: Deploy apns-relay/worker.mjs to your own Cloudflare Workers account and set DOT_APNS_RELAY_URL, or configure your own .p8 via DOT_APNS_KEY_PATH + DOT_APNS_KEY_ID.

CLI Subcommands

  • dot-iphone-mcp — Start stdio JSON-RPC 2.0 MCP server (default when invoked without arguments)
  • dot-iphone-mcp serve — Run the background HTTP/SSE Mac Bridge (0.0.0.0:58471)
  • dot-iphone-mcp pair [--rotate] — Display/rotate the 6-digit pairing PIN and LAN URLs
  • dot-iphone-mcp doctor — Check bridge daemon health, port, and tunnel readiness
  • dot-iphone-mcp setup — Print copy-paste MCP client snippets
  • dot-iphone-mcp install-agent / uninstall-agent — Manage the macOS LaunchAgent (ai.dot.iphone-mcp)

更新日志、问题反馈与支持

  • 更新日志与安装包:查看 GitHub Releases
  • 问题排查与功能建议:欢迎附环境版本与最小复现到 GitHub Issues 留言
  • 收藏关注:如果这个项目帮到了你,欢迎点右上角 Star 收藏,方便后续追踪更新

oxmumu3 · DSH 生态开源矩阵

项目 定位 核心能力
DSH Dot(桌面 + 手机桥) oxmumu3/dsh-project-companion 私人参谋与项目助手:今天首屏、原生会话推进、微信/iOS/Android 全端同步
发现好插件 oxmumu3/dsh-plugin-finder 按任务目标拼装 14,000+ 社区插件,缺口自动带避坑经验进创造模式补齐
Dot 记忆总线 oxmumu3/dot-memory 跨 6 端本机 Agent(Claude/Codex/Antigravity/DSH 等)共享 4KB 活体记忆与实体 Wiki
乐乐家庭助手 oxmumu3/dsh-family-assistant 让爸妈在微信里各自拥有专属助手,统一工作台看顾提醒与每日简报
AI 分身工作台 oxmumu3/ai-twin-starter 把本机项目与经验提炼成可控数字分身,支持网页扫码体验与敏感越权拦截
顺带私教 oxmumu3/dsh-incidental-learn 平时干活不打断,只在关键决策点顺手沉淀可复盘的经验手账
iPhone 系统能力 MCP(当前项目) oxmumu3/dot-iphone-mcp 零中心服务器让电脑 AI Agent 直连 iPhone 日历/提醒/健康/捷径与灵动岛审批
DSH 插件避坑经验库 oxmumu3/dsh-plugin-lessons 公开可核对的 DeepSeek Harness 插件踩坑记录与最佳实践速查库
DSH 生态精选与客观雷达 oxmumu3/dsh-ecosystem-feed 每日自动刷新的 DeepSeek Harness 生态快照与社区精选公共信源

License

MIT

Yorumlar (0)

Sonuc bulunamadi