‹ BackHN Continuity

Thread

You said no MCP

682 points · 362 comments · yarapavan

  1. ppsreejith · · focus · HN ↗
    Anyone found a good file upload solution for MCP? Or is the best practice to use HTTP to upload files outside MCP?
    1. hobofan · · focus · HN ↗
      There is a MCP SEP that outlines multiple ways, that I hope will sooner or later be accepted: <a href="https:&#x2F;&#x2F;github.com&#x2F;modelcontextprotocol&#x2F;modelcontextprotocol&#x2F;pull&#x2F;2631" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;modelcontextprotocol&#x2F;modelcontextprotocol...

      While we are waiting on that to become stabilized, we implemented a inspired&#x2F;co-evolved way to do that in our tool[0], where you mark individual fields in the request&#x2F;response schema as being file payloads, so that file exchange can be properly orchestrated by the harness and doesn&#x27;t pollute the context. We just do inline base64 uploads of the required payloads, which in practice we&#x27;ve seen to work quite will until ~100MB files (which is otherwise also the size limit we usually recommend for file processed).

      It&#x27;s annoying that it&#x27;s not stabilized yet, but for most bigger customers we&#x27;ve seen, they implement 80% of the MCP servers they connect in-house, so doing adjustments to the tool surface, and metadata has been less of a pain for them than we expected.

      [0]: <a href="https:&#x2F;&#x2F;erato.chat&#x2F;docs&#x2F;features&#x2F;mcp_servers#file-support" rel="nofollow">https:&#x2F;&#x2F;erato.chat&#x2F;docs&#x2F;features&#x2F;mcp_servers#file-support

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.