BA

b1ff/atlassian-dc-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

110 stars 49 forks 质量 84 趋势 14MIT

b1ff/atlassian-dc-mcp 是从 https://github.com/b1ff/atlassian-dc-mcp. 导入的 MCP 服务器候选

概览

b1ff/atlassian-dc-mcp 是从 https://github.com/b1ff/atlassian-dc-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

注: 这是一个社区维护的项目,与Atlassian无关联、不认可或支持。 自行决定使用。

该项目为 Atlassian 数据中心产品(包括 Jira、Confluence 和 Bitbucket)提供了模型上下文协议(MCP)集成。

快速布置

每个包都附带一个交互式 setup 子命令,将你的凭证存储在操作系统上最安全的地方。每个产品运行一次:

设置CLI会提示主机、API基础路径、默认页面大小和API令牌。保存前,它会验证明显的输入错误,并对所选Atlassian产品执行定时认证请求,确保在设置时发现有问题的主机、基路径或令牌。

CLI 标志与非交互模式

设置允许标记,因此你可以预填充数值或完全跳过提示(对脚本引导、CI或远程会话非常有用)。运行npx @atlassian-dc-mcp/ setup --help即可获得完整列表。

旗帜 短 描述
--host -H 宿主,例如jira.example.com
--api-base-path -b API 基础路径或完整 URL
--token -t API令牌

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Atlassian Data Center MCP

Note: This is a community-maintained project and is not affiliated with, endorsed by, or supported by Atlassian. Use at your own discretion.

This project provides a Model Context Protocol (MCP) integration for Atlassian Data Center products, including Jira, Confluence, and Bitbucket.

Quick Setup

Each package ships an interactive setup subcommand that stores your credentials in the most secure place available on your OS. Run it once per product:

npx @atlassian-dc-mcp/jira setup
npx @atlassian-dc-mcp/confluence setup
npx @atlassian-dc-mcp/bitbucket setup

The setup CLI prompts for host, API base path, default page size, and API token. Before saving, it validates obvious input mistakes and performs a timed authenticated request to the selected Atlassian product, so a bad host, base path, or token is caught during setup.

CLI flags and non-interactive mode

Setup accepts flags so you can prefill values or skip prompts entirely (useful for scripted bootstrap, CI, or remote sessions). Run npx @atlassian-dc-mcp/ setup --help for the full list.

Flag Short Description
--host -H Host, e.g. jira.example.com
--api-base-path -b API base path or full URL
--token -t API token
--default-page-size -s Default page size (positive integer)
--non-interactive -n Skip prompts; fail if a required value cannot be resolved
--help -h Show usage and exit

In interactive mode, any flag you pass prefills its prompt (so e.g. --host skips the host prompt but still asks for the rest). In --non-interactive mode, setup resolves anything missing from existing configuration (process env, ~/.atlassian-dc-mcp/.env, or macOS Keychain) and exits non-zero if a host (or full-URL --api-base-path) and token cannot be found. An existing token is reused when --token is omitted.

# Scripted, no prompts, write everything from flags
npx @atlassian-dc-mcp/jira setup --non-interactive \
  --host jira.example.com \
  --token "$JIRA_TOKEN"

# Re-validate the existing token without re-entering it
npx @atlassian-dc-mcp/jira setup --non-interactive --host jira.example.com

Credential validation behaves differently between modes: interactive mode offers retry/save-anyway prompts on failure, while --non-interactive exits with code 1 on the first validation failure so it can be used as a CI gate.

Token storage:

  • macOS — written to the login Keychain via /usr/bin/security (service atlassian-dc-mcp, account -token).
  • Linux — written to ~/.atlassian-dc-mcp/.env with POSIX mode 0600 (read/write for your user only; other local user accounts cannot read it).
在 GitHub 查看完整 README

安装

npx -y @atlassian-dc-mcp/jira
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "atlassian-jira-dc": { "command": "npx", "args": ["-y", "@atlassian-dc-mcp/jira"] }, "atlassian-confluence-dc": { "command": "npx", "args": ["-y", "@atlassian-dc-mcp/confluence"] }, "atlassian-bitbucket-dc": { "command": "npx", "args": ["-y", "@atlassian-dc-mcp/bitbucket"] } } }