Backlog MCP Server 标志

Backlog MCP Server

社区
safx

MCP server for Backlog, project management service.

发布者safx
代码仓库backlog-mcp-server-rust
语言Rust
复刻数
2
星标数
14
可用工具
0
传输类型stdio
分类
链接
  • 将工具接入 AI 工作流

    Backlog MCP Server 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 14 个 Star 和 2 个 Fork。

Backlog MCP Server (mcp-backlog-server)

codecov

mcp-backlog-server is a Model Context Protocol (MCP) server for interacting with the Backlog API. This server allows MCP-compatible clients (such as AI assistants) to utilize Backlog functionalities.

Installation

Using Homebrew (Recommended for macOS/Linux)

The easiest way to install is via Homebrew:

bash
# Add the tap (only needed once)
brew tap safx/tap

# Install the tools
brew install mcp-backlog-server  # MCP server for AI assistants
brew install blg                 # Backlog CLI tool (Optional)

To update to the latest version:

bash
brew update
brew upgrade mcp-backlog-server
brew upgrade blg

To uninstall:

bash
brew uninstall mcp-backlog-server
brew uninstall blg
brew untap safx/tap  # Optional: remove the tap

Alternative Installation Methods

For other platforms or if you prefer not to use Homebrew:

  • Pre-built binaries: Download from the releases page
  • Build from source: Clone the repository and run cargo build --release

Example Configuration for MCP Client

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json:

json
{
  "mcpServers": {
    "backlog": {
      "command": "/path/to/target/release/mcp-backlog-server",
      "args": [],
      "env": {
        "BACKLOG_BASE_URL": "https://your-space.backlog.com",
        "BACKLOG_API_KEY": "YOUR_BACKLOG_API_KEY",
        "BACKLOG_PROJECTS": "PROJ,DEMO",
        "BACKLOG_PREFIX": "backlog_"
      }
    }
  }
}

Cline

Add the following to your Cline MCP configuration:

json
{
  "mcpServers": {
    "backlog_mcp_server": {
      "autoApprove": [],
      "disabled": false,
      "timeout": 60,
      "command": "/path/to/target/release/mcp-backlog-server",
      "args": [],
      "env": {
        "BACKLOG_BASE_URL": "https://your-space.backlog.com",
        "BACKLOG_API_KEY": "YOUR_BACKLOG_API_KEY",
        "BACKLOG_PROJECTS": "PROJ,DEMO",
        "BACKLOG_PREFIX": "backlog_"
      },
      "transportType": "stdio"
    }
  }
}

Gemini CLI

~/.gemini/settings.json:

json
{
  "mcpServers": {
    "backlog_mcp_server": {
      "command": "/path/to/target/release/mcp-backlog-server",
      "timeout": 10000,
      "args": [],
      "env": {
        "BACKLOG_BASE_URL": "https://your-space.backlog.com",
        "BACKLOG_API_KEY": "YOUR_BACKLOG_API_KEY",
        "BACKLOG_PROJECTS": "PROJ,DEMO",
        "BACKLOG_PREFIX": "backlog_"
      }
    }
  }
}

Note: Domain name must be: backlog.com, backlog.jp or backlogtool.com

Available Tools

The following tools are grouped by their respective modules:

Tool Summary

With the default configuration, you have access to 39 tools for Backlog automation:

  • Documents (5 tools): View document trees, get details, download attachments, add documents, delete documents
  • Git/Pull Requests (8 tools): Manage repositories, PRs, comments, and attachments
  • Issues (15 tools): View, create, update issues, manage comments, attachments, shared files, related issues, and priorities
  • Projects (3 tools): Get project status, issue types, and custom field definitions
  • Shared Files (2 tools): Browse and download project shared files
  • Users (1 tool): List space users
  • Wikis (5 tools): Manage wiki pages, attachments, and content updates

The server includes both read operations for information gathering and write operations for taking actions.

Note: Tool names follow a category_resource_action pattern (e.g., issue_details_get, wiki_update) to enable category-based filtering with --allowedTools (e.g., claude --allowedTools "mcp__backlog__issue_*").

Document Tools

  • document_details_get: Retrieves details for a specific Backlog document
  • document_attachment_download: Download a document attachment
  • document_tree_get: Get the document tree for a specified project
  • document_add: Add a new document to a Backlog project
  • document_delete: Delete a document from Backlog

Git Tools

  • git_repository_list_get: Get a list of Git repositories for a specified project
  • git_repository_details_get: Get details for a specific Git repository
  • git_pr_list_get: Get a list of pull requests for a specified repository
  • git_pr_details_get: Get details for a specific pull request
  • git_pr_attachment_list_get: Get a list of attachments for a specific pull request
  • git_pr_comment_list_get: Get a list of comments for a specific pull request
  • git_pr_attachment_download: Download a pull request attachment
  • git_pr_comment_add: Add a comment to a specific pull request

Issue Tools

  • issue_details_get: Retrieves details for a specific Backlog issue
  • issue_milestone_list_get: Retrieves a list of versions (milestones) for a specified project
  • issue_list_by_milestone_get: Retrieves a list of issues associated with a specified milestone
  • issue_update: Updates a Backlog issue including summary, description, and custom fields
  • issue_comment_list_get: Gets comments for a specific issue
  • issue_attachment_list_get: Get a list of attachments for a specified issue
  • issue_attachment_download: Download an issue attachment
  • issue_shared_file_list_get: Get a list of shared files linked to a specified issue
  • issue_related_issue_list_get: Get related issues of a specified issue (hidden issues are reported as omittedCount)
  • issue_related_issue_add: Add a related issue to a Backlog issue
  • issue_related_issue_remove: Remove a related issue from a Backlog issue
  • issue_comment_update: Update an existing comment on a Backlog issue
  • issue_add: Create a new issue in a Backlog project with support for custom fields
  • issue_comment_add: Add a comment to a specific issue
  • issue_priority_list_get: Get a list of priority types available in the space

Project Tools

  • project_status_list_get: Get a list of statuses for a specified project
  • project_issue_type_list_get: Get a list of issue types for a specified project
  • project_custom_field_list_get: Get a list of custom fields defined for a specified project

Shared File Tools

  • file_shared_list_get: Get a list of shared files for a specified project directory
  • file_shared_download: Download a shared file

User Tools

  • user_list_get: Get a list of users in the space

Wiki Tools

  • wiki_list_get: Get a list of wiki pages
  • wiki_details_get: Get detailed information about a specific wiki page
  • wiki_attachment_list_get: Get a list of attachments for a specified wiki page
  • wiki_attachment_download: Download an attachment from a wiki page
  • wiki_update: Update a wiki page

File Download Features

All file download tools (document_attachment_download, issue_attachment_download, git_pr_attachment_download, wiki_attachment_download, and file_shared_download) support format detection and handling:

Format Detection

  • Images: Files with image/* content type are detected and returned as base64-encoded images via rmcp::model::ContentBlock::image
  • Text: Files with text-based content types (text/*, application/json, application/xml, etc.) or files that contain valid UTF-8 text are returned as plain text via rmcp::model::ContentBlock::text
  • Raw bytes: All other files are returned as JSON objects with base64-encoded content, filename, and MIME type

Manual Format Override

You can explicitly specify the format using the optional format parameter:

  • "image": Force treatment as an image (validates content type)
  • "text": Force treatment as text (validates UTF-8 encoding)
  • "raw": Force treatment as raw bytes (no validation)

Content Type Detection

The system uses multiple strategies to determine if a file is text:

  • Content-Type header analysis
  • UTF-8 validity checking
  • Character composition analysis (graphic, whitespace, and valid UTF-8 characters)

How to Build

bash
# Default build (includes all writable features)
cargo build --package mcp-backlog-server

Feature Flags

The MCP server supports multiple feature flags to enable different write operations:

  • issue_writable (enabled by default)

    • Enables: issue_update, issue_comment_update, issue_add, and issue_comment_add tools
    • Allows AI agents to create issues, modify issue content, and manage comments
  • git_writable (enabled by default)

    • Enables: git_pr_comment_add tool
    • Allows AI agents to add comments to pull requests
  • wiki_writable (enabled by default)

    • Enables: wiki_update tool
    • Allows AI agents to update wiki page content, names, and notification settings
  • document_writable (enabled by default)

    • Enables: document_add and document_delete tools
    • Allows AI agents to create and delete documents

Build Configuration

bash
# Read-only mode (no write operations)
cargo build --package mcp-backlog-server --no-default-features

# Selective features
cargo build --package mcp-backlog-server --features issue_writable
cargo build --package mcp-backlog-server --features "issue_writable,git_writable"
cargo build --package mcp-backlog-server --features "issue_writable,git_writable,wiki_writable,document_writable"

Configuration

To run this server, the following environment variables must be set:

  • BACKLOG_BASE_URL: The URL of your Backlog space (e.g., https://your-space.backlog.com)
  • BACKLOG_API_KEY: Your Backlog API key. You can issue one from your personal settings page in Backlog.

Optional environment variables:

  • BACKLOG_PROJECTS: Comma-separated list of allowed project keys (e.g., MFP,DEMO,TEST). When set, the server will only allow access to the specified projects. If not set, all projects accessible with the API key are available.
  • BACKLOG_PREFIX: Custom prefix for tool names (default: backlog_). For example, setting BACKLOG_PREFIX="" removes the prefix, making tools accessible as issue_details_get instead of backlog_issue_details_get. Setting BACKLOG_PREFIX="my_" changes tools to my_issue_details_get.

These environment variables are expected to be passed by the MCP client system when launching the server.

Run (for local testing)

After setting the environment variables, you can run the server directly with the following command:

bash
# Default run with all features
BACKLOG_BASE_URL="https://your-space.backlog.com" \
BACKLOG_API_KEY="your_backlog_api_key" \
cargo run --package mcp-backlog-server

将 Backlog MCP Server MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Backlog MCP Server 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 Backlog MCP Server 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Backlog MCP Server MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "backlog-mcp-server-rust": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Backlog MCP Server MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Backlog MCP Server MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Backlog MCP Server 帮我完成这项任务吗?
Backlog MCP Server
当然。我已阅读。
以下是我使用 Backlog MCP Server 得到的结果。

常见问题

Backlog MCP Server MCP 服务器有什么用途?

Backlog MCP Server 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Backlog MCP Server MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 Backlog MCP Server,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 Backlog MCP Server MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 Backlog MCP Server 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Backlog MCP Server MCP 连接到 TypingMind?

Backlog MCP Server 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Backlog MCP Server MCP 在 TypingMind 中提供哪些工具?

Backlog MCP Server 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Backlog MCP Server MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 Backlog MCP Server 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇