Skip to main content
Glama

list_languages

Retrieve all available languages configured in the MantisBT bug tracking system to support multilingual issue management.

Instructions

List all languages supported by the MantisBT installation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration of the 'list_languages' tool.
    server.registerTool(
      'list_languages',
      {
        title: 'List Supported Languages',
        description: 'List all languages supported by the MantisBT installation.',
        inputSchema: z.object({}),
        annotations: {
          readOnlyHint: true,
          destructiveHint: false,
          idempotentHint: true,
        },
      },
  • The handler function for 'list_languages' which calls the MantisBT API to fetch languages.
    async () => {
      try {
        const result = await client.get<unknown>('lang');
        return {
          content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
        };
      } catch (error) {
        const msg = error instanceof Error ? error.message : String(error);
        return { content: [{ type: 'text', text: errorText(msg) }], isError: true };
      }
    }

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/dpesch/mantisbt-mcp-server'

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