path as a key in storage-type content blocks.
This tool is primarily used by the stdio proxy. When using
@moxn/mcp-kb locally, the proxy handles file uploads automatically — you just pass a local file path in content blocks ("type": "file", "path": "/local/path"). Call upload_url directly only if you need manual control over the upload.In HTTP/remote mode, upload_url may not work reliably because the upload requires a direct connection to the Moxn storage service.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | MIME type of the file (e.g., "image/png", "application/pdf") |
filename | string | No | Optional filename for display in the UI |
Supported MIME Types
- Images:
image/jpeg,image/png,image/gif,image/webp,image/svg+xml - Documents:
application/pdf,application/vnd.openxmlformats-officedocument.wordprocessingml.document(docx), xlsx, pptx, doc, xls, ppt, odt, ods, rtf - Data:
text/csv - Text/Code:
text/plain,text/markdown,application/json,application/xml,text/yaml,text/html - Archives:
application/zip,application/gzip,application/x-tar - Other:
application/epub+zip
Response
path— use this as thekeyfield intype: "storage"content blockstoken— a presigned PUT URL, valid for 1 hour
Manual Upload Workflow
Stdio Proxy Automatic Upload
When using@moxn/mcp-kb (stdio), you don’t need to call upload_url directly. Pass a local path in content blocks and the proxy handles the rest:
- Reads the file from disk
- Calls
upload_urlto get a presigned URL - Uploads the file
- Transforms the block to
type: "storage"before forwarding to the server
Related
sections— usetype: "storage"content blocks with the returnedpathaskey