jira_save_attachment_to_disk
Save a cached Jira attachment to a specified path on the MCP server's filesystem using the cache key from download_attachments.
Instructions
Save a cached attachment to the MCP SERVER's filesystem.
⚠️ WARNING: This saves to the SERVER's filesystem, NOT your local client machine!
Use cases:
MCP server is running locally on your machine
Need to save files on a remote server for server-side processing
Saving to a shared network location accessible from server
For CLIENT-SIDE saving (your local VS Code machine):
Use the resource URI from download_attachments response
Your MCP client (VS Code) will fetch and save it locally
Args: ctx: The FastMCP context. cache_key: The cache_key returned from download_attachments tool target_path: Full file path on SERVER filesystem (not client's local disk)
Returns: JSON string with save result including absolute path on server
Example: # This saves to SERVER filesystem, not your local machine! save_attachment_to_disk( cache_key="abc123def456", target_path="/server/storage/design.pdf" )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cache_key | Yes | The cache key from download_attachments response | |
| target_path | Yes | Full path on MCP SERVER filesystem (e.g., '/tmp/file.pdf' or 'C:/server/downloads/file.pdf') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |