You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(mcp): name the package and version in docs and API results - #1895
MCP answers looked the same for every release, so a caller could not tell which package version a doc or API entry described (#1863). This PR labels the answers and refreshes the data behind them.
Package and version in results
get_api_reference starts every response (full entry, one section, one member) with a Package: <name>@<version> line.
search_api tags each hit, e.g. **IgxPaginatorComponent** [angular] [class] [igniteui-angular@22.3].
get_doc adds a package line to the frontmatter, after component, in local mode only (see the notes below). It is derived by looking up the doc's listed components in the bundled API reference, each in the framework its prefix names, and is omitted when none of them is there.
The version is read from the Version: header of each bundled llms-full.txt. The header names the minor line (22.3), because a snapshot describes every patch of it; the folder keeps the full version it stands for (docs/angular-api/igniteui-angular/22.3.0/).
The label is therefore <package>@<major>.<minor>, with no patch number and no pre-release suffix.
When several packages ship the same name, the Package: line names the package the returned entry was read from, and an Also in: line lists the others, whose definition can differ (e.g. Package: IgniteUI.Blazor.Lite@1.0 / Also in: IgniteUI.Blazor@26.1).
Regenerated API reference snapshots (built from api-docs vnext)
15 packages: igniteui-react, -grids, -dockmanager 19.11.0; charts/gauges/maps family 19.6.0
Blazor
25.1.x, 5 packages
IgniteUI.Blazor + Documents.* 26.1.98, Lite 1.0.1, GridLite 1.0.0
Angular
22.2.0 / 22.0.0
igniteui-angular 22.3.0, the other 11 packages 22.0.1
The "Now" column is the version each snapshot stands for, which is also its folder name; results show only its major.minor part. Some of these releases are not on npm yet; see the review notes.
I have built the project successfully (npm run build)
I have run the linter (npm run lint)
I have added/updated tests as needed
My changes do not introduce new warnings or errors
npm run test passes: lint with 0 errors, build, and 905 Jasmine specs with 0 failures (2 pending). The MCP server vitest suite also passes (470 tests), and the tools were called on the built server.
Additional Context
Sample output from the built server:
Package: igniteui-react-grids@19.11
IgrGridToolbarExporter.exportPDF (property):
- **exportPDF**: `boolean` — Show entry for PDF export.
The get_doc version is that of the bundled API reference, not of the doc text itself: docs carry no version, and the docs database was not rebuilt in this PR.
Web Components and React gain the charts, gauges, maps, excel and spreadsheet packages, which widens API coverage and grows the published package.
Several snapshots were built from pre-releases, because those packages publish their final versions after this CLI release: Angular 22.3.0-rc.0, React 19.11.0-rc.0, Web Components grids 7.4.0-beta.2 and charts family 7.1.1-beta.19. Their folders name the final release (22.3.0, 19.11.0, 7.4.0, 7.1.1) and their labels its minor line, so the content can differ slightly from the final build.
The 11 other Angular packages (charts, core, gauges, maps, excel, …) are the 22.0.1 release, the latest stable one; 22.0.2 exists only as an alpha.
The links inside the snapshots keep the API site's own URL segment (e.g. /igniteui-angular/22.3/, /igniteui-angular-charts/22.0.0/), which is not always the folder name.
The Web Components charts-family pre-release is not registered in api-docs; it was built with a local platforms-config.json edit.
Remote mode: get_doc is not labelled. The .NET backend returns the doc body without frontmatter, so there is no component line to look up. Labelling remote responses needs a backend change and is not in this PR. get_api_reference and search_api read the bundled data in both modes and are labelled in both.
Submodule pointers are not part of this PR. The snapshots were built with blazor/api-docs at 3cc39f1 (vnext), which is newer than the pinned commit.
Specification.md content changed; its Version/Date header may need a bump.
Web Components 7.4.1 (was an unversioned 'latest' snapshot), React 19.9.1,
Blazor 26.1.98 and Angular 22.2.6, built from api-docs vnext. Web Components
and React now also include the charts, gauges, maps, excel and spreadsheet
packages.
Refs #1863
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
get_api_reference starts every response with a 'Package: <name>@<version>'
line, search_api tags each hit with it, and get_doc adds a 'package' line to
the frontmatter for the components the doc lists. The version comes from the
'Version:' header of the bundled API snapshot.
Refs #1863
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
API and search responses misattribute a selected symbol definition to packages with different APIs, while remote and cross-framework documentation responses omit package labels.
This PR adds package/version context to Ignite UI MCP documentation and API answers, addressing part of #1863. It also refreshes bundled API snapshots and expands React and Web Components coverage.
Changes:
Reads snapshot versions and adds package labels to API responses, search hits, and document frontmatter.
Updates bundled API references across all four frameworks.
Adds attribution tests and updates tool descriptions and documentation.
…s-framework doc components
An entry that ships in several packages was labelled with all of them, although
only one definition is served. The Package line now names the package the
entry was read from and lists the others on an 'Also in' line.
get_doc looks each listed component up in the framework its prefix names, so
Angular docs that use Igc web components get their package line.
Documents that the get_doc package line is local mode only.
Refs #1863
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
When a doc lists IgbCombo<TValue, TItem>, this split produces two incomplete names that the loader cannot resolve. The doc therefore loses its package label even though that component exists in the bundled Lite reference. Split only on commas outside generic argument lists, preserving exact names for lookup, and add a multi-parameter generic regression case.
- Added functionality to drop pre-release suffixes in version strings within snapshotVersion.
- Updated tests to verify correct version parsing for pre-releases.
- Enhanced addPackageVersions to correctly handle component names with generic arguments, ensuring commas within generics are preserved.
- Introduced new package entries for IgniteUI Blazor components in tests.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The refresh includes prerelease API snapshots instead of the stated stable versions, while the loader strips prerelease suffixes and misleadingly labels those APIs as stable.
React packages to 19.11.0-rc.0; igniteui-webcomponents 7.5.0,
igniteui-dockmanager 2.3.0 and igniteui-grid-lite 0.12.0 to their
final releases.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…se suffixes
Every docs/*-api/<package>/<version>/ folder is now the x.y.z version in the
snapshot's Version: header. The headers of snapshots built from pre-releases
name the release they lead to, which those packages publish after the CLI.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
22.0.2 exists only as an alpha, so the 11 igniteui-angular-* packages go back
to the snapshots built from the 22.0.1 release (as in 517cd25), in 22.0.1/
folders. igniteui-angular itself stays at 22.3.0.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The Version: header of every bundled llms-full.txt drops the patch number
(22.3.0 -> 22.3), so results read e.g. igniteui-angular@22.3. A snapshot
describes the whole minor line; folder names are unchanged. Examples in the
tool descriptions and docs follow.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
MCP answers looked the same for every release, so a caller could not tell which package version a doc or API entry described (#1863). This PR labels the answers and refreshes the data behind them.
Package and version in results
get_api_referencestarts every response (full entry, one section, one member) with aPackage: <name>@<version>line.search_apitags each hit, e.g.**IgxPaginatorComponent** [angular] [class] [igniteui-angular@22.3].get_docadds apackageline to the frontmatter, aftercomponent, in local mode only (see the notes below). It is derived by looking up the doc's listed components in the bundled API reference, each in the framework its prefix names, and is omitted when none of them is there.Version:header of each bundledllms-full.txt. The header names the minor line (22.3), because a snapshot describes every patch of it; the folder keeps the full version it stands for (docs/angular-api/igniteui-angular/22.3.0/).<package>@<major>.<minor>, with no patch number and no pre-release suffix.Package:line names the package the returned entry was read from, and anAlso in:line lists the others, whose definition can differ (e.g.Package: IgniteUI.Blazor.Lite@1.0/Also in: IgniteUI.Blazor@26.1).Regenerated API reference snapshots (built from
api-docsvnext)latest(unversioned), 5 packagesigniteui-webcomponents7.5.0,-grids7.4.0,igniteui-dockmanager2.3.0,igniteui-grid-lite0.12.0, charts/gauges/maps family 7.1.1igniteui-react,-grids,-dockmanager19.11.0; charts/gauges/maps family 19.6.025.1.x, 5 packagesIgniteUI.Blazor+Documents.*26.1.98,Lite1.0.1,GridLite1.0.0igniteui-angular22.3.0, the other 11 packages 22.0.1The "Now" column is the version each snapshot stands for, which is also its folder name; results show only its major.minor part. Some of these releases are not on npm yet; see the review notes.
Related Issue
Closes #1863
Type of Change
Affected Packages
igniteui-cli(packages/cli)@igniteui/cli-core(packages/core)@igniteui/angular-templates(packages/igx-templates)@igniteui/angular-schematics(packages/ng-schematics)@igniteui/mcp-server(packages/igniteui-mcp)Checklist
npm run test)npm run build)npm run lint)npm run testpasses: lint with 0 errors, build, and 905 Jasmine specs with 0 failures (2 pending). The MCP server vitest suite also passes (470 tests), and the tools were called on the built server.Additional Context
Sample output from the built server:
Notes for review:
get_docversion is that of the bundled API reference, not of the doc text itself: docs carry no version, and the docs database was not rebuilt in this PR./igniteui-angular/22.3/,/igniteui-angular-charts/22.0.0/), which is not always the folder name.api-docs; it was built with a localplatforms-config.jsonedit.get_docis not labelled. The .NET backend returns the doc body without frontmatter, so there is nocomponentline to look up. Labelling remote responses needs a backend change and is not in this PR.get_api_referenceandsearch_apiread the bundled data in both modes and are labelled in both.blazor/api-docsat3cc39f1(vnext), which is newer than the pinned commit.Specification.mdcontent changed; its Version/Date header may need a bump.🤖 Generated with Claude Code