Skip to main content
Glama
simplypixi

BugBug MCP Server

by simplypixi

get_suite

Retrieve detailed information about a specific BugBug test suite using its unique identifier to access configuration, test cases, and metadata.

Instructions

Get details of a specific BugBug test suite

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
suiteIdYesSuite UUID

Implementation Reference

  • Full implementation of the 'get_suite' tool: defines the tool with name, input schema for suiteId, and handler that fetches the suite details using bugbugClient.getSuite and returns formatted MCP text content.
    export const getSuiteTool: Tool = {
      name: 'get_suite',
      title: 'Get details of a specific BugBug test suite',
      description: 'Get details of a specific BugBug test suite',
      inputSchema: z.object({
        suiteId: z.string().describe('Suite UUID'),
      }).shape,
      handler: async ({ suiteId }) => {
          try {
            const response = await bugbugClient.getSuite(suiteId);
            
            if (response.status !== 200) {
              return {
                content: [
                  {
                    type: 'text',
                    text: `Error: ${response.status} ${response.statusText}`,
                  },
                ],
              };
            }
    
            const suite = response.data;
            
            return {
              content: [
                {
                  type: 'text',
                  text: `**Suite Details:**\n\n- **Name:** ${suite.name || 'Unnamed Suite'}\n- **ID:** ${suite.id}\n- **Tests Count:** ${suite.testsCount || 0}`,
                },
              ],
            };
          } catch (error) {
            return {
              content: [
                {
                  type: 'text',
                  text: `Error fetching suite: ${error instanceof Error ? error.message : 'Unknown error'}`,
                },
              ],
            };
          }
        }
    };
  • Input schema for 'get_suite' tool using Zod: requires suiteId as string.
    inputSchema: z.object({
      suiteId: z.string().describe('Suite UUID'),
    }).shape,
  • Registers all tools including 'get_suite' (from suitesTools import) with the MCP server by iterating over the tools record and calling server.registerTool with name, schema, and handler wrapper.
    export function registerAllTools(server: McpServer): void {
      const tools: Record<string, Tool> = {
        ...configTools,
        ...testsTools,
        ...testRunsTools,
        ...suitesTools,
        ...suiteRunsTools,
        ...profilesTools,
        ...advancedTools,
      };
    
      for (const t in tools) {
        server.registerTool(
          tools[t].name,
          {
            description: tools[t].description,
            inputSchema: tools[t].inputSchema,
            annotations: { title: tools[t].title },
          },
          (args: unknown) => tools[t].handler(args as unknown)
        );
      }
    }

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/simplypixi/bugbug-mcp-server'

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