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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/config.ts:191-202 (registration)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, }, }, - src/tools/config.ts:203-213 (handler)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 }; } }