Mantis MCP Server logo

Mantis MCP Server

by MCP-Mirror

Mantis MCP Server is a service based on the Model Context Protocol (MCP) for integrating with the Mantis Bug Tracker system. It provides tools to query and analyze data from Mantis using the MCP protocol.

View on GitHub

Last updated: N/A

What is Mantis MCP Server?

Mantis MCP Server is a service that allows you to interact with your Mantis Bug Tracker instance using the Model Context Protocol (MCP). It provides a standardized way to query and analyze Mantis data.

How to use Mantis MCP Server?

  1. Install the server using npm install mantis-mcp-server. 2. Configure the server by setting environment variables in a .env file (Mantis API URL, API Key, Node environment, Log Level). 3. Configure MCP in your editor (e.g., Cursor) by adding the server configuration to the mcp.json file. 4. Use the provided API tools (e.g., get_issues, get_issue_by_id) to interact with Mantis.

Key features of Mantis MCP Server

  • Issue Management (listing, details)

  • User Management (querying, listing)

  • Project Management (listing)

  • Statistical Analysis (issue, assignment)

  • Performance Optimization (field selection, pagination, data compression)

  • Comprehensive error handling and logging

Use cases of Mantis MCP Server

  • Querying Mantis issues within your editor

  • Analyzing bug trends and statistics

  • Integrating Mantis data into other tools

  • Automating Mantis tasks

  • Improving workflow efficiency with MCP

FAQ from Mantis MCP Server

How do I get a Mantis API Key?

Log in to your MantisBT account, go to 'My Account', switch to the 'API Tokens' tab, click 'Create New Token', enter a token name, and copy the generated API token.

What environment variables are required?

You need to set MANTIS_API_URL, MANTIS_API_KEY, NODE_ENV, and LOG_LEVEL in your .env file.

How do I configure the server in Cursor?

Edit ~/.cursor/mcp.json (macOS/Linux) or %USERPROFILE%/.cursor/mcp.json (Windows) and add the server configuration with the correct command and environment variables.

How do I get a list of issues?

Use the get_issues API tool with optional parameters like projectId, statusId, search, etc.

Where are the logs stored?

If file logging is enabled (ENABLE_FILE_LOGGING=true), logs are stored in the logs directory as mantis-mcp-server-combined.log (all levels) and mantis-mcp-server-error.log (errors only).