add_issue_note
Adds a note to a Mantis issue, with a view state that controls who can see it.
Queries a MantisBT tracker from the conversation — filtered issue lists, one bug in full, and the statistics Mantis normally makes you click through for.
LABSCO SUMMARY
Everything else is a competent read-and-write layer over Mantis issues; the aggregates are what you cannot get in one click from the UI. On the query side, follow the server's own guidance and pass select with id, summary and description — a full issue list returns enough data to cause problems.
An MCP server over the MantisBT REST API, authenticated with a personal API token, covering issue reading and writing plus two aggregate views.
A MantisBT instance with its REST API reachable, and an API token created under My Account > API Tokens. Two variables carry it: MANTIS_API_URL pointing at the .../api/rest endpoint, and MANTIS_API_KEY. Optional settings: NODE_ENV, LOG_LEVEL, CACHE_ENABLED with CACHE_TTL_SECONDS (300 by default), and ENABLE_FILE_LOGGING with LOG_DIR. Run it over stdio with npx -y mantis-mcp-server@latest, or install globally and point the client at dist/index.js.
One command plus a key — npm install -g mantis-mcp-server, then supply credentials
USE CASES
Resolve the username to a user ID, then list issues filtered by handler.
Fetch it by ID rather than widening the list query.
Group the issue counts by severity or status over a chosen period.
Read the per-user assignment counts, including or excluding unassigned issues.
Find the project ID, then create the issue with its priority and handler set.
Change the status and resolution, then attach a note recording the reason.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
add_issue_noteAdds a note to a Mantis issue, with a view state that controls who can see it.
create_issueCreates a Mantis issue with summary, description, project, category, priority, severity, handler and additional information.
get_assignment_statisticsReturns assignment statistics for a project, showing how issues are distributed across users, with unassigned issues optionally included.
get_issue_by_idReturns the full detail of one Mantis issue by its ID.
get_issue_statisticsReturns issue statistics for a project, grouped by a chosen dimension over a chosen period.
get_issuesLists Mantis issues filtered by project, status, handler, reporter or search text; keeping select to id, summary and description avoids oversized responses.
get_projectsLists the Mantis projects.
get_userLooks up a Mantis user by username.
get_usersRetrieves every Mantis user by brute-force enumeration.
get_users_by_project_idReturns every user attached to a given project.
update_issueUpdates an existing Mantis issue — summary, description, status, resolution, priority, severity or handler.
BEFORE YOU INSTALL
11 tools when we connected. create_issue, update_issue, add_issue_note and get_users_by_project_id are undocumented, so despite its query-and-analysis description, the server can file and modify Mantis issues.
Both documented setups run the server on your machine.
CONTEXT COST
Rated by the size of the 11 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npm install -g mantis-mcp-server{
"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"
}
}
}
}{
"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"
}
}
}
}This block starts the copy that npm install -g mantis-mcp-server puts under %APPDATA%\npm\node_modules, so run that global install first. <YOUR_MANTIS_API_URL> is your MantisBT REST address (…/api/rest), and <YOUR_MANTIS_API_KEY> is an API token from My Account → API Tokens.