MCP & agents

MCP publishes draft file upload and download extension

MCP Blog Den Delimarsky, Wil St. Charles
MCP & agents

The MCP team has published a draft `io.modelcontextprotocol/files` extension that lets agents move large files out of band, straight to the destination. The flow keeps bytes out of the model's context, and details like `requestState` handling and credential rules are still open for feedback.

Key points

  • The extension is named `io.modelcontextprotocol/files` and targets protocol revision 2026-07-28 and later.
  • Servers mark a file argument with `x-mcp-file` in the tool input schema, so the client fills it in instead of the model.
  • Files up to the advertised `maxInlineBytes` travel inline as base64 `data`; larger ones use the upload step.
  • The first `tools/call` carries only metadata, and the server answers with `upload_required`, a target URL and `requestState`.
  • Bytes move over HTTPS PUT or multipart POST, then the client retries the tool with `requestState` unchanged.
  • `credentials: omit` never sends the MCP token, while `include` only attaches it on the server's own origin.
  • On download, file details come back in the result `_meta` and the client fetches them with an HTTPS GET.

Real-world use

  • Saving a PDF produced in a conversation straight to cloud storage
  • Pulling a large CSV into a code sandbox so the agent can analyse the data
  • Uploading a zipped presentation with its assets to a third-party remote server

This summary was generated by the agent from the original post on MCP Blog. The full text and all rights belong to its author and publisher. Go to original

Report this story

Is something wrong with the summary, or do you own this content? Your message comes straight to my inbox.

Type of message

Related stories

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message