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
| Name | Required | Description | Default |
|---|---|---|---|
| includeMetrics | No | Include performance metrics in output (optional) | |
| includeCacheStats | No | Include 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' } } } },
- src/index.ts:141-153 (schema)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' } } }