Mantis MCP Server

by kfnzero

Not rated
GitHub

About

An MCP server for integrating with the Mantis Bug Tracker system.

Details

Author
kfnzero
Categories
Developer Tools, Project Management

Setup

Install Mantis MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/kfnzero/mantis-mcp-server

Follow the installation instructions in the repository README, then restart your MCP client.

Mantis MCP Server 是一個基於 Model Context Protocol (MCP) 的服務,用於與 Mantis Bug Tracker 系統進行集成。它提供了一系列工具,允許用戶通過 MCP 協議查詢和分析 Mantis 系統中的數據。

- 欄位選擇(減少回傳資料量)
- 分頁處理(控制每次返回數量)
- 自動資料壓縮(大量資料時自動壓縮)

To install Mantis Bug Tracker Integration for Claude Desktop automatically viaSmithery:

npx -y @smithery/cli install @kfnzero/mantis-mcp-server --client claude
# Mantis API 配置 MANTIS_API_URL=https://your-mantis-instance.com/api/rest MANTIS_API_KEY=your_api_key_here # 應用配置 NODE_ENV=development # development, production, test LOG_LEVEL=info # error, warn, info, debug # 快取配置 CACHE_ENABLED=true CACHE_TTL_SECONDS=300 # 5分鐘 # 日誌配置 LOG_DIR=logs ENABLE_FILE_LOGGING=false

- 登入您的 MantisBT 帳戶
- 點擊右上角的用戶名稱,選擇「我的帳戶」
- 切換到「API 令牌」標籤
- 點擊「創建新令牌」按鈕
- 輸入令牌名稱(例如:MCP Server)
- 複製生成的 API 令牌,並將其貼入.env文件的MANTIS_API_KEY設置中

在 Windows 系統中,編輯%USERPROFILE%\.cursor\mcp.json(通常在C:\Users\你的用戶名\.cursor\mcp.json),添加以下配置:

{ "mcpServers": { "mantis-mcp-server": { "type": "stdio", "command": "cmd", "args": [ "/c", "node", "%APPDATA%\\npm\\node_modules\\mantis-mcp-server\\dist\\index.js" ], "env": { "MANTIS_API_URL": "YOUR_MANTIS_API_URL", "MANTIS_API_KEY": "YOUR_MANTIS_API_KEY", "NODE_ENV": "production", "LOG_LEVEL": "info" } } } }

在 macOS 或 Linux 系統中,編輯~/.cursor/mcp.json,添加以下配置:

{ "mcpServers": { "mantis-mcp-server": { "command": "npx", "args": [ "-y", "mantis-mcp-server@latest", ], "env": { "MANTIS_API_URL": "YOUR_MANTIS_API_URL", "MANTIS_API_KEY": "YOUR_MANTIS_API_KEY", "NODE_ENV": "production", "LOG_LEVEL": "info" } } } }

注意:在 macOS/Linux 中,我們使用 npx 來運行最新版本的 mantis-mcp-server,這樣可以確保始終使用最新版本,不需要全域安裝。

- MANTIS_API_URL: 您的 Mantis API URL
- MANTIS_API_KEY: 您的 Mantis API 金鑰
- NODE_ENV: 執行環境,建議設置為 "production"
- LOG_LEVEL: 日誌級別,可選值:error、warn、info、debug
- 重新載入 Cursor MCP
- 開啟命令面板(Windows: Ctrl+Shift+P, Mac: Cmd+Shift+P)

{ "servers": { "mantis-mcp-server": { "type": "stdio", "command": "node", "args": ["${workspaceFolder}/dist/index.js"] } } }
{ "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "Debug MCP Server", "skipFiles": ["<node_internals>/"], "outFiles": ["${workspaceFolder}/dist//*.js"], "runtimeExecutable": "npx", "runtimeArgs": [ "-y", "@modelcontextprotocol/inspector", "node", "dist/index.js" ], "console": "integratedTerminal", "preLaunchTask": "npm: watch", "serverReadyAction": { "action": "openExternally", "pattern": "running at (https?://\\S+)", "uriFormat": "%s?timeout=60000" }, "envFile": "${workspaceFolder}/.env" } ] }

- projectId(可選): 專案 ID
- statusId(可選): 狀態 ID
- handlerId(可選): 處理人 ID
- reporterId(可選): 報告者 ID
- search(可選): 搜尋關鍵字
- pageSize(可選, 默認 20): 頁數大小
- page(可選, 默認 0): 分頁起始位置,從1開始
- select(可選): 選擇要返回的欄位,例如:['id', 'summary', 'description']。可用於減少回傳資料量

- projectId(可選): 專案 ID
- groupBy: 分組依據,可選值: 'status', 'priority', 'severity', 'handler', 'reporter'
- period(默認 'all'): 時間範圍,可選值: 'all', 'today', 'week', 'month'

- projectId(可選): 專案 ID
- includeUnassigned(默認 true): 是否包含未分派問題
- statusFilter(可選): 狀態過濾器,只計算特定狀態的問題

服務使用withMantisConfigured高階函數來處理共用的檢查邏輯,確保:

- Mantis API 配置檢查
- 統一的錯誤處理
- 標準化的回應格式
- 自動的日誌記錄

- Mantis API 錯誤處理(包含 HTTP 狀態碼)
- 通用錯誤處理
- 結構化的錯誤響應
- 詳細的錯誤日誌

# 安裝依賴 npm install # 構建 npm run build # 開發模式(監視變更) npm run watch # 運行 npm start

如果啟用了檔案日誌(ENABLE_FILE_LOGGING=true),日誌文件將保存在:

- logs/mantis-mcp-server-combined.log: 所有級別的日誌
- logs/mantis-mcp-server-error.log: 僅錯誤級別的日誌

@https://documenter.getpostman.com/view/29959/7Lt6zkP#c0c24256-341e-4649-95cb-ad7bdc179399

npm login --registry=https://registry.npmjs.org/npm run build npm publish --access public --registry=https://registry.npmjs.org/

npm version patch # 修復版本 0.0.x npm version minor # 次要版本 0.x.0 npm version major # 主要版本 x.0.0

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Connect bugAgent to any MCP-compatible AI client. File, classify, and manage bugs, feature requests, and more directly from your AI coding assistant. No context switching, no copy-paste — just describe the issue and bugAgent handles the rest.

Official MCP server for Buildable AI-powered development platform. Enables AI assistants to manage tasks, track progress, get project context, and collaborate with humans on software projects.

his repository contains a fully functional MCP (Model Context Protocol) server, providing solutions for Constraint Satisfaction Problems (CSP) and Linear Programming (LP). It is based on the gurddy package and supports solving a variety of classic problems.

Objective-native planning board for agent-led development

An engineering governance and safety control plane for AI coding agents to enforce strict SDLC discipline, quality gates, and security branch protections.

A planning and orchestration system for AI-driven software development.

Assists AI developers with requirement clarification, module design, and technical architecture.

Persistent project memory + architectural decisions + pre-execution safety hooks for Claude Code. Local-only storage, multi-repo workspace, automatic knowledge extraction via background auditor.

Manage Azure DevOps projects, work items, builds, and releases.

Interact with Azure DevOps for managing projects, pipelines, and repositories.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.