Skip to content

v0.9.6

Choose a tag to compare

@github-actions github-actions released this 10 Oct 19:26
· 62 commits to main since this release

Build an MCP App with ng build: the new ngx-json-render:mcp-app builder.

An MCP Apps host (Claude, ChatGPT, VS Code, Cursor) loads a view as one HTML document with nowhere to fetch chunks from, so an Angular build has to be folded into a single page. Until now only this repository's own script did that. The builder does it for any app, and bundles the server from 0.9.5 next to it.

What's new

  • Add a target with "builder": "ngx-json-render:mcp-app" and the options buildTarget (the view's application build), outputPath and server. ng run <project>:<target> runs the build and writes view.html and server.mjs.
  • view.html carries every module script, every local stylesheet, and the fonts and images those stylesheets use as data URLs. Hashed file names work as they are. Local icon links are dropped, since an iframe shows no icon.
  • Files the page cannot reach, such as an image referenced only from a template, are listed as a warning.
  • server.mjs is one self-contained file: node server.mjs runs anywhere without node_modules. externalPackages: true keeps packages out of it; tsConfig picks the tsconfig for the server. The server is not type-checked, so run tsc --noEmit first if you want that.
  • The repository's MCP App example now builds with it; its view is byte-identical to before.

The README section Building it has the setup.

Upgrading

npm i ngx-json-render@0.9.6. Nothing changes for existing code. The Material catalog's ^0.8.0 || ^0.9.0 peer covers this release, so no catalog update is needed.

Full Changelog: v0.9.5...v0.9.6