uploads-cli
Uploading files to uploads.sh and embedding in GitHub
What this does and why
GitHub's native image hosting (github.com/user-attachments/…) is reachable from
a browser session and, since GitHub CLI 2.99 (September 2026), from
gh … --attach on an existing PR or issue with push access. There is still no public
REST endpoint, and the hosted file is private to GitHub. Any other image URL you
put in a PR/issue body written with gh … --body-file must already point at
something publicly hosted. The github-screenshots skill says when gh --attach
alone is enough.
This skill covers both transports: the uploads CLI (local files, git,
localhost) and the hosted MCP at https://agents.uploads.sh/mcp (bytes you
already have, or a public HTTPS URL to fetch, no checkout). Both PUT to the
uploads.sh API and return a stable public URL plus ready-to-paste markdown.
For PRs and issues the managed attachments comment is available on both.
The CLI can fall back to local gh. Hosted MCP is bot-only.