Skip to main content
Glama

get_config

Retrieve MantisBT configuration options like status, priority, and severity values to access system settings for bug tracking workflows.

Instructions

Retrieve one or more MantisBT configuration options.

Common option names:

  • "status_enum_string" — issue status values and their IDs

  • "priority_enum_string" — priority values

  • "severity_enum_string" — severity values

  • "resolution_enum_string" — resolution values

  • "reproducibility_enum_string" — reproducibility values

  • "view_state_enum_string" — view state values

  • "access_levels_enum_string" — access level values

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
optionsYesArray of configuration option names to retrieve

Implementation Reference

  • The "get_config" tool is registered here and the handler logic is defined as the third argument to `server.registerTool`. It retrieves configuration options from the MantisBT API.
      server.registerTool(
        'get_config',
        {
          title: 'Get MantisBT Configuration',
          description: `Retrieve one or more MantisBT configuration options.
    
    Common option names:
    - "status_enum_string" — issue status values and their IDs
    - "priority_enum_string" — priority values
    - "severity_enum_string" — severity values
    - "resolution_enum_string" — resolution values
    - "reproducibility_enum_string" — reproducibility values
    - "view_state_enum_string" — view state values
    - "access_levels_enum_string" — access level values`,
          inputSchema: z.object({
            options: z.array(z.string()).min(1).describe('Array of configuration option names to retrieve'),
          }),
          annotations: {
            readOnlyHint: true,
            destructiveHint: false,
            idempotentHint: true,
          },
        },
        async ({ options }) => {
          try {
            const params: Record<string, string | number | boolean | undefined> = {};
            options.forEach((opt, i) => {
              params[`option[${i}]`] = opt;
            });
            const result = await client.get<unknown>('config', params);
            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