Skip to main content
Glama

get_projects

Retrieve active project lists from Mantis Bug Tracker to streamline project tracking and management within the Mantis MCP Server environment.

Instructions

獲取 Mantis 專案列表

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/server.ts:187-197 (registration)
    Registration of the 'get_projects' MCP tool, including name, description, empty input schema, and inline handler function.
    server.tool( "get_projects", "獲取 Mantis 專案列表", {}, async () => { return withMantisConfigured("get_projects", async () => { const projects = await mantisApi.getProjects(); return JSON.stringify(projects, null, 2); }); } );
  • Core handler logic in MantisApi class that fetches the list of projects from the Mantis API endpoint '/projects' using cached request.
    async getProjects(): Promise<Project[]> { log.info('獲取項目列表'); const cacheKey = 'projects'; return this.cachedRequest<Project[]>(cacheKey, () => { return this.api.get('/projects'); }); }
  • TypeScript interface defining the Project type returned by getProjects.
    export interface Project { id: number; name: string; description: string; enabled: boolean; status: { id: number; name: string; }; }
  • Wrapper handler in server.tool that handles MCP response formatting, error handling via withMantisConfigured, and JSON serialization.
    async () => { return withMantisConfigured("get_projects", async () => { const projects = await mantisApi.getProjects(); return JSON.stringify(projects, null, 2); }); }

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kfnzero/mantis-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server