getPluginManifest($manifestUrl); if ($manifest) { echo json_encode($manifest); } else { http_response_code(404); echo json_encode(['error' => 'Plugin manifest not found']); } } catch (Exception $e) { http_response_code(500); echo json_encode(['error' => 'An unexpected error occurred']); } } else { http_response_code(400); echo json_encode(['error' => 'Plugin URI is required']); exit; }