oss-upload
Upload files, text, or base64 content to Aliyun OSS. Provide a local file path or inline content with filename to store under an agents/ prefix, then get status, size, key, and URL.
Instructions
Upload a file to Aliyun OSS. Object name is MD5(content) + extension under an agents/ prefix.
Provide exactly one source:
local_file_path: absolute path on the machine running this MCP server
content: UTF-8 text (generated HTML/Markdown/JSON); requires filename
content_base64: binary (optional data:*;base64, prefix); requires filename
filename is required for content / content_base64 and may override the suffix when using a path. Example: report.html. Prefix default agents/docs; must start with agents/. Decoded size cap 100MB — large files use local_file_path. Credentials: OSS_ACCESS_KEY_ID, OSS_ACCESS_KEY_SECRET, OSS_BUCKET, OSS_ENDPOINT (or OSS_TEST_*). Returns {status, file_size, key, url}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | ||
| filename | No | ||
| content_base64 | No | ||
| local_file_path | No | ||
| oss_path_prefix | No | agents/docs |