Skip to main content
Glama
EventPhotos IO Upload Companion

EventPhotos IO Upload Companion

README.md
# EventPhotos IO upload companion

`@eventphotos-io/mcp-uploader` is a local MCP server that lets your AI app upload photos from your computer to your
EventPhotos IO events. The EventPhotos IO connector itself runs on our server and cannot read files on your computer;
this companion does that part.

It works in apps that run local MCP servers: Claude Desktop, Claude Code, Codex and Cursor. It needs an EventPhotos IO
Business account.

## Install

Always install major version 1 (`@eventphotos-io/mcp-uploader@1`), so you get fixes but never a breaking change.

### Claude Desktop

Download the `.mcpb` file from the help article
[Install the upload companion](https://www.event-photos.io/Home/help/install-the-upload-companion/) and open it. Claude
Desktop shows an install dialog; choose **Install**.

Or add it to `claude_desktop_config.json` (Settings > Developer > Edit Config):

```json
{
  "mcpServers": {
    "eventphotos-uploader": {
      "command": "npx",
      "args": ["-y", "@eventphotos-io/mcp-uploader@1"]
    }
  }
}
```

### Claude Code

```sh
claude mcp add eventphotos-uploader -- npx -y @eventphotos-io/mcp-uploader@1
```

### Codex

Add to `~/.codex/config.toml`:

```toml
[mcp_servers.eventphotos-uploader]
command = "npx"
args = ["-y", "@eventphotos-io/mcp-uploader@1"]
```

### Cursor

Add to `~/.cursor/mcp.json` (or `.cursor/mcp.json` in a project):

```json
{
  "mcpServers": {
    "eventphotos-uploader": {
      "command": "npx",
      "args": ["-y", "@eventphotos-io/mcp-uploader@1"]
    }
  }
}
```

Node.js 20 or later must be installed for the `npx` setups. Claude Desktop brings its own for the `.mcpb`.

## First use

The first time the companion talks to EventPhotos IO, it opens your browser so you can sign in and approve it. It asks
for four permissions only: see your events (`events:read`), add image folders and monitored FTP folders and change upload
settings when you agree (`events:write`), see photo intake status (`intake:read`), and create its own FTP login
(`ftp:sublogin`).

The sign-in is kept in your operating system's keychain: Keychain on macOS, Credential Manager on Windows, and a Secret
Service keyring (GNOME Keyring or KWallet) on Linux. It is never written to a file. If no keychain is available, the
tools that talk to EventPhotos IO (`plan_upload`, `upload_photos`, `list_events`, `get_intake_status`,
`get_event_links`, `get_results_import_status`, `preview_results_url`, `import_results`) will not run until one is; scanning a folder still works.

On your first upload, the companion creates its own FTP login (an FTP sub-login) on your EventPhotos IO account. It
uploads into your existing event folders with that login; your main FTP login and its password are never used. The
sub-login's password is kept in your OS keychain next to the sign-in, so companions on the same computer (for example
Claude Desktop and Claude Code) share it. The number of these app FTP logins an account can have is a small number set
by EventPhotos IO (two by default). They are listed on your FTP page and under Connected apps, and are removed when you
disconnect the app. Your own FTP account must already be set up.

### Firewalls

The companion connects to the EventPhotos IO FTP server on **port 2021** (FTPS with explicit TLS) and uses passive data
ports **40000-40500**. If your network only allows some outgoing connections, allow those ports.

## Accepted files

The companion uploads only what the EventPhotos IO FTP intake imports: **JPEG and TIFF photos** (`.jpg`, `.jpeg`,
`.tif`, `.tiff`).

PNG, HEIC, RAW (`CR2`, `CR3`, `NEF`, `ARW`, `DNG`, `RAF`, `ORF`, `RW2`), GIF, WEBP and BMP files are never uploaded.
The scan and the plan list them as left out, with the reason "not accepted by intake, export as JPEG". Export them as
JPEG first if you want them in the event. Hidden and system files, and every other file type, are skipped too.

The plan, and the upload again just before each file is sent, also make the intake's own checks, so nothing it would
refuse is uploaded:

- **Contents.** The first bytes of every file must really be a JPEG or a TIFF. A file that only has a photo's name
  (for example a renamed ZIP or document) is left out with the reason "file contents do not match its name". This
  protects your FTP login: the intake removes such files, and if three different removed files are uploaded on two or
  more days within 30 days, the FTP login is turned off.
- **Size.** Files smaller or larger than the intake's limits are left out, with the limit in the reason (for example
  "smaller than the intake minimum of 1 KB"). The limits come from EventPhotos IO with each plan and are checked again
  when the upload starts.

The plan lists the left-out files by name, and the confirmation shows how many were left out for each reason.

## Uploading

Ask your AI app something like "Upload the photos in my Race 2026 folder to my race event". It will:

1. find the event (`list_events`),
2. scan the folder and its subfolders (`scan_folder`),
3. match each folder to an image folder of the event (`plan_upload`, see [Folders and settings](#folders-and-settings)),
   asking you about any folder it cannot match,
4. make a plan (`plan_upload` again): the image folders and monitored FTP folders it will create, photo counts, sizes,
   photos already uploaded, photos left out and why, the credit cost and your balance, anything that would stop the
   photos being imported, and an estimated time,
5. show you the plan and wait for your yes,
6. upload (`upload_photos`). If your app supports it, the companion asks you directly to confirm. It creates the folders
   the plan lists, then uploads,
7. report progress (`upload_progress`) and, when it is done, intake status and links (`get_intake_status`,
   `get_event_links`).

Good to know:

- Uploads go to draft and live events alike, into the monitored FTP folder of each image folder. The companion creates
  the ones a plan needs after you approve it.
- Only JPEG and TIFF photos are uploaded (see [Accepted files](#accepted-files)).
- Each folder in a plan covers the photos directly inside it. Subfolders are planned separately.
- If two photos would land in one FTP folder with the same name, the later one is renamed. Nothing on the server is
  overwritten.
- Nothing is ever deleted, on your computer or on EventPhotos IO.
- Uploads run 4 at a time. If an upload stops, plan the same folders again: photos already uploaded are skipped. The
  record of finished photos (no passwords, no local paths) is kept in:
  - macOS: `~/Library/Application Support/EventPhotos IO Uploader/`
  - Windows: `%APPDATA%\EventPhotos IO Uploader\`
  - Linux: `~/.local/share/eventphotos-mcp-uploader/`

## Folders and settings

Every photo goes into an image folder (a photo category) of the event. `plan_upload` works in two steps:

1. **Matching.** Called with just your local folders, it maps each one to the image folder of the same name, ignoring
   case, spaces and punctuation ("finish-line" matches "Finish Line"). For a folder with no match it returns
   `needs_decision`: similar image folders (small typos, shared words, one name inside the other) and a proposed new
   name. Your AI app asks you whether to use one of them or create a new image folder. New names are 2 to 64
   bytes long in UTF-8 (an accented letter usually counts 2) and must differ from the event's other image folders.
2. **The plan.** Called again with every folder resolved (`image_folder_id` for an existing folder, `new_folder_name`
   for a new one), it returns the plan. Nothing is created yet: the plan lists under `will_create` the image folders and
   monitored FTP folders that `upload_photos` will create once you approve.

The plan also shows the credit cost (`estimate_upload_cost`: total, per photo, your balance and any shortfall, with the
event's edit preset and whether it keeps originals, which costs extra credits per photo) and
`blockers`, each with its fix:

| Blocker | Fix |
|---|---|
| "Accept image uploads" is off (new events start with it off) | Turn it on with `update_upload_settings` (`accept_uploads=true`) |
| More photos than the event's limit (100 on a new event) | Raise `max_photos` with `update_upload_settings`, up to your plan's limit |
| Not enough credits | Buy credits in the dashboard, plan fewer photos, or change the settings that cost credits |
| FTP is not ready | Finish FTP setup on the FTP page of the dashboard |

Your AI app changes an upload setting only after you agree to that change. `upload_photos` checks the blockers again
and refuses, creating nothing, while any remain. When it runs, it reports the ids of the image folders and monitored
FTP folders it created. If an upload stops or fails after that, those monitored FTP folders stay on for 72 hours, and
running the plan again (or planning the same folders again) reuses them.

The companion also passes these EventPhotos IO tools through: `list_image_folders`, `get_upload_settings`,
`update_upload_settings`, `estimate_upload_cost`, `get_photo_sales_settings` and `update_photo_sales_settings` (the AI
shows you the current sales mode and prices and changes them only after you agree; paid and hybrid need Stripe connected).

## Security

- Photos are uploaded over FTPS with explicit TLS only, and the server's certificate is verified. If the server will not
  encrypt the connection, the companion stops before sending anything.
- Each connected app gets its own FTP login. Your main FTP login and its password are never used or sent anywhere.
- The app FTP login's password is kept in your OS keychain: never on disk in clear, in logs, or in anything shown to the
  AI.
- The companion only reads the folders you name, refuses symbolic links, your home folder itself, drive roots, hidden
  folders and system folders, and caps how deep and how many files it scans.
- File and folder names are returned to the AI marked as untrusted data, with control characters removed.

## Development

```sh
npm ci
npm run build       # TypeScript to dist/
npm test            # unit and integration tests (fake FTPS and fake EventPhotos IO servers)
npm run pack:mcpb   # build/eventphotos-mcp-uploader-<version>.mcpb
npm pack --dry-run  # what would be published
```

Point the companion at a development site with `EVENTPHOTOS_MCP_URL`, for example
`EVENTPHOTOS_MCP_URL=http://mcp-connector.dev.localhost:8123/mcp`. Plain `http://` is accepted only for `localhost`,
`127.0.0.1` and `*.localhost`. If the development FTP server uses a self-signed certificate, trust it with
`NODE_EXTRA_CA_CERTS=/path/to/cert.pem`; the companion never turns certificate checks off.

Every request to EventPhotos IO carries `User-Agent: eventphotos-mcp-uploader/<version>` and
`X-EventPhotos-Companion-Version: <version>`, so the server can ask old versions to upgrade.

Releases are published from a separate public repository with npm provenance; see `PUBLISHING.md`. The package has no
install scripts.

TDQS

A3.9/5.0

Scored across 16 tools

Disambiguation4/5

Most tools target a clearly distinct step of the workflow: scanning, planning, uploading, progress, plus per-domain get/update pairs for settings and photo sales. A couple of boundaries blur: estimate_upload_cost largely restates what plan_upload already returns (credits and blockers), and get_results_import_status vs preview_results_url share near-identical descriptions about searching the web for a results link, which invites misselection. The plan_upload/upload_photos/upload_progress trio is well separated by the descriptions.

Naming Consistency5/5

Consistent snake_case verb_noun pattern throughout: scan_folder, plan_upload, upload_photos, list_events, get_intake_status, list_image_folders, get/update_upload_settings, estimate_upload_cost, get/update_photo_sales_settings, preview_results_url, import_results. The get_/list_/update_ pairs are predictable and the only noun-only name (upload_progress) still fits the upload_* family.

Tool Count4/5

16 tools sits at the upper edge of comfortable for what is nominally an upload companion, but the surface genuinely spans five areas: local scanning/upload, event metadata, upload settings, photo sales, and race-results import. Photo sales and results import feel like adjacent modules rather than core upload concerns, but each is only 2-3 tools and earns its place.

Completeness4/5

The upload lifecycle is well covered end to end: scan, dry-run plan, execute, progress, plus intake status, settings and cost checks. Gaps exist around control and inspection: there is no cancel/abort for a running upload, no retry of failed photos beyond rerunning upload_photos, no tool to list photos already in an image folder, and no event creation despite list_events. These are workable-around but real dead ends for an agent mid-upload.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues