Repository navigation
v2.0.1
What's Changed
Patch release. No changes to the @modelcontextprotocol/ext-apps library itself; the fixes are in the example servers, which are published as their own packages (including @modelcontextprotocol/server-pdf).
Bug fixes
- Example servers no longer crash at startup on Node older than 20.11. They computed their
distdirectory fromimport.meta.filename/import.meta.dirname, which only exist from Node 20.11, so on Node 18 and 20.0 to 20.10 the module threwTypeError: Cannot read properties of undefined (reading 'endsWith')at load, before the server could answerinitialize. All 21 affected servers and the quickstart now derive the path fromimport.meta.urlwithfileURLToPath. No behaviour change on Node 20.11+. Affected the published@modelcontextprotocol/server-pdf1.7.5 and 2.0.0. by @ochafik in #787 engines.node: ">=20"is now declared on the 21 published example packages, matching the root package and the README.
CI
- The build now also runs the pdf-server MCPB bundle on Node 20.0.0, so this regression fails the build. #787
- The dependency isolation check adds the
ES2022.Errorlib to its consumer projects.@modelcontextprotocol/client2.1.0's typings referenceErrorOptions, so a project compiling withskipLibCheck: falseand alibolder than ES2022 needs the same. #788
Packaging
repository.urluses the canonicalgit+https://github.com/modelcontextprotocol/ext-apps.gitform in all manifests, which removes the"repository.url" was normalizedwarning from every publish job. by @ochafik in #773
Full Changelog: v2.0.0...v2.0.1