List Supported Languages
list_languagesRetrieve all available languages from a MantisBT installation to configure localization settings for bug tracking projects.
Instructions
List all languages supported by the MantisBT installation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/config.ts:219-242 (handler)The 'list_languages' tool is registered and implemented in src/tools/config.ts, using the client to fetch 'lang' from the API.
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, }, }, 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 }; } } );