oas-mcp

Guide: Multipart & File Uploads

Related: Endpoint Tool Generation (requestBody schema logic), Handling Large / Binary Responses

For operations declaring multipart/form-data the handler builds a streaming FormData.

Supported requestBody value shapes:

{ filename: 'a.txt', content: 'text' }
{ filename: 'a.bin', value: Uint8Array }
{ filename: 'a.bin', stream: Readable }

Strings & objects auto JSON-stringified when needed.

Skip manually setting Content-Type; boundary auto-managed.

Next: Query Parameter Styles.