Patch Changes
-
c756051: fix(mcp): boot stdio server when invoked via
cavemem mcpThe CLI's
mcpsubcommand didawait import('@cavemem/mcp-server')expecting the import side-effect to start the server, but the server module guardsmain()behind anisMainEntry()check. When dynamically imported,import.meta.urldoes not matchprocess.argv[1](the CLI), somain()never ran and no MCP tools were exposed to the host IDE. Exportmain()from the server module and have the CLI call it explicitly. TheisMainEntry()guard remains so thecavemem-mcpbin still works when invoked directly.Thanks @LoganBresnahan (#16).
Install / upgrade: npm i -g cavemem@0.2.1