Kakoune as a manpager

I know there’s a default plugin in rc/tools, but I was trying to reverse engineer it to write a small shellscript that acts like a valid MANPAGER.
That’s the script

man -P cat | col -x -b | kak

but of course, man wants a topic and doesn’t accept stdin
Is there a better solution?

i just set MANPAGER=kak, and have kak-ansi plugin installed.