Skip to main content
Glama

get_ip_addresses

Retrieve BugBug infrastructure IP addresses for configuring firewall rules or network access controls.

Instructions

Get list of BugBug infrastructure IP addresses

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'get_ip_addresses' tool. It calls the BugBug API client to fetch IP addresses, formats the response as a markdown list, and handles errors by returning structured content blocks.
    handler: async () => { try { const response = await bugbugClient.getIpAddresses(); if (response.status !== 200) { return { content: [ { type: 'text', text: `Error: ${response.status} ${response.statusText}`, }, ], }; } const ipList = response.data.map((ip: string) => `- ${ip}`).join('\n'); return { content: [ { type: 'text', text: `**BugBug Infrastructure IP Addresses:**\n\n${ipList}`, }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error fetching IP addresses: ${error instanceof Error ? error.message : 'Unknown error'}`, }, ], }; } }
  • Input schema for the 'get_ip_addresses' tool, defined as an empty object using Zod (no input parameters required).
    inputSchema: z.object({}).shape,
  • Registration of all tools on the MCP server, including 'get_ip_addresses' via spreading configTools (which exports getIpAddressesTool).
    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) ); } }
  • Helper method in BugBugApiClient class that performs the actual API request to fetch the list of IP addresses from the '/config/ips/' endpoint.
    async getIpAddresses(): Promise<ApiResponse<string[]>> { return this.makeRequest<string[]>('/config/ips/'); }

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