Installation
Prerequisites
Section titled “Prerequisites”- Node.js ≥ 18 (the project is developed on Node 24)
- npm (ships with Node;
npxis used to run the tools) @angular/compiler— an optional peer dependency of@cl-mcp/analyzer, required only to analyze Angular libraries or validate Angular templates. React-only setups can skip it. See Optional @angular/compiler.
Use it from npm (recommended)
Section titled “Use it from npm (recommended)”The three runnable packages are published to npm as bins — run them with
npx, no clone or build required:
| Command | Package | What it does |
|---|---|---|
npx -y @cl-mcp/cli … |
@cl-mcp/cli |
The cl-mcp CLI (query + generate). |
npx -y @cl-mcp/mcp-server |
@cl-mcp/mcp-server |
The MCP server over stdio. |
# generate metadata, then serve or query itnpx -y @cl-mcp/cli generate --config ./cl-mcp.yamlCL_MCP_DATA_DIR=./data npx -y @cl-mcp/mcp-servernpx -y @cl-mcp/cli list-libraries --data-dir ./dataSee Quick Start for the full walkthrough.
Develop cl-mcp from source
Section titled “Develop cl-mcp from source”Only needed to work on cl-mcp itself (not to use it):
Clone & build
Section titled “Clone & build”git clone https://github.com/marcinmilewicz/cl-mcp.gitcd cl-mcpnpm installnpm run build # builds analyzer → core → mcp-server → cli, in orderVerify
Section titled “Verify”npm test # run the full test suite (vitest)npm run lint # biomeRepository scripts
Section titled “Repository scripts”| Script | What it does |
|---|---|
npm run build |
Build all packages in dependency order. |
npm test |
Run all tests via vitest. |
npm run lint / npm run lint:fix |
Lint / auto-fix with Biome. |
npm run clean |
Remove dist/ from all packages. |
npm run docs:dev |
Run this documentation site locally. |
npm run docs:build |
Build the packages, then the docs site (with the TypeDoc API reference). |