Possibly the earliest surviving TV sitcom is The Life of Riley starring Jackie Gleason which aired on NBC from October 4, 1949 to March 28, 1950 (Wikipedia). The entire series was filmed and all 26 episodes are available on DVD.
The Life of Riley, Jackie Gleason, Rosemary DeCamp 1949
The British sitcom Pinwright’s Progress which aired ten episodes beginning in November 1946 is generally considered the first TV sitcom. However it was broadcast live and no recordings were made (British Comedy Guide).
And as you mentioned Mary Kay and Johnny which first aired in 1947 seems to have only one surviving episode. As a side note the Paley Center in New York has public access to their archives on video screens, with a daily admission fee. The Los Angeles museum is currently closed. You can see the listing for Mary Kay and Johnny in the online Paley library database.
Similar to music and variety shows, most TV sitcoms in the 1940’s and into the early 1950’s were broadcast live. Videotape did not exist, the only recording method was kinescope, which was essentially a film camera pointed at a studio monitor during the live broadcast. Although dedicated kinescope equipment was used, the quality of this process was very limited.
Kinescope (source: Canada Museum of Science & Technology via Wikimedia Commons CC BY-SA 3.0)
Kinescope in the U.S. was primarily used for repeating live broadcasts in other time zones. Kinescope quality was generally not good enough to be used extensively for reruns in syndication, thus very few kinescopes of that era have survived. Even those that managed to survive for two or three decades were mostly disposed of in large scale warehouse cleanouts such as the reported dumping of huge quantities of DuMont kinescopes. According to Wikipedia, of the approximately 20,000 television episodes produced by DuMont in the late 1940’s and 1950’s, only about 350 survive.
One of the survivors was most of the Jackie Gleason Honeymooner sketches on Gleason’s variety show on DuMont in the early 1950’s and then on CBS, because Gleason reportedly received kinescope copies of his programs as a stipulation of his contract, which he kept in a warehouse until releasing them to DVD in the early 2000’s. Meanwhile the one-season The Honeymooners sitcom in 1955 was filmed, and all 39 of those episodes have survived.
An earlier U.S. sitcom The Goldbergs has partially survived. The Goldbergs debuted in January 1949 on CBS, then went to NBC in 1952, then DuMont in 1954, and started syndicated production in 1955 on film. But apparently only some of the DuMont episodes and the later syndicated episodes survive.
The Goldbergs
Sitcom producers initially avoided using film because the single-camera method then in use, similar to filming a movie, made it impractical to have a studio audience present during filming. In fact The Life of Riley initially aired without laughter. Although when it was later distributed in syndication a laugh track was added to the episodes. Early filmed sitcoms in the early 1950’s were often shown to audiences in a theater, and the laughter recorded. However this often did not give the desired result, either there was not enough laughter, or laughs lasted too long and drowned out dialogue. Producers began using laugh track machines to enhance the audience laughter, a process known as "sweetening", and which is reportedly still in use today, even for shows filmed in front of an audience. And laughless comedies are common now. So The Life of Riley turned out to be a pioneer in more ways than one.
However by the early 1950’s, through the 1960’s and well into the 1970's nearly every sitcom was filmed single camera with no audience, and laughter was provided entirely by laugh track machines. Among the exceptions was I Love Lucy which was filmed in front of a studio audience using three cameras. Contrary to popular belief Desi Arnaz did not invent this method, it had been used before, however it was apparently the first time that it was used with a live audience. Other Desilu shows such as Our Miss Brooks also used three camera with an audience. As did the 1955 sitcom version of The Honeymooners, and the 1960's sitcom The Dick Van Dyke Show.
Whether with canned laughter or not, the use of film, beginning with The Life of Riley, ensured that most sitcoms from that point forward, even the most obscure, have been available for viewing by future generations. And in many cases viewed in much better quality than TV audiences experienced during those years, when they watched the programs on small, somewhat blurry television sets.
As for The Life of Riley, contrary to popular belief it was not cancelled due to low ratings, but instead ended after one season because of a dispute with the show’s sponsor who wanted to take advantage of recently obtained rights to televise boxing matches. There was a reboot of the series in 1953 starring William Bendix who starred in the radio version and the movie. Due to being under movie contract at the time he was not available in 1949 for the first run of the TV series.
The Life of Riley, William Bendix
As a side note, the unaired pilot for The Life of Riley that was filmed in 1948 starred Lon Chaney Jr. of Wolf Man fame as Riley, along with Rosemary DeCamp who appeared with Gleason in the broadcast version. DeCamp is perhaps better known as Marlo Thomas's mother in the 1960's sitcom That Girl, as well as Shirley Jones's mother in the 1970's sitcom The Partridge Family.
The Life of Riley pilot episode, Lon Chaney Jr., Rosemary DeCamp 1948