The mkinit module helps you write __init__ files without from ? import *.
mkinit automatically imports all submodules in a package and their members.
It can do this dynamically, or it can statically autogenerate the __init__
for faster import times. Its kinda like using the fromimport * syntax, but
its easy to replace with text that wont make other developers lose their hair.
The following command will statically autogenerate an __init__ file in the
specified path or module name. If one exists, it will only replace text after
the final comment. This means mkinit wont clobber your custom logic and can
be used to help maintain customized __init__.py files.
mkinit <your_modname_or_modpath>
You can also enclose the area allowed to be clobbered in the autogeneration with special xml-like comments.
import mkinit; exec(mkinit.dynamic_init(__name__))
$ claude mcp add mkinit \
-- python -m otcore.mcp_server <graph>