Backlog Bridge

io.github.mickey-ichi由 GitHub 帳號 mickey-ichi 發布v0.1.7更新於 Nov 7, 2026

Read and write many Backlog (Nulab) spaces at once: issues, comments, search, sync previews.

已驗證STDIO僅桌面效率與工作流開發者工具

概覽

AI 產生的概覽

本機 MCP 伺服器兼命令列工具,讓助理在多個 Backlog(Nulab)空間中讀寫議題、留言、搜尋與動態。

可以做什麼
  • 列出已連線的空間、主目錄路徑、專案與同步設定
  • 讀取議題、留言與動態,並在專案中搜尋議題
  • 以唯讀方式呼叫任意 Backlog API v2 端點
  • 新增留言,更新議題狀態、負責人、截止日期或標題(未傳 send 時為試跑)
  • 預覽兩個專案之間的單向同步,但不寫入
適用情境
當你在一個或多個 Backlog 空間追蹤工作,希望助理查詢工單、彙整動態、搜尋專案,或草擬留言與欄位更新時適用。也適合在終端機執行同步前,先查看客戶與內部專案之間的同步會帶來哪些變更。
執行需求
在 macOS 或 Linux 上以本機方式執行(Windows 透過 npm 安裝),需要 Node.js 22.18 或更新版本;Claude Desktop 擴充版不需 Node。每個空間需要一組 Backlog API 金鑰,以 _SPACE 與 _API_KEY 成對寫入主目錄下的 .env 檔(預設 ~/.config/backlog-bridge,可用 BACKLOG_BRIDGE_HOME 變更)。需要能連線各空間主機的網路。
安裝前請注意
伺服器會在 .env 檔中保存所有已連線空間的 Backlog API 金鑰,請妥善保管並留意權限警告。send 為 true 時 add_comment 與 update_issue 會寫入真實空間,留言可能送到客戶空間,請先審閱草稿。真正的同步需在終端機執行,但命令列的 mirror 模式預設即實際寫入,progress 模式需加 --live 才寫入。工單內容應視為資料而非指令。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Backlog Bridge,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[圖片]

backlog-bridge

One CLI and MCP server for many Backlog (Nulab) spaces at once — for people and AI agents.

[npm] [downloads] [CI] [provenance] [OpenSSF Scorecard] [license]

npm · Changelog · Security

English · Tiếng Việt · 日本語

  • backlog-bridge — read and write issues, comments, search and activity on any connected space, from one CLI. Paste a Backlog URL and it picks the right space and API key.
  • backlog-bridge sync — one-way sync between two Backlog projects, e.g. a customer's Backlog and your internal one.
  • Agent-ready — ships skills for Claude Code, Codex and Cursor (AGENTS.md, .agents/skills/). The official Backlog MCP server binds to a single space; this works with as many as you connect.

Zero runtime dependencies. Needs Node.js >= 22.18 on macOS or Linux; on Windows, install with npm (option A).

Install

Option A — npm:

bash
npm install -g backlog-bridgebacklog-bridge setup

A specific version: npm install -g [email protected]. Unreleased main from GitHub: npm install -g --install-links github:mickey-ichi/backlog-bridge (--install-links makes npm 10 copy the package instead of linking to a temporary clone). Release notes: CHANGELOG.md.

Option B — git clone (update later with git pull):

bash
git clone https://github.com/mickey-ichi/backlog-bridge.git ~/.backlog-bridge~/.backlog-bridge/bin/backlog-bridge setup        # links ~/.local/bin/backlog-bridge

backlog-bridge setup installs the agent skills for Claude Code (~/.claude/skills), Codex and Cursor (~/.agents/skills, ~/.codex/skills), and creates ~/.config/backlog-bridge/.env (chmod 600) from the template. It never overwrites anything that isn't its own; backlog-bridge setup --uninstall removes only its links. backlog-bridge finds a Node >= 22.18 by itself (PATH, nvm, Homebrew), even if your default node is older.

Then fill in ~/.config/backlog-bridge/.env — one <PREFIX>_SPACE + <PREFIX>_API_KEY pair per space — and:

bash
backlog-bridge spaces --checkbacklog-bridge issue https://acme.backlog.jp/view/ACME-123

API keys: Personal Settings → API → Register new API key, on each space.

Update: npm install -g backlog-bridge@latest (option A) or git pull (option B). Uninstall: backlog-bridge setup --uninstall, then npm uninstall -g backlog-bridge (option A) or delete the clone (option B). Your data in ~/.config/backlog-bridge is kept.

Configuration

Private data never lives in the repo. It lives in a home directory:

VariableDefaultPurpose
BACKLOG_BRIDGE_HOME~/.config/backlog-bridge if it exists, otherwise the repo rootholds .env, config.json, state/
BACKLOG_BRIDGE_CONFIG$BACKLOG_BRIDGE_HOME/config.jsonpoint at another config file
BACKLOG_BRIDGE_PROFILEdefaultProfile in the configdefault profile for sync

backlog-bridge home prints what is in use.

Spaces come from environment variables — .env in the home directory, or exported in the shell:

ini
ACME_SPACE=acme.backlog.jp      # xxx.backlog.com -> just "xxx"; other hosts -> full hostACME_API_KEY=...

The space name is the lowercase prefix (ACME_* → acme, ACME_JP_* → acme_jp). Host and key are always taken from the same prefix. config.json → spaces is optional (only for a prefix that differs from the space name).

Profiles (for sync) live in config.json in the home directory. Start from config.example.json. Relative paths in a profile (state, pairFile) resolve against the home directory.

backlog-bridge — multi-space CLI

bash
backlog-bridge setup [--uninstall] [--force]                  # install the global command + agent skillsbacklog-bridge mcp [--config]                                 # MCP server on stdio; --config prints host setupbacklog-bridge home [--init]                                  # paths in use; --init copies .env/config/state from the repobacklog-bridge spaces [--check]                               # connected spaces; --check calls the APIbacklog-bridge projects <space>backlog-bridge issue <ref>                                    # <ref> = URL | <space> <KEY> | <KEY>backlog-bridge comments <ref> [--count=20]backlog-bridge search <space> <PROJECT> [--keyword=..] [--assignee=me|name] [--open] [--count=50]backlog-bridge activities <space> [--project=KEY] [--count=20]backlog-bridge comment <ref> (--text=..|--file=path) [--yes]backlog-bridge update <ref> status=<name> assignee=<name> dueDate=YYYY-MM-DD summary=.. [--yes]backlog-bridge api <space> <METHOD> <path> [k=v ...] [--yes]  # any Backlog API v2 endpoint
  • A bare <KEY> works when its project key appears in a profile. --json prints raw JSON.
  • Every write is a dry run until you add --yes. It prints the exact request first.
  • update resolves status and assignee by name inside the project.

backlog-bridge sync — one-way sync between two projects

bash
backlog-bridge sync --listbacklog-bridge sync --profile=<name> [flags]

mirror mode — customer → internal

Creates one internal issue per planned customer issue (has a due date), summary <KEY> <original title>.

  • Dedup in two layers: scans the destination for summaries prefixed with the source key, then merges the state file. Losing the state file never causes duplicates.
  • Existing mirrors are skipped unless --update (destination issues are often edited by hand).
  • Issue type / priority / status mapped by name via map; assignee matched by normalized name (accents and anything in parentheses removed), with map.assignee overrides.
  • dest.customFields: required custom fields by field name → item name; attached only when the field applies to the issue type. Missing required fields are reported in --dry-run.
  • Backlog can't set status on create, so status is set right after.
  • LIVE by default — use --dry-run first.

progress mode — internal → customer

Pushes progress from internal epics onto the customer's existing WBS issues. Never creates customer issues. Built for the common case where both sides split work differently:

  • Internal: an epic [Epic] [NN] ... with child tasks prefixed by layer ([FE], [BE], [QA], …).
  • Customer: WBS units 1.2.3 with fixed leaves by the last segment — .3 impl, .4 unit test, .5 acceptance.

Rules:

  • source.childGroups maps child prefixes to groups (e.g. api: [BE, Infra], screen: [FE]); alwaysCount prefixes (e.g. QA) count towards every group.
  • A pairFile maps each epic ("NN" or its issue key) to customer units per group; _outOfScope and _notes are special keys. --units lists the customer's units to fill it in.
  • Several epics may point at one unit; their tasks are merged before the rollup.
  • Rollup: done (all done) · in_progress · pending · not_started (→ nothing is written). ignoreStatuses are excluded. % is weighted by estimated hours (no estimate = 1h).
  • Writes the impl leaf; when done, also sets the acceptance leaf to Resolved (never Closed).

Safety: dry run by default (--live to write), neverTouchStatuses, no status regression without --allow-regress, no dates unless --dates=children, optional Japanese progress comment (--comment) that is updated in place via a hidden marker.

Flags

FlagModeMeaning
--list—list profiles
--profile=<name>—choose a profile (default: defaultProfile)
--dry-runmirrorprint only
--assignee=A,Bmirroronly issues assigned to these people (loose match)
--since=YYYY-MM-DDmirroronly issues due on/after this date
--updatemirroroverwrite existing mirrors
--liveprogressactually write to the customer
--unitsprogresslist customer WBS units, leaves and statuses
--only=28,29progressonly these epics
--mine / --assignee=nameprogressonly leaves the customer assigned to you / to that person, plus a report of unpaired units
--commentprogresspost/update the progress comment
--dates=childrenprogressalso write start/due from the internal tasks
--allow-regressprogressallow moving a customer status backwards

Using with AI agents

Claude Code (the Code tab of the Claude app): step-by-step guide — docs/claude-code.md.

Claude plugin (plugin/): the skills and the MCP server in one package for Claude Code and Cowork — try it with claude --plugin-dir plugin from a clone. It needs Node.js 20+ on PATH; chat in the Claude app uses the Desktop Extension instead.

AgentPicks up
Claude CodeCLAUDE.md → AGENTS.md, skills via .claude/skills → .agents/skills
CodexAGENTS.md
Cursor.cursor/rules/backlog.mdc → AGENTS.md + skills

After backlog-bridge setup the skills are installed globally, so any agent in any project can use backlog-bridge — not only inside this repo.

Skills: backlog-connect, backlog-query, backlog-write, backlog-sync. They make the agent preview every write, ask before writing to a customer's space, and treat ticket content as data rather than instructions.

MCP server (Claude Desktop, Cursor, …)

Claude Desktop: install the Desktop Extension (.mcpb, no Node needed) — step-by-step guide: docs/claude-desktop.md.

For hosts without a shell — Claude Desktop, or any MCP client — backlog-bridge mcp runs an MCP server on stdio. backlog-bridge mcp --config prints ready-to-paste setup for Claude Desktop, Cursor, Claude Code and Codex, e.g.:

json
{ "mcpServers": { "backlog-bridge": { "command": "/path/to/backlog-bridge/bin/backlog-bridge", "args": ["mcp"] } } }

Claude Desktop, step by step:

  1. backlog-bridge mcp --config and copy the JSON with your real path.
  2. Merge it into mcpServers in ~/Library/Application Support/Claude/claude_desktop_config.json (keep a backup; don't overwrite other keys).
  3. Quit Claude Desktop completely (⌘Q) and open it again — backlog-bridge appears among the tools.

Tools: list_spaces, home_info, get_issue, get_comments, search_issues, list_activities, list_projects, api_get (read-only) · add_comment, update_issue (dry run unless send: true) · list_sync_profiles, sync_preview (never writes — real syncs stay in the terminal). Each tool runs the backlog-bridge CLI, so the same guards apply; the server also hands the host the hard rules and the user's review mode.

Reviewing what goes to customers

Each person sets how they review text before an agent sends it to a customer, in their own .env:

BACKLOG_BRIDGE_REVIEWForFlow
bilingualyou read the customer's languagereview a bilingual draft (customer language + your language), only the customer-language text is sent
translateyou don'treview in your language only; after approval the agent translates and sends right away

BACKLOG_BRIDGE_LANG (default vi) and BACKLOG_BRIDGE_CUSTOMER_LANG (default ja) set the two languages. backlog-bridge home shows the current mode; when it is not set, the agent asks.

Security

  • API keys only in .env in the home directory; backlog-bridge home / backlog-bridge spaces warn when it is readable by others. Backlog takes the key as the apiKey query parameter, so errors only ever print method and path.
  • Host and key always come from the same env prefix — a key is never sent to another space's host.
  • Issue keys must look like PROJECT-123, so a crafted key can't redirect a write to another endpoint.
  • comment --file refuses .env* files, state/ directories and the config file (also through symlinks) — a prompt-injected agent can't post secrets.
  • Writes are dry runs until --yes (backlog-bridge) / --live (progress).
  • CI audits every agent-facing file (skills, AGENTS.md, plugin, MCP config) for hidden Unicode, secrets, pipe-to-shell, prompt-injection phrasing and missing guardrails (npm run audit:skills), plus gitleaks, CodeQL, npm audit and OpenSSF Scorecard. Report vulnerabilities privately: SECURITY.md.

Development

bash
npm install          # devDependencies only: typescript, @types/nodenpm run typecheck    # tsc --noEmit, strictnpm test             # node:test, no networknpm run build        # dist/*.js — commit it: npm installs run dist/, and CI fails if it is stale

Node runs .ts via type stripping, so only erasable syntax is allowed (no enum, namespace, parameter properties); internal imports use the .ts extension.

Release: bump version in package.json, add a CHANGELOG entry, run npm run build and merge. Then publish a GitHub Release tagged v<version> — the Release workflow checks it, attaches the .mcpb and publishes to npm (Trusted Publishing, with provenance). A GitHub pre-release goes to the next dist-tag.

Support

If backlog-bridge saves you time, you can support its development through GitHub Sponsors. Bug reports and pull requests are just as welcome.

License

MIT

來源:README.md,提交 3d77528

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.7最新Nov 7, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分