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 分