v0.11.2
Released May 3, 2026 · All releases
Changes
- Fix MCP server failing to invoke the refrakt CLI for
inspect,contracts,reference,inspect_list, andplugins_listtools. - The MCP server resolves the CLI bin via
require.resolve('@refrakt-md/cli/package.json'), but the cli package'sexportsmap didn't declare./package.json, so Node threwERR_PACKAGE_PATH_NOT_EXPORTED. The MCP server's catch branch silently fell back to the bare string'refrakt', whichexecFileSyncthen tried to resolve as a relative path against the user's cwd, producing a confusingCannot find module '<cwd>/refrakt'error. @refrakt-md/clinow exports./package.jsonso the existing resolution path works.@refrakt-md/mcpadds a secondary fallback (resolve via the always-exportedlib/plugins.jsand walk up to the package root) and now throws a clear error instead of returning a bogus bin path. Both core tools and resource handlers go through the shared helper.