Device Sharing
Expose a folder, app files and media, or skills to a desktop harness as an MCP server, with per-call approval.
Device sharing turns your phone into an MCP server for a connected desktop harness. The harness can list and read a folder you choose, use app files and media, and load enabled skills — while every call still asks you for approval on the phone.
This is the opposite direction from MCP Servers: there you connect the agent to external services; here you expose the phone to an agent running elsewhere.
What can be shared
Open Settings → Integrations → Device sharing (MCP). Choose any combination of:
| Share | What the harness gets |
|---|---|
| Folder | A folder you pick through Android's system picker. Read, search, view, write, edit, create, rename, move, and delete tools inside that folder. |
| App files & media | The app workspace: list, read, view, write, edit, create, search, downloads, documents, OCR, video rendering, audio analysis, transcription, and text-to-speech. |
| Skills | The enabled skills, so the harness can load their instructions and supporting files. |
At least one must be selected before Start sharing is enabled.
Start sharing
- Open Settings → Integrations → Device sharing (MCP).
- Optionally pick a Folder with the system picker.
- Check App files & media and/or Skills.
- Tap Start sharing.
- Copy the MCP connection JSON into the harness's MCP configuration.
The connection looks like:
{
"url": "http://192.168.1.20:43877/mcp",
"headers": {
"Authorization": "Bearer <token>"
}
}Tap Copy MCP connection to copy it. Treat the token as a secret: anyone who has it and can reach the address can attempt tool calls (subject to your approval).
For OpenCode, the app can also attach the phone as a managed MCP server automatically — see Harnesses.
Network options
Open Advanced in the sharing drawer to choose how the harness reaches the phone:
- Auto — pick a reachable address automatically.
- Loopback —
localhost, for a harness running in Termux on the same phone. - LAN — the phone's local network address.
- Tailscale — the Tailscale interface, for a private VPN between devices.
You can also set a manual address override when the detected address is not the one the harness should use. The drawer lists the current candidate URLs so you can copy the right one.
For a USB-connected setup, forward the port instead:
adb forward tcp:43877 tcp:43877The default port is 43877.
Note: LAN sharing is unencrypted HTTP unless you put it behind a tunnel or reverse proxy. Use it on networks you trust, or prefer Tailscale/HTTPS for remote access.
Approvals
Every phone tool call made through the bridge requires local approval — including reads. When the harness calls a tool, the phone shows an approval request:
- Approve once — allow this call.
- Always allow this tool — remember the tool for the current sharing session.
- Deny — reject the call.
The drawer shows the approval mode and how many tools are auto-approved. Reset device approvals clears the remembered set.
Auto mode can approve calls without prompting. Use it only when you trust both the harness and the exact set of shared capabilities; the shared grant is already scoped to what you selected.
Shared tools
The bridge exposes an explicit allowlist, not the app's whole toolset.
Folder tools (prefixed phoneFolder…):
phoneFolderList,phoneFolderRead,phoneFolderGlob,phoneFolderGrep,phoneFolderViewFilephoneFolderWrite,phoneFolderEdit,phoneFolderCreateFile,phoneFolderCreateDirectory,phoneFolderDelete,phoneFolderMove,phoneFolderRename
App workspace tools include the normal file and media tools — listFiles, read, write, edit, createFile, grep, glob, viewFile, downloadFile, document tools, OCR, renderVideo, previewScene, previewMix, getVideoFrame, analyzeAudio, transcribeAudio, textToSpeech, and listVoices. Network-facing tools are deliberately excluded from workspace sharing.
Skills expose the enabled skill catalog and the skill-loading tools.
Security model
- Sharing is off by default and stops when you tap Stop sharing or close the app's server.
- The grant is scoped: only the folder you picked and the categories you checked.
- Tools are an explicit allowlist; the bridge never exports every app tool or trusts capabilities supplied by the client.
- Folder access requires an Android document-tree grant (
content://). - Every call is approved locally unless you explicitly opt into auto mode.
- The bearer token is generated for the sharing session and should be rotated by stopping and restarting sharing if it leaks.
Troubleshooting
- Harness can't connect — confirm sharing is running, the URL matches the selected network, and the phone and computer can reach each other.
- No matching network — choose a specific address under Advanced, or use the manual override.
- Calls are denied immediately — check the approval prompt on the phone; the harness may be timing out while it waits.
- Folder tools fail — re-pick the folder; SAF grants can be revoked by the system.
- OpenCode drops the connection — restart sharing, then reconnect the harness so it performs a fresh MCP handshake.