Skip to content

manage_attachments

Manage Jira issue attachments.

ActionDescriptionRequired ParamsPermission
listList attachments on an issueissue_keyBROWSE_PROJECTS
downloadDownload an attachmentattachment_idBROWSE_PROJECTS
uploadUpload a file as an attachmentissue_key, file_pathCREATE_ATTACHMENTS
deleteDelete an attachmentattachment_idDELETE_ALL_ATTACHMENTS
ParameterTypeDescription
actionstringRequired. list, download, upload, or delete
issue_keystringJira issue key (for list, upload)
attachment_idstringAttachment ID (for download, delete)
file_pathstringAbsolute path to the file to upload (for upload). Note: paths refer to the MCP server’s filesystem. In stdio mode this is the local machine.
{
"action": "list",
"issue_key": "PROJ-123"
}

Response:

{
"issue_key": "PROJ-123",
"total": 2,
"attachments": [
{
"id": "10200",
"filename": "screenshot.png",
"author": "Jane Doe",
"created": "2025-01-14T10:00:00.000+0000",
"size": 245760,
"mime_type": "image/png"
},
{
"id": "10201",
"filename": "logs.txt",
"author": "Bob Smith",
"created": "2025-01-14T11:00:00.000+0000",
"size": 1024,
"mime_type": "text/plain"
}
]
}
{
"action": "download",
"attachment_id": "10200"
}

Response:

{
"attachment_id": "10200",
"filename": "screenshot.png",
"size": 245760,
"mime_type": "image/png",
"saved_to": "/tmp/jtk-downloads/screenshot.png",
"status": "downloaded"
}

Downloaded files are saved to a temporary directory at /tmp/jtk-downloads/.

{
"action": "upload",
"issue_key": "PROJ-123",
"file_path": "/path/to/report.pdf"
}

Response:

{
"id": "10202",
"filename": "report.pdf",
"size": 51200,
"mime_type": "application/pdf",
"issue_key": "PROJ-123",
"status": "uploaded"
}
{
"action": "delete",
"attachment_id": "10200"
}

Response:

{
"attachment_id": "10200",
"status": "deleted"
}