Optionalprojects: ProjectCacheShared project cache; without it every call parses the workspace anew.
Behavior hints for clients (MCP 2025-03-26); hints, not guarantees.
Human-readable description of what the tool does.
Unique tool name.
Display name for clients (MCP 2025-06-18).
Execute the tool with given arguments.
Tool arguments validated against inputSchema
Cancellation and progress of the MCP request (absent in direct calls)
Tool execution result
MCP tool for analyzing build impact before transformations. Estimates affected files, modules, build time, and gives a recommendation.
Remarks
Uses
IncrementalAnalyzer.getBuildScope()with the target files as the changed set. The underlyingDependencyGraphBuilderfollowsexport ... from, resolves tsconfig path aliases, splits value vs type-only dependents and does not let barrels inflate the radius. Optionalsymbolsrestrict the impact to consumers of specific exported symbols.External templates (
.html) are not part of the TypeScript program; they are mapped to the component files that own them (templateUrl, then same basename) instead of failing. Such a component is recompiled, but its dependents are not counted, because a template edit does not change the component's TypeScript API. Files that cannot be mapped are listed inunresolvedFiles.summaryOnlyandmaxResultsshorten the file lists; counts always describe the full result.Host components that use a changed component, directive or pipe only in their template (NgModule declarations, no import of the class) are listed as
templateDependentFilesand, with the used classes, intemplateHosts. They are recompiled and template type-checked; their own dependents are not counted.