OpenPhone icon indicating copy to clipboard operation
OpenPhone copied to clipboard

Add read-only ADB transport support for more OpenPhone runtime tools

Open adamcohenhillel opened this issue 5 months ago • 1 comments

Problem

The Runtime Agent Protocol manifest lists many OpenPhone tools, but the ADB transport currently supports only a small subset. Several read-only commands still return unsupported_adb_tool, which limits the usefulness of the local CLI/MCP path for contributors who do not have a full runtime adapter running.

Proposed Behavior

Add ADB transport implementations for a small first batch of read-only tools.

Suggested first targets:

  • openphone.device.status
  • openphone.watchers.list
  • openphone.jobs.list
  • optionally openphone.notifications.list if it can be implemented conservatively without private-data leakage in tests/docs

Keep the first PR focused on read-only behavior. Do not add state-changing commands such as message send, calendar mutation, phone calls, clipboard paste, sharing, watcher creation, or background-job creation in this issue.

Scope

  • Update integrations/adb/openphone-adb-transport.mjs.
  • Keep CLI and MCP behavior aligned because they share the ADB transport.
  • Add or update integration contract coverage if needed.
  • Document any command that intentionally remains unsupported.

Done When

  • The selected read-only tools no longer return unsupported_adb_tool through the ADB transport.
  • Dry-run behavior remains stable.
  • Runtime protocol checks pass:
./scripts/check-runtime-protocol.sh
./scripts/check.sh
git diff --check

Optional emulator/device smoke:

node integrations/cli/src/index.mjs --serial emulator-5584 tool invoke openphone.device.status '{}' --json
node integrations/cli/src/index.mjs --serial emulator-5584 tool invoke openphone.watchers.list '{}' --json
node integrations/cli/src/index.mjs --serial emulator-5584 tool invoke openphone.jobs.list '{}' --json

Notes For Contributors

Prefer bounded, structured output over dumping large private datasets. If a command may expose personal phone data, keep it out of this first read-only batch or require explicit maintainer review.

adamcohenhillel avatar Jul 01 '26 06:07 adamcohenhillel

Partial implementation pushed to branch feat/adb-more-tools (WIP commit de21b27): transport changes for the read-only tools and element tap/long-press (#38) are drafted (+172 lines in integrations/adb/openphone-adb-transport.mjs, rebased on current main). Remaining before a PR: sync the packaged mirror copies in integrations/cli/integrations/mcp-server, add contract tests, README notes, and run check.sh.

adamcohenhillel avatar Jul 06 '26 22:07 adamcohenhillel