@neuronik/drop-upload
v0.2.1
Published
Upload a local image (or the clipboard) to drop and print a shareable URL — the local helper for drop.neuronik.io.
Maintainers
Readme
@neuronik/drop-upload
The local helper for drop — upload a local image (or your clipboard) and get back a shareable URL you can embed in a drop page.
Handy in Claude Code / Cursor: paste a screenshot path and your assistant can host it on drop and drop it straight into a page.
Setup
- In drop → Connect assistant → Generate upload token (shown once).
- Log in once:
npx @neuronik/drop-upload@latest login --token drop_xxxxxxxx(Self-hosted/local instance? add --url https://your-drop-host.)
Use
# Upload a file → prints the URL
npx @neuronik/drop-upload@latest ./screenshot.png
# Upload the image currently on your clipboard (macOS)
npx @neuronik/drop-upload@latest --clipboard
# Machine-readable output
npx @neuronik/drop-upload@latest ./screenshot.png --jsonThe file lands in your publication workspace (the same one your MCP assistant publishes to), with that workspace's default visibility. Supported: images (PNG, JPEG, GIF, WebP, AVIF, SVG), video (MP4, WebM), audio (MP3, WAV, OGG), PDF, and text/data (TXT, CSV, MD, JSON) — up to 25 MB.
Your token is stored in ~/.config/drop/config.json with owner-only permissions (0600).
How it fits
drop runs on the internet; your screenshot is on your machine. A remote MCP server can't read your local files — so this little command runs locally, pushes the bytes to drop, and hands back a URL your assistant can embed. That URL is access-controlled by drop (private media requires a signed/authorized request).
