/mwdat-ios:debuggingfrom mwdat-ios
Diagnoses common setup, registration, and streaming issues in DAT SDK integrations for Meta smart glasses. Covers Developer Mode, version compatibility, and stream state machine diagnosis.
Ships in mwdat-ios. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Diagnose common setup, registration, and streaming issues in DAT SDK integrations.
If local DAT Inspector MCP tools are available, use the live-debugging-mcp
skill before changing app code. Prefer get_dat_readiness,
get_companion_boundary_diagnosis, and get_device_path to separate app bugs from
Meta AI app/device boundary issues using read-only DAT evidence.
Device not connecting?
│
├── Is Developer Mode enabled? → Enable in Meta AI app settings
│
├── Is device registered? → Check registration state
│
├── Is device in range? → Bluetooth on, glasses powered on
│
├── Is the app registered? → Check registrationStateStream()
│
└── Stream stuck in waitingForDevice? → Check device availability
Developer Mode must be enabled for 3P apps to access device features.
waitingForDevicestopped → waitingForDevice → starting → streaming → stopped
Ensure compatible versions of SDK, Meta AI app, and glasses firmware. See version dependencies for the current compatibility matrix.
| Issue | Workaround |
|---|---|
| No internet → registration fails | Internet required for registration |
| Streams started with glasses doffed pause when donned | Unpause by tapping the side of the glasses |
| A single touchpad tap pauses an active stream | Tap again to resume; keep the last frame on screen while StreamState is .paused |
See the public known issues page for the current list.
import os
private let logger = Logger(subsystem: "com.yourapp", category: "Wearables")
// In your streaming code:
logger.debug("Stream state changed to: \(state)")
logger.error("Stream error: \(error)")
When the developer has a local DAT debug server connected to the agent:
get_sdk_state and get_dat_readinessget_companion_boundary_diagnosis for permission, app identity, device
capability, device-selection, deeplink-return, and DAM/DWA-visible blockersget_device_path to trace app -> DAT registration -> Meta AI app permissions ->
device selection/link -> session -> streamwait_for_events with the
narrowest category or source that matches the flowexport_diagnostic_bundle for redacted support handoffDo not treat this as companion app introspection. It is diagnosis from app-visible DAT debug events.
MWDAT > AppLinkURLScheme matches itmetaWearablesAction links to Wearables.shared.handleUrl(_:)bluetooth-central in UIBackgroundModes and a non-empty NSBluetoothAlwaysUsageDescriptionNSLocalNetworkUsageDescription, _bonjour._tcp in NSBonjourServices, and the Hotspot Configuration capability (com.apple.developer.networking.HotspotConfiguration in the app's entitlements)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub meta/meta-wearables-dat-ios --plugin mwdat-ios18 skills in this plugin
/audio-streamingReceive synchronized PCM audio frames through a Camera stream on iOS/camera-captureCapture standalone high-quality photos from connected glasses on iOS/camera-streamingStream, video frames, photo capture, resolution/frame rate configuration/dat-conventionsSwift patterns, async/await, naming conventions, key types for DAT SDK iOS development/dat-docs-mcpUse the Wearables DAT MCP server for live DAT documentation search with `search_dat_docs`, Muse Code, Claude Code, Codex, Cursor, and MCP Inspector/display-accessDisplay capability setup, display-capable device selection, UI DSL, icons, buttons, images, and video playbackOther plugins' skills for the same job