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: 3 additions & 2 deletions packages/igniteui-mcp/Specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ The server exposes six core tools built using the `@modelcontextprotocol/sdk` an
- On HTTP 404: does **not** throw or propagate an exception — returns a structured MCP tool-level error response (see Error Response Contract below)
- On any other HTTP error status: throws, which the MCP transport surfaces as an unhandled tool error
- In local mode, successful responses reconstruct YAML frontmatter including `component`, `toc_name`, `keywords`, `summary`, and `premium` when present
- In local mode, adds a `package` line after `component` with the package and version of the doc's components in the bundled API reference (e.g. `package: igniteui-react-grids@19.9`); omitted when none of them is in the API reference. Remote-mode responses carry no `package` line, because the backend returns the doc body without frontmatter

**Schema**:
- `framework`: Enum (angular|react|blazor|webcomponents) — required
Expand Down Expand Up @@ -157,7 +158,7 @@ Doc "<name>" not found for framework "<framework>". Use list_components to see a
- Output is text, not structured JSON
- Returns an empty-query message immediately if the input is blank

**Return**: Up to 10 ranked text results. Use the exact `component` name and `platform` from a result to call `get_api_reference`.
**Return**: Up to 10 ranked text results, each tagged with the package and version it describes (e.g. `igniteui-react-grids@19.9`). Use the exact `component` name and `platform` from a result to call `get_api_reference`.

### **get_api_reference**
**Purpose**: Retrieve the full API reference for one Ignite UI component or class. Supports Angular, React, Web Components, and Blazor. Component name matching is case-insensitive.
Expand All @@ -173,7 +174,7 @@ Doc "<name>" not found for framework "<framework>". Use list_components to see a
- `platform`: Enum (angular|react|webcomponents|blazor) — required
- `section`: Enum (all|properties|methods|events) — optional; defaults to `all`

**Return**: 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.
**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.

#### Error Response Contract

Expand Down
6 changes: 3 additions & 3 deletions packages/igniteui-mcp/igniteui-doc-mcp/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -544,11 +544,11 @@ npx @modelcontextprotocol/inspector ig mcp # via CLI (after build:mcp-
| Tool | Parameters | Description |
|------|-----------|-------------|
| `list_components` | `framework` (required), `filter?` | List docs for a framework, optionally filtered by keyword (LIKE match against filename, component, toc_name, keywords, summary) |
| `get_doc` | `framework` (required), `name` (required) | Return full markdown content of a specific doc. `name` is without `.md` extension |
| `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. |
| `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 |
| `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. |
| `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
6 changes: 3 additions & 3 deletions packages/igniteui-mcp/igniteui-doc-mcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ Every tool is scoped to a single framework — `angular`, `react`, `blazor`, or
| Tool | Parameters | Description |
|------|-----------|-------------|
| `list_components` | `framework` (required), `filter`, `group`, `detail` | Browse the component doc index, grouped by the published documentation table of contents. By default returns a compact index — one heading per group with a short summary and its doc names. `group` (a heading exactly as printed, e.g. `Grids & Lists > Data Grid`) returns that group's docs with summaries; in grouped mode, `filter` is a case-insensitive substring match against filename, component name, keywords, summary, and group name; `detail: "docs"` returns the flat per-doc list with every summary (much larger), where `filter` does not match group names. No pagination. |
| `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 (`virtual-scroll` → `grid-virtualization`). |
| `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 (`virtual-scroll` → `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, 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`. |
| `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. |
| `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
Loading