jira_download_attachments
Download attachments from a Jira issue to disk or cache as MCP resources for immediate access via static URIs.
Instructions
Download attachments from a Jira issue to disk, MCP resources, or both.
When resource caching is enabled, each attachment is immediately available in the MCP resource browser via a static URI — no cache key required:
jira://attachments/{issue_key}/{filename}Examples: jira://attachments/JDQU-2322/desktop-screenshot-1.png ← renders as image jira://attachments/JDQU-2322/SPyDR%20Metadata.txt ← opens as text
Cached resources are valid for 10 minutes. Re-run this tool to refresh.
Args: ctx: The FastMCP context. issue_key: Jira issue key (e.g., 'PROJ-123'). target_dir: Optional server-side save path for downloaded files. return_content: Optional flag to cache attachments as MCP resources.
Returns: JSON string with download results. Attachments may include: - filename: The attachment filename - size: File size in bytes - path: Server-side download path when target_dir is provided - static_resource_uri: Direct MCP resource URI when return_content is enabled - mime_type: MIME type of the file when return_content is enabled
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_key | Yes | Jira issue key (e.g., 'PROJ-123') | |
| target_dir | No | (Optional) Directory where attachments should be saved on the server. Preserves the legacy jira_download_attachments behavior. | |
| return_content | No | (Optional) Cache attachments as MCP resources. Defaults to true when target_dir is omitted and false when target_dir is provided. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |