get_infrastructure_status
Retrieve a comprehensive overview of infrastructure status to monitor deployments, track state, and check health across Fly.io and Cloudflare Workers.
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 case for 'get_infrastructure_status' tool. Parses arguments and invokes executeOrchestrator with operation 'status/infrastructure' and boolean parameters converted to strings.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'.{ 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-43 (helper)Shared helper function executeOrchestrator that runs Python orchestrator.py script, used by the get_infrastructure_status handler and other tools.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() || "" }; } }
- src/index.ts:182-184 (registration)Registration of listTools handler that exposes the tools array, including get_infrastructure_status, to MCP clients.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });