Repository navigation
fix(mcp): stop get_doc aliases from serving the wrong doc - #1904
Merged
Merged
Conversation
The alias table still mapped combo names to a doc called "overview". Since the documentation database was rebuilt, that name belongs to the Themes page, so get_doc returned Themes for combo, IgrCombo, IgbCombo and IgcComboComponent, and the React combo-overview doc was unreachable. The virtual-scroll alias also hid the real Virtual Scroll doc. An exact doc name now wins over an alias, and the aliases point to the current doc names. A test checks every alias against the bundled database. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The tool description and README still advertise virtual-scroll as a grid-virtualization alias, directing Angular, React, and Web Components clients to the wrong component’s documentation.
1 open issue
What changed in this PR
This PR corrects document lookup in the Ignite UI MCP server so get_doc aliases no longer override exact document names or route Combo requests to Themes documentation.
Changes:
- Try normalized document names before falling back to aliases.
- Correct outdated alias targets and remove Virtual Scroll aliases where standalone documentation exists.
- Add database-backed alias checks and regression tests for exact-name precedence and Combo resolution.
| File | Description |
|---|---|
packages/igniteui-mcp/igniteui-doc-mcp/src/tools/doc-tools.ts |
Corrects alias mappings and prioritizes exact document names. |
packages/igniteui-mcp/igniteui-doc-mcp/src/__tests__/tools/doc-tools.test.ts |
Validates aliases against the bundled database and tests lookup precedence. |
Review effort: Balanced
kdinev
reviewed
Nov 18, 2026
kdinev
reviewed
Nov 18, 2026
kdinev
reviewed
Nov 18, 2026
kdinev
previously approved these changes
Nov 18, 2026
React, Angular and Web Components have a Virtual Scroll doc, so the "-ing" form resolves there instead of grid-virtualization. The get_doc description and README no longer advertise the removed virtual-scroll alias. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
kdinev
approved these changes
Nov 19, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Found while sanity-checking the MCP server in the published
igniteui-cli@16.0.0.The
get_docalias table still mapped combo names to a doc calledoverview. Since the documentation database was rebuilt on theigniteui-documentationlayout,overviewis the Themes page and the Combo doc iscombo-overview. The alias was applied before the exact name was tried, and no "closest match" note was shown.combo,combo-box,IgrCombocombo-overview(the doc's exact name)combo,IgcComboComponentcombo,IgbCombovirtual-scrollin Angular, React, Web ComponentsChanges in
src/tools/doc-tools.ts:resolveDoctries the requested name first and uses the alias only when no doc has that name.combo,combo-box,comboboxpoint tocombo-overviewin every framework; Angular gains the barecomboalias.combo-overviewalias and thevirtual-scrollalias for Angular, React and Web Components. Blazor keepsvirtual-scroll, as it has no Virtual Scroll doc.themes/theme→overview,theming-grid→grid-theming(React, Web Components, Blazor), Angularradio-group→radioandrange-slider→slider-slider. These already landed on the right doc through the search fallback, but with a "closest match" note.Related Issue
None filed.
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)Additional Context
The root
npm run testandnpm run lintwere not run. What was run:npx vitest runinpackages/igniteui-mcp/igniteui-doc-mcp: 21 files, 484 tests pass.npx tsc --noEmitin the same package: clean.New tests in
src/__tests__/tools/doc-tools.test.ts:db/igniteui-docs.db: every alias points to an existing doc, and no alias renames an existing doc. This would have failed when the database was rebuilt.Remote mode goes through the same
resolveDoc, so it now also asks the backend for the exact name first. That was not exercised against a remote backend.CHANGELOG.mdis not updated, as its top section is the released 16.0.0. Suggested line for the next patch release:* **fix(mcp):** get_doc no longer returns the Themes overview for combo names (combo, IgrCombo, IgbCombo, IgcComboComponent) or grid virtualization for virtual-scroll; an exact doc name now takes precedence over an alias.🤖 Generated with Claude Code