Repository navigation
v0.9.6
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 optionsbuildTarget(the view's application build),outputPathandserver.ng run <project>:<target>runs the build and writesview.htmlandserver.mjs. view.htmlcarries 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.mjsis one self-contained file:node server.mjsruns anywhere withoutnode_modules.externalPackages: truekeeps packages out of it;tsConfigpicks the tsconfig for the server. The server is not type-checked, so runtsc --noEmitfirst 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