Sync Google Drive and Dropbox
Sync files bidirectionally between Google Drive and Dropbox so your team can use whichever storage they prefer.
Prerequisites
Section titled “Prerequisites”- Google Cloud OAuth2 credentials (or service account JSON)
- Dropbox app with access token (create one)
- WCP running
1. Register Connections
Section titled “1. Register Connections”# Google Drivecurl -X POST http://localhost:8000/api/connections \ -H "Content-Type: application/json" \ -d '{ "name": "gdrive", "command": "npx", "args": ["-y", "@anthropic/mcp-server-gdrive"], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "/data/gcloud-sa.json" } }'
# Dropboxcurl -X POST http://localhost:8000/api/connections \ -H "Content-Type: application/json" \ -d '{ "name": "dropbox", "command": "npx", "args": ["-y", "@anthropic/mcp-server-dropbox"], "env": { "DROPBOX_ACCESS_TOKEN": "sl...." } }'2. Scan, Verify, Sync
Section titled “2. Scan, Verify, Sync”curl -X POST http://localhost:8000/api/capabilities/scancurl http://localhost:8000/api/capabilities/syncable-pairscurl -X POST http://localhost:8000/api/sync/run/await3. Strategy Recommendation
Section titled “3. Strategy Recommendation”For file storage, last_write_wins is usually the safest strategy — the most recently modified version wins:
curl -X PUT http://localhost:8000/api/conflicts/strategy \ -H "Content-Type: application/json" \ -d '{"strategy": "last_write_wins"}'Monitoring
Section titled “Monitoring”Check sync links to see which files are connected:
curl http://localhost:8000/api/linksEach link shows the wcp_id, the app-specific IDs, the last sync time, and the content hash.