Connection to Atlas MongoDB in cloud from Kafka Connect+Debezium and ClickHouse

Could someone share examples of connection to MongoDB in cloud from:

  1. Debezium - we have Sharded Cluster in this case and in another apps we use approach with using mongo+srv links, but Debezium does not support it.
    I tried to setup it as set of hosts (2 shards by 3 hosts), configured it as one replicaset, twoo replicasets - it does not work, I guess, because there are mongos that manage this stuff.
  2. Connection from ClickHouse - the same situation, mongo+srv does not supported there.