Skip to content
Set up your agent

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/mcp

The 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:

npm install -g @buildinternet/uploads && uploads login

Then 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@uploads

Codex 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.

AGENTS.md
## Screenshots
When a change is visible (UI, layout, styling), capture it as you go.
Don't wait for the PR. After each meaningful visual change, upload the
screenshot with the uploads MCP server: call `sign_upload_url` with the
file name, `repo`, `branch`, and `state: "after"`, then run the curl
line 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 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 install adds 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 create opens 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 mcp

Experimental: AI labels #

uploads.sh can label each uploaded image with AI, and hold a file for review when it may show a secret or personal data. Both are experimental and off by default. See AI labels & holds, including held uploads.