Skip to content

Add screenshot watcher upload pipeline#4

Merged
IamJasonBian merged 3 commits into
mainfrom
IamJasonBian/screenshot-uploader
Mar 14, 2026
Merged

Add screenshot watcher upload pipeline#4
IamJasonBian merged 3 commits into
mainfrom
IamJasonBian/screenshot-uploader

Conversation

@IamJasonBian

@IamJasonBian IamJasonBian commented Mar 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • mcp-context.js: Support image/png and image/jpeg uploads via PUT, return base64 image data on GET. Each upload gets a unique timestamped key — multiple uploads per day never overwrite.
  • scripts/screenshot-watcher.js: Local macOS service that polls ~/Screenshots via Spotlight (mdfind) for new screenshots and uploads them to the mcp-context API. Fast 250ms polling on startup, settles to 1s.
  • CLAUDE.md: Documents the full client → server → local workflow, including how another machine can upload and this one can listen and download to ~/Documents/Screenshots.

Workflow

[Any Mac] → screenshot → watcher polls → PUT /api/mcp-context → Netlify Blobs
                                                                      ↓
[This Mac] ← ~/Documents/Screenshots ← GET /api/mcp-context ← curl/listener

Test plan

  • Verified PUT uploads text to blob store
  • Verified screenshot watcher detects new screenshots via Spotlight
  • Verified watcher uploads screenshot to Netlify Blobs (count went 5 → 6)
  • Verified GET returns uploaded entries
  • Verified screenshot copies to ~/Documents/Screenshots

- mcp-context.js: support image/png and image/jpeg uploads via PUT,
  return base64 image data on GET
- scripts/screenshot-watcher.js: polls ~/Desktop via Spotlight (mdfind)
  for new screenshots and uploads them with unique timestamped keys
- scripts/com.baku.screenshot-watcher.plist: launchd config for auto-start
- package.json: add watch-screenshots script
@netlify

netlify Bot commented Mar 14, 2026

Copy link
Copy Markdown

Deploy Preview for route-runtime-service ready!

Name Link
🔨 Latest commit 5baabf7
🔍 Latest deploy log https://app.netlify.com/projects/route-runtime-service/deploys/69b5e4480c841200088ace1f
😎 Deploy Preview https://deploy-preview-4--route-runtime-service.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@IamJasonBian IamJasonBian changed the title Desktop sync for mcp-context Add screenshot watcher upload pipeline Mar 14, 2026
@IamJasonBian
IamJasonBian merged commit 5a5b0f1 into main Mar 14, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant