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
fix(mcp): find inherited members in get_api_reference - #1906
get_api_reference member lookups failed for anything a component inherits. In a recent skills test run every failed MCP call was one of these, e.g. IgxGridComponent.allowFiltering and IgxDatePickerComponent.inputFormat. The bundled API reference listed only the members a type declares itself and named no base type, so the tool had nowhere to look.
Changes:
API data: entries carry an Extends: line naming their documented base types. Members inherited from a base without its own entry (mixins, non-exported classes) are listed inline. docs/*-api is regenerated for all four platforms; no existing line was removed.
Member lookup: on a miss the handler walks the base types and reports where the member was found, e.g. IgxGridComponent.allowFiltering (properties, inherited from IgxGridBaseDirective). The not-found error names the base types that were searched.
Full entries: when a type inherits more, the response ends with a note naming the base types that hold the rest.
Input forms:Component.member is split like Component#member, and member() is accepted.
Tool description, schema text, README, DEVELOPMENT.md and Specification.md updated to match.
The data change comes from the generator in IgniteUI/api-docs: IgniteUI/api-docs#279. Until that merges and the blazor/api-docs submodule moves to it, regenerating docs/*-api from the pinned submodule would drop the Extends: lines. No submodule pointer is changed here.
Known gap: React components from the igniteui-react package (e.g. IgrCheckbox.disabled) still miss inherited members, because that package's TypeDoc JSON does not contain them. React grids are fixed.
Related Issue
None filed.
Type of Change
Bug fix (non-breaking change that fixes an issue)
New feature (non-breaking change that adds functionality)
Breaking change (fix or feature that would cause existing functionality to change)
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
Additional Context
Run locally:
MCP package npm test (vitest): 497 pass.
spec/unit/mcp-runtime-spec: 43 specs, 0 failures.
Root npm run lint and npm run build: pass.
Root npm run test (lint, build, Jasmine with coverage): 983 of 985 specs executed, 0 failures, 2 pending (both pre-existing xits in the TypeScript AST transformer specs).
Checked against the built server: IgxGridComponent.allowFiltering, IgxDatePickerComponent.inputFormat, IgbGrid.Data and IgcGridComponent.data now resolve. IgxColumnComponent.required still returns not found, correctly: it is not a member of that class.
Proposed changelog line: * **fix(mcp):** get_api_reference finds inherited members and accepts Component.member.
Member lookups failed for anything a component inherits, because the
bundled API reference listed only the members a type declares itself.
- API entries carry an "Extends:" line naming their documented base
types; members inherited from undocumented bases are listed inline.
- A member lookup walks the base types and says where the member was
found. Full entries end with a note naming the base types.
- "Component.member" and "member()" are accepted as input.
- docs/*-api regenerated with the updated api-docs generator.
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
A critical package-resolution bug can resolve inherited members through the wrong package and incorrectly attribute them to the requesting component’s package.
This PR improves the MCP server’s get_api_reference tool so member lookups can follow documented inheritance chains rather than searching only the requested type.
Changes:
Adds base-type metadata and traversal, with inherited-member attribution and clearer lookup guidance.
Accepts dotted component/member names and call-style member input.
Refreshes bundled API snapshots and updates tests, schemas, and documentation.
File
Description
spec/unit/mcp-runtime-spec.ts
Adds base-lookup support to runtime test doubles.
packages/igniteui-mcp/Specification.md
Documents inherited-member lookup and optional member selection.
Base lookup used the platform-wide index, where the last package loaded
wins a shared name. IgniteUI.Blazor entries such as IgbSelect were walked
through IgniteUI.Blazor.Lite's copy of their base, which has different
members, and the result was reported under the requesting package.
A base is now taken from the entry's own package when that package has
it, with the platform-wide lookup as the fallback.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Several generated inherited-member entries retain unresolved generic type arguments, including IgbInput.ValueChanging documenting EventCallback<TValue> instead of EventCallback<string>, and need correction.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Resolve inherited generic member types when generating entries
The newly inlined IgbInput.ValueChanging uses EventCallback<TValue>, although IgbInput is non-generic and its value is a string, so member lookups return an unresolved payload type. Substitute concrete base type arguments when generating inherited members and regenerate the affected entries (EventCallback<string> here and for IgbMaskInput). The same issue occurs in this file at IgbMaskInput.ValueChanging:1730, IgbDropdownItem.Value:1402, and IgbNumberEventArgs.Detail:1842.
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
get_api_referencemember lookups failed for anything a component inherits. In a recent skills test run every failed MCP call was one of these, e.g.IgxGridComponent.allowFilteringandIgxDatePickerComponent.inputFormat. The bundled API reference listed only the members a type declares itself and named no base type, so the tool had nowhere to look.Changes:
Extends:line naming their documented base types. Members inherited from a base without its own entry (mixins, non-exported classes) are listed inline.docs/*-apiis regenerated for all four platforms; no existing line was removed.IgxGridComponent.allowFiltering (properties, inherited from IgxGridBaseDirective). The not-found error names the base types that were searched.Component.memberis split likeComponent#member, andmember()is accepted.The data change comes from the generator in IgniteUI/api-docs: IgniteUI/api-docs#279. Until that merges and the
blazor/api-docssubmodule moves to it, regeneratingdocs/*-apifrom the pinned submodule would drop theExtends:lines. No submodule pointer is changed here.Known gap: React components from the
igniteui-reactpackage (e.g.IgrCheckbox.disabled) still miss inherited members, because that package's TypeDoc JSON does not contain them. React grids are fixed.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
Run locally:
npm test(vitest): 497 pass.spec/unit/mcp-runtime-spec: 43 specs, 0 failures.npm run lintandnpm run build: pass.npm run test(lint, build, Jasmine with coverage): 983 of 985 specs executed, 0 failures, 2 pending (both pre-existingxits in the TypeScript AST transformer specs).Checked against the built server:
IgxGridComponent.allowFiltering,IgxDatePickerComponent.inputFormat,IgbGrid.DataandIgcGridComponent.datanow resolve.IgxColumnComponent.requiredstill returns not found, correctly: it is not a member of that class.Proposed changelog line:
* **fix(mcp):** get_api_reference finds inherited members and accepts Component.member.🤖 Generated with Claude Code