MantisBT MCP Server
A Model Context Protocol (MCP) server for accessing MantisBT objects via its REST API. Built with TypeScript, FastMCP, Axios, and Zod for robust, type-safe development.
Features
This MCP server provides tools to interact with MantisBT through the following capabilities:
Issues
getIssue
- Get an issue by IDgetIssues
- Get a list of issues with paginationcreateIssue
- Create a new issue
Projects
getProject
- Get a project by IDgetProjects
- Get all projects
Users
getCurrentUser
- Get the current authenticated user
Issue Notes
createIssueNote
- Create a note for an issue
Setup
- Install Dependencies
- Configure Environment
Copy
.env
and update with your MantisBT instance details: - Build the Project
- Run the Server
Project Structure
Development
- TypeScript: Strongly typed throughout
- Zod: Runtime validation for API requests/responses
- Axios: HTTP client for REST API calls
- FastMCP: MCP server framework
- Error Handling: Consistent error handling across all controllers
API Integration
The server uses the MantisBT REST API with:
- Bearer token authentication via
Authorization
header - Zod schemas for request/response validation
- Proper error handling and user-friendly error messages
- Type-safe API responses
Available Scripts
npm run dev
- Start development servernpm run build
- Build TypeScript to JavaScriptnpm run test
- Run tests (when implemented)npm run lint
- Run ESLint
License
MIT
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables interaction with MantisBT bug tracking systems through the REST API. Supports issue management, project access, user information, and note creation with type-safe operations.