get_infrastructure_status
Check infrastructure health and status for MCP servers on Fly.io and Cloudflare Workers. View current state, active locks, and operation history to monitor deployments and track changes.
Instructions
Get comprehensive overview of entire infrastructure. Safe read-only operation.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_history | No | Include recent operation history (default: true) | |
| include_locks | No | Include active locks (default: true) |
Implementation Reference
- src/index.ts:277-290 (handler)Handler implementation for the get_infrastructure_status tool. Parses input arguments and invokes the orchestrator script with the 'status/infrastructure' operation.case "get_infrastructure_status": { const { include_history, include_locks } = args as { include_history?: boolean; include_locks?: boolean; }; const params: Record<string, string> = { include_history: String(include_history !== false), include_locks: String(include_locks !== false) }; result = executeOrchestrator("status/infrastructure", params); break; }
- src/index.ts:149-165 (schema)Tool definition including name, description, and input schema for get_infrastructure_status. Used for tool listing and validation.{ name: "get_infrastructure_status", description: "Get comprehensive overview of entire infrastructure. Safe read-only operation.", inputSchema: { type: "object", properties: { include_history: { type: "boolean", description: "Include recent operation history (default: true)" }, include_locks: { type: "boolean", description: "Include active locks (default: true)" } } } }
- src/index.ts:16-42 (helper)Shared utility function executeOrchestrator that runs python orchestrator.py for infrastructure operations, used by get_infrastructure_status handler.function executeOrchestrator(operation: string, params: Record<string, string> = {}): any { const paramStr = Object.entries(params) .map(([key, value]) => `${key}="${value}"`) .join(" "); const cmd = `cd ${ORCHESTRATOR_PATH} && python orchestrator.py ${operation} ${paramStr}`; try { const output = execSync(cmd, { encoding: "utf-8", maxBuffer: 10 * 1024 * 1024 }); // Try to parse as JSON, fallback to plain text try { return JSON.parse(output); } catch { return { output: output.trim() }; } } catch (error: any) { return { success: false, error: error.message, stderr: error.stderr?.toString() || "", stdout: error.stdout?.toString() || "" }; }