Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/igniteui-mcp/Specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,16 @@ Doc "<name>" not found for framework "<framework>". Use list_components to see a
**Logic**:
- Requires the exact component name (obtained from user code or an `search_api` result)
- Accepts an optional `section` parameter to retrieve a subset of the API and reduce response size
- Returns `isError: true` with a prompt to use `search_api` if the component is not found
- Accepts an optional `member` parameter to return a single property, method or event line; the lookup also covers the component's base types, so inherited members are found, and it takes precedence over `section`
- A full entry lists the members the type declares itself; when it inherits more, the entry has an `Extends:` line and ends with a note naming the base types that hold the rest
- Returns `isError: true` with a prompt to use `search_api` if the component is not found, or if `member` is not found on the component or its base types
- If an exact case-sensitive match is not found, performs a case-insensitive lookup within the selected platform before returning an error

**Schema**:
- `component`: String — exact component or class name; max 128 characters — required
- `platform`: Enum (angular|react|webcomponents|blazor) — required
- `section`: Enum (all|properties|methods|events) — optional; defaults to `all`
- `member`: String — property, method or event name; max 128 characters — optional

**Return**: A `Package: <name>@<version>` line naming the release the entry was read from, an `Also in:` line when other packages ship the same name (their definition can differ), then formatted Markdown for the requested API entry. The full entry (`section="all"`) includes the class/interface summary, properties with types and descriptions, methods with signatures, and events.

Expand Down
8 changes: 5 additions & 3 deletions packages/igniteui-mcp/igniteui-doc-mcp/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ npx @modelcontextprotocol/inspector ig mcp # via CLI (after build:mcp-
| `get_doc` | `framework` (required), `name` (required) | Return full markdown content of a specific doc. `name` is without `.md` extension. The frontmatter has a `package` line with the package and version of the doc's components in the bundled API reference (local mode only: the remote backend returns no frontmatter) |
| `search_docs` | `query` (required), `framework` (required) | FTS4 full-text search with Porter stemming. Returns top 20 results with snippet excerpts |
| `get_project_setup_guide` | `framework` (required) | Return setup guides for creating a new Ignite UI project. For Angular/React/WC: CLI docs. For Blazor: dotnet + NuGet guides |
| `get_api_reference` | `platform` (required), `component` (required), `section?`, `member?` | Retrieve API reference for a component or class. With no optional args, returns the full entry. Pass `section="properties\|methods\|events"` for one section, or `member="<name>"` to return just one property/method/event line. `member` takes precedence over `section`. Also tolerates `component="Name#member"` shorthand. Every response starts with a `Package: <name>@<version>` line. |
| `get_api_reference` | `platform` (required), `component` (required), `section?`, `member?` | Retrieve API reference for a component or class. With no optional args, returns the full entry. Pass `section="properties\|methods\|events"` for one section, or `member="<name>"` to return just one property/method/event line. `member` takes precedence over `section` and also finds inherited members through the entry's `Extends:` chain. Also tolerates `component="Name#member"` and `component="Name.member"` shorthand. Every response starts with a `Package: <name>@<version>` line. |
| `search_api` | `framework` (required), `query` (required) | Search API entries by keyword, feature, or partial component name. Returns up to 10 results ranked by match count, each tagged with the package and version it describes (e.g. `igniteui-react-grids@19.9`) |

#### get_project_setup_guide
Expand Down Expand Up @@ -579,9 +579,11 @@ Returns framework-specific setup guides for creating a new Ignite UI project.
| Parameter | Required | Description |
|-----------|----------|-------------|
| `platform` | Yes | `angular`, `react`, `webcomponents`, or `blazor` |
| `component` | Yes | Exact component or class name (case-insensitive). Also accepts `Name#member` shorthand — the `#member` suffix is split off into the `member` field when `member` is not already supplied. |
| `component` | Yes | Exact component or class name (case-insensitive). Also accepts `Name#member` and `Name.member` shorthand — the suffix is split off into the `member` field when `member` is not already supplied. |
| `section` | No | `properties`, `methods`, `events`, or `all` (default). Ignored when `member` is set. |
| `member` | No | Property/method/event name (e.g. `checked`, `click`, `igcChange`). Returns one line. Returns `isError` if the member is not found. |
| `member` | No | Property/method/event name (e.g. `checked`, `click`, `igcChange`). Returns one line. An owner prefix (`IgxGridComponent.data`) or call parentheses (`groupBy()`) are dropped. Returns `isError` if the member is not found on the component or its base types. |

**Inherited members.** An entry in `llms-full.txt` lists the members the type declares, plus inherited ones whose declaring type has no entry of its own (mixins, non-exported base classes). The rest stay in the base type's entry, which the line after the heading names: `Extends: IgxGridBaseDirective`. A `member` lookup that misses on the entry walks that chain (`ApiDocLoader.getBases`) and answers `IgxGridComponent.allowFiltering (property, inherited from IgxGridBaseDirective)`. A full entry or section ends with a note listing the base types. The `Extends:` line is written by `src/data/llms-utils.ts` in the api-docs repo; API docs generated before that change have no such line and inherited members are not found.

**Examples:**

Expand Down
2 changes: 1 addition & 1 deletion packages/igniteui-mcp/igniteui-doc-mcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Every tool is scoped to a single framework — `angular`, `react`, `blazor`, or
| `get_doc` | `framework` (required), `name` (required) | Return the full markdown content of one component doc by name, kebab-case without `.md` (e.g. `grid-editing`, `accordion`). Bare grid feature names resolve automatically (`sorting` → `grid-sorting`), and common aliases are handled (`virtualization` → `grid-virtualization`). The frontmatter has a `package` line with the package and version of the doc's components in the bundled API reference (e.g. `igniteui-react-grids@19.9`); local mode only. |
| `search_docs` | `framework` (required), `query` (required) | Full-text search across the docs for one framework. Returns up to 20 title- and keyword-weighted results with highlighted excerpts. Multi-word queries are implicit AND; trailing `*` does prefix matching (`grid*`); hyphenated terms match as phrases. |
| `search_api` | `query` (required), `platform` | Discover API entries by keyword, feature name, or partial component name. Returns up to 10 ranked results with framework tag, API type, package and version it describes (e.g. `igniteui-react-grids@19.9`), and excerpt. Omit `platform` to search all four frameworks at once. |
| `get_api_reference` | `platform` (required), `component` (required), `section`, `member` | Return the full API reference for an exact component or class name (case-insensitive). Narrow the response with `section` (`properties`, `methods`, `events`, `all` — default `all`) or `member` to fetch a single property/method/event. `member` takes precedence over `section`. Every response starts with a `Package: <name>@<version>` line naming the release the entry was read from, plus an `Also in:` line when other packages ship the same name. |
| `get_api_reference` | `platform` (required), `component` (required), `section`, `member` | Return the full API reference for an exact component or class name (case-insensitive). Narrow the response with `section` (`properties`, `methods`, `events`, `all` — default `all`) or `member` to fetch a single property/method/event. `member` takes precedence over `section` and also finds members inherited from base types. Every response starts with a `Package: <name>@<version>` line naming the release the entry was read from, plus an `Also in:` line when other packages ship the same name. |
| `resolve_import` | `symbols` (required), `platform` | Return ready-to-paste import statements for up to 50 symbols per call, grouped by module — e.g. `IgxGridComponent` → `'igniteui-angular/grids/grid'`, `IgxColumnComponent` → `'igniteui-angular/grids/core'`, `IgcGridComponent` → `'igniteui-webcomponents-grids/grids'`. For Blazor, returns the NuGet package, the `@using` namespace and the module registration. The platform is inferred per symbol from the `Igx`/`Igr`/`Igc`/`Igb` prefix; pass `platform` for unprefixed names (e.g. `GridSelectionMode`). Unknown names get "Did you mean" suggestions (`IgxGrid` → `IgxGridComponent`). |
| `get_project_setup_guide` | `framework` (optional) | Setup guidance for a new Ignite UI project. Angular, React, and Web Components return Ignite UI CLI scaffolding steps; Blazor returns `dotnet new` + NuGet instructions. Read-only — creates no files and runs no commands. |

Expand Down
Loading