Set up your agent
Teach a coding agent to upload and attach media on its own.
Connect the MCP server #
Start with the hosted MCP server. It gives the agent upload tools with nothing to install, and it works the same for an agent on your machine and one in a cloud sandbox. Add it to your runtime:
claude mcp add --transport http uploads https://agents.uploads.sh/mcpcodex mcp add uploads --url https://agents.uploads.sh/mcpAdd it in Cursor’s MCP settings, or in .cursor/mcp.json:
{ "mcpServers": { "uploads": { "url": "https://agents.uploads.sh/mcp" } }}opencode mcp add uploads --url https://agents.uploads.sh/mcpAdd a remote (Streamable HTTP) server with this URL:
https://agents.uploads.sh/mcpThe client opens a browser to sign in on first use. A client that supports MCP skills also loads the agent skills from the server. For tools, auth, and the upload flow, see the MCP server reference.
Using claude.ai or Cowork? Add uploads from the Claude directory instead.
Using Claude Code or Codex? The plugin bundles the server and the skills.
Add the CLI #
The CLI is optional for an agent that has the MCP server. Install it on your own machine for what the server can’t do:
- Capture a page and host the screenshot in one step.
- Fill in the repo and branch from git.
- Run the pre-PR reminder and the Claude Code mods.
npm install -g @buildinternet/uploads && uploads loginThen uploads install finds your agent runtimes and adds the skills and the MCP server to each.
It lists what it will set up and asks first.
No CLI, and a client without MCP skills? Add the skills by hand with
npx skills add buildinternet/uploads.
Claude Code & Codex plugins #
The plugin bundles the skills and the MCP server. In Claude Code, the uploads-mod add-on from the
same marketplace adds the pre-PR reminder and mods. Add the
marketplace, then install both:
/plugin marketplace add buildinternet/uploads/plugin install uploads@uploads/plugin install uploads-mod@uploadsCodex loads the same repo as a plugin. After you enable it, open /hooks once and trust the hook
if Codex asks.
The reminder hook calls the uploads CLI, so install it and run uploads login once.
Tell the agent to capture as it works #
Add a block like this to your project’s instructions file: AGENTS.md, CLAUDE.md,
.cursor/rules, or whatever your runtime reads.
## ScreenshotsWhen a change is visible (UI, layout, styling), capture it as you go.Don't wait for the PR. After each meaningful visual change, upload thescreenshot with the uploads MCP server: call `sign_upload_url` with thefile name, `repo`, `branch`, and `state: "after"`, then run the curlline it returns. With no shell, call `put` instead.
Add `caption` when a shot needs a word of explanation.
That stages the file for the PR. After opening the PR, call `promote`with the branch and the PR number. It's safe to call even if the GitHubApp already posted them.## ScreenshotsWhen a change is visible (UI, layout, styling), capture it as you go.Don't wait for the PR. After each meaningful visual change:
uploads put ./shot.png --meta path=/route --state after
For a mobile or desktop app screen with no route, name the screen instead:
uploads put ./shot.png --app ios --screen "Chat" --state after
Add `--caption "<what it shows>"` when a shot needs a word of explanation.
On a branch, that stages the file for the PR. After opening the PR, run`uploads attach --promote` to post everything staged. It's safe to runeven if the GitHub App already posted them.For how staging works, see Stage before a PR exists.
Want the guided version? The agent walkthrough takes a coding agent from install to a first staged before/after.
Pre-PR screenshot reminder #
Before gh pr create, the reminder hook nudges the agent if the branch touches UI files and
nothing is staged. When files are staged, it says whether they attach on their own when the PR
opens. If those files are older than 30 days, or they belong to a different branch, it suggests
uploads unstage --branch <name> instead. It never blocks the PR. Turn it off with
UPLOADS_HOOK_DISABLE=1. To check for screenshots on the PR itself, and block merges without them,
see Require screenshots on pull requests.
- Claude Code and Codex: included in the plugin.
- Grok and Cursor:
uploads installadds it when those tools are installed.
Claude Code mods #
In Claude Code, the uploads-mod plugin ships mods:
code that runs inside Claude Code and can add to its interface. It includes:
- Staged media band: shows the files staged for your branch above the prompt, and attaches them
when
gh pr createopens the PR.
Mods use the local uploads CLI, so install it and run uploads login once. Change their options,
such as the automatic attach, in /plugin. Mods need Claude Code 2.1.287 or later. Older versions,
Codex, and hosted MCP setups skip them.
Skill vs. MCP #
The skills teach the agent when to capture, and how to upload with the MCP tools or the CLI.
The hosted MCP server also serves them as skill:// resources, so a client that supports MCP
skills picks them up without installing anything.
The MCP server gives the agent upload tools directly. There are two:
| Server | Use it when | Differences |
|---|---|---|
Hosted, https://agents.uploads.sh/mcp |
Any agent, local or cloud. Start here | No attach and no git defaults. Pass repo and branch to put, then call promote once the PR exists. list_activity and list_repo_files list recent tagged files by pull request or by repo, and only this server has them. With a shell, sign_upload_url uploads files from disk. |
Local, uploads mcp |
You want git defaults and the CLI’s tools | Same tools as the CLI, including attach. Needs the CLI installed. |
For auth, scopes, and every tool’s parameters, see the MCP server reference.
To use the local server instead of the hosted one:
claude mcp add uploads -- uploads mcpcodex mcp add uploads -- uploads mcp