Gitea: Upload start
gitea_upload_startStart a Gitea release asset upload session and get a per-user endpoint for sending raw file bytes with a Bearer token, with a 1-hour TTL and a 500 MB default cap.
Instructions
[UNIFIED] Start a Gitea binary upload session. First supported kind is release_asset. On per-user MCP endpoints this returns /u/{user_id}/{alias}/gitea-upload/{session_id}, so callers can PUT raw bytes with curl --data-binary @file using the same Bearer token. TTL 1h, hard cap 500 MB by default.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>",
"owner": "<owner>",
"repo": "<repo>",
"release_id": "<release_id>",
"filename": "<filename>",
"total_bytes": "<total_bytes>"
},
"name": "gitea_upload_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | release_asset | |
| repo | Yes | ||
| site | Yes | ||
| owner | Yes | ||
| sha256 | No | ||
| filename | Yes | ||
| release_id | Yes | ||
| total_bytes | Yes |