You can use $dsql->orExpr()
method.
There are multiple examples in Stackoverflow like this one https://stackoverflow.com/a/17958175/1466341 and also in ATK4 Google groups here https://groups.google.com/forum/#!forum/agile-toolkit-devel just search for orExpr.
I guess in your case something like this should work (untested):
$q = $grid->dq;
$or = $q->orExpr();
foreach($tscarr as $tsc)
{
$or->where(
$q->andExpr()
->where('context_id', $tsc['context_id'])
->where('class_id', $tsc['class_id'])
);
}
$q->where($or);