AgentHubAgentHub

MantisBT MCP Server

MCP ServerMCP Registry官方收录

io.github.dpesch/mantisbt-mcp-server · v1.10.3

MantisBT MCP server – manage issues, notes, files, tags, and relationships. With semantic search.

概览

MantisBT MCP Server 是一个MCP Server,收录自 官方 MCP Registry。支持 stdio 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

安装

选择你的平台查看安装方式

{
  "mcpServers": {
    "mantisbt-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@dpesch/mantisbt-mcp-server"
      ],
      "env": {
        "MANTIS_BASE_URL": "<MANTIS_BASE_URL>",
        "MANTIS_API_KEY": "<MANTIS_API_KEY>"
      }
    }
  }
}

环境变量

MANTIS_BASE_URL必填

Base URL of the MantisBT REST API, e.g. https://your-mantis.example.com/api/rest

MANTIS_API_KEY必填secret

MantisBT API key (Profile → API Tokens in MantisBT)

MANTIS_CACHE_DIR可选

Directory for the metadata cache. Defaults to ~/.cache/mantisbt-mcp

MANTIS_CACHE_TTL可选

Metadata cache TTL in seconds. Default: 3600 (1 hour)

TRANSPORT可选

Transport mode. 'stdio' for local use (default), 'http' for remote/team deployments

PORT可选

HTTP port when TRANSPORT=http. Default: 3000

MCP_HTTP_HOST可选

Bind address when TRANSPORT=http. Default: 127.0.0.1 (local only). Use 0.0.0.0 for Docker/remote.

MCP_HTTP_TOKEN可选secret

Optional Bearer token to protect the /mcp endpoint when TRANSPORT=http

MANTIS_SEARCH_ENABLED可选

Enable offline semantic search (requires ~80 MB model download on first use)

MANTIS_SEARCH_BACKEND可选

Vector store backend for semantic search. 'vectra' (default, pure JS) or 'sqlite-vec' (faster for >10k issues)

MANTIS_SEARCH_DIR可选

Directory for the semantic search index. Defaults to ~/.cache/mantisbt-mcp/search

MANTIS_SEARCH_MODEL可选

Hugging Face model for embeddings. Default: Xenova/paraphrase-multilingual-MiniLM-L12-v2

MANTIS_SEARCH_THREADS可选

ONNX inference threads for the embedding model. Default: 1

MANTIS_UPLOAD_DIR可选

If set, restricts file uploads to this directory (path traversal protection)

相关资源

统一 Manifest

{
  "id": "io.github.dpesch/mantisbt-mcp-server",
  "type": "mcp-server",
  "version": "1.10.3",
  "displayName": "MantisBT MCP Server",
  "description": "MantisBT MCP server – manage issues, notes, files, tags, and relationships. With semantic search.",
  "distribution": {
    "packages": [
      {
        "registryType": "npm",
        "identifier": "@dpesch/mantisbt-mcp-server",
        "version": "1.10.3",
        "runtimeHint": "npx",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "MANTIS_BASE_URL",
            "description": "Base URL of the MantisBT REST API, e.g. https://your-mantis.example.com/api/rest",
            "isRequired": true
          },
          {
            "name": "MANTIS_API_KEY",
            "description": "MantisBT API key (Profile → API Tokens in MantisBT)",
            "isRequired": true,
            "isSecret": true
          },
          {
            "name": "MANTIS_CACHE_DIR",
            "description": "Directory for the metadata cache. Defaults to ~/.cache/mantisbt-mcp"
          },
          {
            "name": "MANTIS_CACHE_TTL",
            "description": "Metadata cache TTL in seconds. Default: 3600 (1 hour)"
          },
          {
            "name": "TRANSPORT",
            "description": "Transport mode. 'stdio' for local use (default), 'http' for remote/team deployments"
          },
          {
            "name": "PORT",
            "description": "HTTP port when TRANSPORT=http. Default: 3000"
          },
          {
            "name": "MCP_HTTP_HOST",
            "description": "Bind address when TRANSPORT=http. Default: 127.0.0.1 (local only). Use 0.0.0.0 for Docker/remote."
          },
          {
            "name": "MCP_HTTP_TOKEN",
            "description": "Optional Bearer token to protect the /mcp endpoint when TRANSPORT=http",
            "isSecret": true
          },
          {
            "name": "MANTIS_SEARCH_ENABLED",
            "description": "Enable offline semantic search (requires ~80 MB model download on first use)"
          },
          {
            "name": "MANTIS_SEARCH_BACKEND",
            "description": "Vector store backend for semantic search. 'vectra' (default, pure JS) or 'sqlite-vec' (faster for >10k issues)"
          },
          {
            "name": "MANTIS_SEARCH_DIR",
            "description": "Directory for the semantic search index. Defaults to ~/.cache/mantisbt-mcp/search"
          },
          {
            "name": "MANTIS_SEARCH_MODEL",
            "description": "Hugging Face model for embeddings. Default: Xenova/paraphrase-multilingual-MiniLM-L12-v2"
          },
          {
            "name": "MANTIS_SEARCH_THREADS",
            "description": "ONNX inference threads for the embedding model. Default: 1"
          },
          {
            "name": "MANTIS_UPLOAD_DIR",
            "description": "If set, restricts file uploads to this directory (path traversal protection)"
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "io.github.dpesch/mantisbt-mcp-server",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.dpesch%2Fmantisbt-mcp-server/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
MantisBT MCP Server — MCP Server 安装与配置 · AgentHub