create_issue_comment_attachment
Attach a local file to a specific issue comment by providing its comment ID and file path, with optional custom name.
Instructions
Upload a local file as an attachment on one issue COMMENT by its comment_id (get the id from list_comments; multipart/form-data, same shape and rules as create_issue_attachment). file_path reads a LOCAL file from the machine running gitea-mcp — confirm with the user before uploading any file. The path is confined the same way (upload root, extension allow-list, sensitive locations, 50 MiB cap). Optional name overrides the stored filename (defaults to the file's basename). Returns the created attachment including its id. RISK: instances can disable attachments (404) and cap upload size (oversized files fail 413/422).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Attachment name stored on the server (defaults to the file's basename) | |
| repo | No | Repository name (defaults to GITEA_DEFAULT_REPO) | |
| owner | No | Repository owner (defaults to GITEA_DEFAULT_OWNER) | |
| file_path | Yes | LOCAL path (on the machine running gitea-mcp) to the file to upload — confirm with the user first. Must resolve inside the upload root (server working directory or GITEA_UPLOAD_ROOT), pass the extension allow-list, avoid sensitive locations, and stay under the size cap | |
| comment_id | Yes | Comment ID |