Skip to main content
Glama

bruno_health_check

Monitor Bruno MCP Server health status, check Bruno CLI availability, and review performance metrics with optional cache statistics for system diagnostics.

Instructions

Check the health and status of the Bruno MCP Server, including Bruno CLI availability, performance metrics, and cache statistics

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
includeMetricsNoInclude performance metrics in output (optional)
includeCacheStatsNoInclude cache statistics in output (optional)

Implementation Reference

  • Core handler function that parses input parameters, checks Bruno CLI availability, optionally includes metrics and cache stats, formats the health check output, and returns it as text content.
    async handle(args: unknown): Promise<ToolResponse> { const params = HealthCheckSchema.parse(args); const config = this.configLoader.getConfig(); // Check Bruno CLI availability const brunoCLIAvailable = await this.brunoCLI.isAvailable(); const brunoCLIVersion = brunoCLIAvailable ? await this.getBrunoCLIVersion() : 'Not available'; // Gather metrics and cache stats if requested const metricsSummary = params.includeMetrics ? this.perfManager.getMetricsSummary() : undefined; const cacheStats = params.includeCacheStats ? this.perfManager.getCacheStats() : undefined; const output = this.formatter.format({ brunoCLIAvailable, brunoCLIVersion, config, includeMetrics: params.includeMetrics || false, includeCacheStats: params.includeCacheStats || false, metricsSummary, cacheStats }); return { content: [ { type: 'text', text: output } as TextContent ] }; }
  • Zod schema used for validating the tool's input arguments within the handler.
    const HealthCheckSchema = z.object({ includeMetrics: z.boolean().optional().describe('Include performance metrics in output'), includeCacheStats: z.boolean().optional().describe('Include cache statistics in output') });
  • src/index.ts:292-292 (registration)
    Registers an instance of HealthCheckHandler with the ToolRegistry for tool execution dispatching.
    this.toolRegistry.register(new HealthCheckHandler(this.brunoCLI, this.configLoader, perfManager));
  • src/index.ts:138-154 (registration)
    Tool metadata definition in the TOOLS array, used for listing available tools via MCP, including name, description, and input schema.
    { name: 'bruno_health_check', description: 'Check the health status of the Bruno MCP server and Bruno CLI', inputSchema: { type: 'object', properties: { includeMetrics: { type: 'boolean', description: 'Include performance metrics in output' }, includeCacheStats: { type: 'boolean', description: 'Include cache statistics in output' } } } },
  • MCP inputSchema definition for the bruno_health_check tool, used in tool listing responses.
    inputSchema: { type: 'object', properties: { includeMetrics: { type: 'boolean', description: 'Include performance metrics in output' }, includeCacheStats: { type: 'boolean', description: 'Include cache statistics in output' } } }

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/jcr82/bruno-mcp-server'

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