Upload images and files from the terminal
The MCP server has two new tools. create_upload returns a one-time upload URL and a ready-made curl command; the assistant runs it, and the file goes from your machine straight to storage, never through Kookee. confirm_upload then checks that the file arrived at exactly the declared size and returns its public URL and a snippet that embeds it.
You never call them yourself:
Upload ./diagram.png, put it under the Architecture heading with a short alt text, and use ./cover.png as the cover.
Embedded the way the editor does it
JPG, PNG, GIF, SVG and WEBP files are embedded as images, with the alt text the assistant writes. Everything else — PDFs, office documents, archives, video — becomes a file chip readers click to download. The snippet carries the file's id, so the file is attached to the entry exactly like one you add in the dashboard. Comments can embed uploads too.
Cover images
create_entry and update_entry take a coverImageId, and null removes the cover. The cover shows wherever your site renders one and doubles as the entry's SEO image.
Guarded against the mistake agents make
An upload's URL written as plain markdown —  — carries no file id, so the file would never be linked and would be deleted a few days later, leaving a broken image. Writes like that are now refused with ENTRY_UPLOAD_NOT_LINKED, and the assistant pastes the snippet instead. External images, and images already used elsewhere in your project, still work as ordinary markdown. The story of why this is subtle is in MCP Can't Upload Files. Here's How to Let AI Agents Do It Anyway.
Good to know
Uploading needs an assistant that can run commands — Claude Code, Cursor in agent mode, Codex CLI. Chat apps that cannot, such as claude.ai, can still write entries; add their images in the dashboard.
Uploads accept the same file types as the dashboard and count against your plan's storage.
An uploaded file is public by URL right away, even in a draft.
A file not used in any entry or comment within 3 days is deleted.
The full walkthrough, with every error an upload can return, is in Uploading images and files from an AI assistant.
No SDK update is needed. Reconnect your MCP client so it loads the two new tools.