Skip to content

Release v2.4.1

Latest

Choose a tag to compare

@github-actions github-actions released this 24 May 18:07
52ed1c0

Patch Changes

  • 5131bb7: feat(source): implement readPackageVersion() on FilesystemBrickSource

    Adds the optional BrickSource.readPackageVersion() hook (introduced in @focus-mcp/core) so the brick loader can inject the package.json version into the manifest when mcp-brick.json doesn't carry a "version" field. Without this, every brick load throws INVALID_VERSION because the disk manifest and the JS module's exported manifest both lack a SemVer version field.

    Resolution mirrors readManifest(): prefer require.resolve('@focus-mcp/brick-/package.json'), fall back to walking up from the package main entry if /package.json isn't in the exports field, and return undefined when no version can be found (loader keeps its existing INVALID_VERSION behaviour as a last resort).