GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
MCP server for downloading, uploading, and deleting Jira Cloud attachments by ID.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
ATLASSIAN_SITE_URL, ATLASSIAN_EMAIL, ATLASSIAN_API_TOKEN标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"atlassian-attachments": {
"command": "uvx",
"args": [
"mcp-atlassian-attachments"
],
"env": {
"ATLASSIAN_SITE_URL": "your-value",
"ATLASSIAN_EMAIL": "your-value",
"ATLASSIAN_API_TOKEN": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add atlassian-attachments --env ATLASSIAN_SITE_URL=your-value --env ATLASSIAN_EMAIL=your-value --env ATLASSIAN_API_TOKEN=your-value -- uvx mcp-atlassian-attachments运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"atlassian-attachments": {
"command": "uvx",
"args": [
"mcp-atlassian-attachments"
],
"env": {
"ATLASSIAN_SITE_URL": "your-value",
"ATLASSIAN_EMAIL": "your-value",
"ATLASSIAN_API_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"atlassian-attachments": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-atlassian-attachments"
],
"env": {
"ATLASSIAN_SITE_URL": "your-value",
"ATLASSIAN_EMAIL": "your-value",
"ATLASSIAN_API_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
ATLASSIAN_SITE_URL envATLASSIAN_EMAIL env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 alyiox 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:ATLASSIAN_API_TOKEN
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.3.0)于2个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A Model Context Protocol (MCP) server for downloading Jira Cloud attachments by attachment ID to local disk, and uploading local files as attachments to a Jira issue.
Supplement to the official Atlassian MCP server.
The official Atlassian MCP server covers search, issue management, and content operations but does not move attachment files between Jira and local disk. This server fills that gap.
Requirements: Python 3.13+, an Atlassian Cloud account, and an API token with at least the read:jira-work scope. Uploading also needs write:jira-work.
Scoped tokens are recommended to limit access to exactly the permissions needed.
Note: The granular
read:attachment:jirascope is not sufficient — Jira's attachment metadata endpoint (/rest/api/3/attachment/{id}) requiresread:jira-workto resolve issue-level permissions. A classic (unscoped) API token also works.
read:jira-work (add write:jira-work to upload), or choose "Classic API token" for full accessThe fastest way to try the server is with the MCP Inspector. Set the three required environment variables and run:
From the published package (no clone needed):
ATLASSIAN_SITE_URL=https://yourorg.atlassian.net \
ATLASSIAN_EMAIL=your.email@example.com \ ATLASSIAN_API_TOKEN=your-api-token \ npx -y @modelcontextprotocol/inspector@latest uvx mcp-atlassian-attachments
From a local clone:
ATLASSIAN_SITE_URL=https://yourorg.atlassian.net \
ATLASSIAN_EMAIL=your.email@example.com \ ATLASSIAN_API_TOKEN=your-api-token \ npx -y @modelcontextprotocol/inspector@latest uv run mcp-atlassian-attachments
Set environment variables or create a config file. Environment variables take priority.
Environment variables:
export ATLASSIAN_SITE_URL="https://yourorg.atlassian.net"
export ATLASSIAN_EMAIL="your.email@example.com" export ATLASSIAN_API_TOKEN="your-api-token"
Config file (~/.config/mcp-atlassian-attachments/config.json):
{
"site_url": "https://yourorg.atlassian.net", "email": "your.email@example.com", "api_token": "your-api-token" }
| Tool | Description | Required params |
|---|---|---|
| `download_jira_attachment` | Download a Jira attachment by ID. | attachment_id, output_dir |
| `upload_jira_attachment` | Upload a local file as an attachment on a Jira issue. | issue_key, file_path |
| `get_jira_attachment_reference` | Resolve an existing attachment into an ADF media node. | attachment_id |
| `delete_jira_attachment` | Permanently delete an attachment by ID. | attachment_id |
download_jira_attachment| Parameter | Type | Description |
|---|---|---|
attachment_id | string | Jira attachment ID |
output_dir | string | Local directory for the saved file. Created automatically if it does not exist. |
filename | string (optional) | Override filename. Uses metadata filename when omitted. |
overwrite | bool (optional) | Replace an existing file. Defaults to false. |
Returns:
{
"product": "jira", "attachmentId": "439535", "filename": "screenshot.png", "mimeType": "image/png", "size": 496724, "path": "/your/output/dir/screenshot.png", "attachmentUrl": "https://yourorg.atlassian.net/rest/api/3/attachment/content/439535" }
upload_jira_attachment| Parameter | Type | Description |
|---|---|---|
issue_key | string | Jira issue key or ID, for example PROJ-123 |
file_path | string | Path to the local file to upload. Must exist. |
filename | string (optional) | Name to store in Jira. Uses the local filename when omitted. |
Returns:
{
"product": "jira", "issueKey": "PROJ-123", "attachmentId": "600100", "filename": "report.png", "mimeType": "image/png", "size": 24581, "path": "/your/local/dir/report.png", "attachmentUrl": "https://yourorg.atlassian.net/rest/api/3/attachment/content/600100", "mediaId": "6df94659-caa7-4561-bbe3-6384ec534bba" }
Each call adds a new attachment; Jira does not replace a same-named file. Uploads larger than the site attachment size limit fail with a 413.
get_jira_attachment_reference| Parameter | Type | Description |
|---|---|---|
attachment_id | string | Jira attachment ID |
Read-only. Returns mediaId for an attachment that is already on an issue:
{
"product": "jira", "attachmentId": "439535", "filename": "screenshot.png", "mimeType": "image/png", "size": 496724, "attachmentUrl": "https://yourorg.atlassian.net/rest/api/3/attachment/content/439535", "mediaId": "6df94659-caa7-4561-bbe3-6384ec534bba" }
After an upload you do not need this tool — upload_jira_attachment already returns mediaId, so embedding costs no extra call.
delete_jira_attachment| Parameter | Type | Description |
|---|---|---|
attachment_id | string | Jira attachment ID to delete permanently |
Needs write:jira-work. Metadata is read before the delete, so the result reports what was removed and a missing ID fails without attempting anything:
{
"product": "jira", "attachmentId": "481718", "filename": "delete-me.txt", "mimeType": "text/plain", "size": 31, "deleted": true }
There is no undo. Jira deletes the file outright, and a second call to the same ID fails with
404.
Deleting does not clean up references. If the attachment was embedded in a description or comment, the ADF media node stays exactly where it was and becomes a dangling reference — verified against a live issue. Remove the node yourself if you delete a file that was referenced.
Uploading a file attaches it, but nothing appears inline in the description or a comment. Rendering it requires an ADF media node — and that node identifies the file by its Media Services UUID, not by the numeric attachment ID:
{
"type": "mediaSingle", "attrs": { "layout": "center" }, "content": [ { "type": "media", "attrs": { "type": "file", "id": "6df94659-caa7-4561-bbe3-6384ec534bba", "collection": "", "alt": "report.png" } } ] }
No Jira attachment metadata endpoint exposes that UUID, which is why this server resolves it: GET /rest/api/3/attachment/content/{id} answers with a 303 to https://api.media.atlassian.com/file/{mediaId}/binary, so reading the Location header without following the redirect yields the UUID at no download cost. The UUID exists as soon as the file is attached — it does not depend on the attachment being referenced anywhere.
Both tools therefore return mediaId. Writing the node into the issue is deliberately left to a Jira content tool such as the official Atlassian MCP server, whose addCommentToJiraIssue and editJiraIssue accept contentFormat: "adf" — this server moves files and does not edit issue content:
upload_jira_attachment → take mediaId from the result{
"version": 1, "type": "doc", "content": [ { "type": "paragraph", "content": [{ "type": "text", "text": "Latest run:" }] }, { "type": "mediaSingle", "attrs": { "layout": "center" }, "content": [ "...the media node..." ] } ] }
For a description, read the existing ADF, append the node, and write the whole document back — PUT /rest/api/3/issue/{key} replaces the field rather than appending to it.
Notes:
media node is not rendered; it must be wrapped in mediaSingle (single file), mediaGroup (file-card list), or mediaInline (inline chip).collection is "" for Jira issue attachments.width/height on the media node set the intrinsic pixel size, and are only honoured inside mediaSingle.mediaId is best-effort: if the redirect cannot be read it comes back null, and the upload itself still succeeds.The older v2 endpoints still accept wiki markup and convert it to ADF server-side, resolving the attachment by filename — so no media UUID is needed:
POST /rest/api/2/issue/PROJ-123/comment
{ "body": "See attached: !report.png|thumbnail!" }
Jira stores that as a proper media node with the correct UUID filled in. Confirmed working on Jira Cloud as of August 2026.
Two behaviours to know about, both verified against a live issue:
width: 200, height: 183 regardless of the image — a 64x48 and an 8x8 PNG both came back as 200x183. !file|width=300! sets the width but leaves height at 183, so the aspect ratio is wrong unless you write the ADF yourself.ambiguous.png, !ambiguous.png! resolved to the *first* one uploaded. Re-uploading under the same name to "update" an image will keep showing the old file.Prefer mediaId when you want to be explicit: it is unambiguous with duplicate names, it lets you set true dimensions, it works with v3/ADF (which is what the official Atlassian MCP server writes), and it does not depend on a legacy path Atlassian may eventually retire.
Add the following to your MCP host's config file. The JSON is the same for Cursor (.cursor/mcp.json), Claude Desktop (claude_desktop_config.json), and Claude Code (.claude.json).
{
"mcpServers": { "atlassian": { "command": "uvx", "args": ["mcp-atlassian-attachments"], "env": { "ATLASSIAN_SITE_URL": "https://yourorg.atlassian.net", "ATLASSIAN_EMAIL": "your.email@example.com", "ATLASSIAN_API_TOKEN": "your-api-token" } } } }
ATLASSIAN_API_TOKEN is never logged or included in error messages.Authorization header is never exposed in tool output or errors.output_dir.file_path and send nothing else.uv run pytest tests/ -v
/wiki/api/v2/) and a different identifier model. Planned for a future release.MIT. See LICENSE.