DM

dpesch/mantisbt-mcp-server

开发工具

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

12 stars 6 forks 质量 83 趋势 28MIT

Mirror of codeberg.org/dpesch/mantisbt-mcp-server — issues and PRs not monitored

概览

A Model Context Protocol (MCP) server that integrates the MantisBT REST API into Claude Code and other MCP-capable clients. Read, create, and update issues directly from your editor. - Node.js ≥ 22 - MantisBT installation with REST API enabled (version 2.23+) - MantisBT API token (create under My Account → API Tokens) Add to ~/.claude/claude_desktop_config.json (Claude Desktop) or your local claude_desktop_config.json (Claude Code): Instead of exact keyword matching, semantic search understands the meaning behind a query. Ask in plain language — the search engine finds conceptually related issues even when the wording doesn't match: - "login fails after password reset" — finds issues about authentication edge cases - "performance problems on the checkout page" — surfaces related reports regardless of the exact terminology used - "duplicate entries in the invoice list" — catches issues described as "shown twice", "double records", etc.

README

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

MantisBT MCP Server

English · Deutsch

A Model Context Protocol (MCP) server that integrates the MantisBT REST API into Claude Code and other MCP-capable clients. Read, create, and update issues directly from your editor.

Requirements

  • Node.js ≥ 22
  • MantisBT installation with REST API enabled (version 2.23+)
  • MantisBT API token (create under My Account → API Tokens)

Installation

Via npx (recommended):

Add to ~/.claude/claude_desktop_config.json (Claude Desktop) or your local claude_desktop_config.json (Claude Code):

{
  "mcpServers": {
    "mantisbt": {
      "command": "npx",
      "args": ["-y", "@dpesch/mantisbt-mcp-server"],
      "env": {
        "MANTIS_BASE_URL": "https://your-mantis.example.com/api/rest",
        "MANTIS_API_KEY": "your-api-token"
      }
    }
  }
}

Local build:

git clone https://codeberg.org/dpesch/mantisbt-mcp-server
cd mantisbt-mcp-server
npm run init
npm run build
{
  "mcpServers": {
    "mantisbt": {
      "command": "node",
      "args": ["/path/to/mantisbt-mcp-server/dist/index.js"],
      "env": {
        "MANTIS_BASE_URL": "https://your-mantis.example.com/api/rest",
        "MANTIS_API_KEY": "your-api-token"
      }
    }
  }
}

Configuration

Environment variables

Variable Required Default Description
MANTIS_BASE_URL ✅ – Base URL of your MantisBT installation. Both https://your-mantis.example.com and https://your-mantis.example.com/api/rest are accepted — the /api/rest suffix is normalized automatically.
MANTIS_API_KEY ✅ – API token for authentication
MANTIS_USE_INDEX_PHP – auto Set to true when URL rewriting is unavailable — REST requests then use /api/rest/index.php/ instead of /api/rest/. Detected automatically when MANTIS_BASE_URL ends with /api/rest/index.php; an explicit value always wins. See the cookbook.
MANTIS_CACHE_DIR – ~/.cache/mantisbt-mcp Directory for the metadata cache
MANTIS_CACHE_TTL – 3600 Cache lifetime in seconds
TRANSPORT – stdio Transport mode: stdio or http
在 GitHub 查看完整 README

安装

npx -y @dpesch/mantisbt-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "mantisbt": { "command": "npx", "args": ["-y", "@dpesch/mantisbt-mcp-server"], "env": { "MANTIS_BASE_URL": "https://your-mantis.example.com/api/rest", "MANTIS_API_KEY": "your-api-token" } } } }