feat(mcp): Some enhancements to automated mcp db build - #1777
Open
dkalinovInfra wants to merge 18 commits into
Open
feat(mcp): Some enhancements to automated mcp db build #1777dkalinovInfra wants to merge 18 commits into
dkalinovInfra wants to merge 18 commits into
Conversation
…incremental support
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…iteUI/igniteui-cli into dkalinov/mcp-db-git-workflow
…ng in derive-components script
… compression scripts
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds automation and guardrails around building the Ignite UI MCP documentation SQLite database, aiming to prevent partial/invalid publishes and reduce metadata drift from LLM compression.
Changes:
- Adds a manual GitHub Actions workflow + composite action to rebuild framework docs, assemble a single DB, and open a publishing PR.
- Introduces scripts to restore
dist/docs_finalfrom the committed DB and to deterministically derivecomponentfrontmatter post-compression. - Hardens compression and DB build behavior (model override via env, batch invalid-response retry, conditional
VACUUM, build summary reporting, DB health checks).
Reviewed changes
Copilot reviewed 14 out of 16 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
spec/unit/docs-db-counts-spec.ts |
New Jasmine spec to sanity-check DB completeness/quality before publishing. |
packages/igniteui-mcp/igniteui-doc-mcp/switch-submodules.sh |
Utility to move doc-source submodules to a requested branch. |
packages/igniteui-mcp/igniteui-doc-mcp/scripts/restore-docs-final.ts |
Restores dist/docs_final (and optional toc stubs) from the committed SQLite DB for incremental runs. |
packages/igniteui-mcp/igniteui-doc-mcp/scripts/report-build-summary.ts |
Emits a Markdown build summary for CI step summaries. |
packages/igniteui-mcp/igniteui-doc-mcp/scripts/derive-components.ts |
Deterministically derives component frontmatter using API index + document heuristics. |
packages/igniteui-mcp/igniteui-doc-mcp/scripts/compress-angular-docs.ts |
Allows model override via env; adds richer invalid logging + inline retry for batch results. |
packages/igniteui-mcp/igniteui-doc-mcp/scripts/compress-react-docs.ts |
Same as above for React. |
packages/igniteui-mcp/igniteui-doc-mcp/scripts/compress-blazor-docs.ts |
Same as above for Blazor. |
packages/igniteui-mcp/igniteui-doc-mcp/scripts/compress-wc-docs.ts |
Same as above for Web Components + tighter component prompt rules. |
packages/igniteui-mcp/igniteui-doc-mcp/scripts/build-db.ts |
Tracks pre-open DB existence and conditionally VACUUMs to avoid growing committed DB size. |
packages/igniteui-mcp/igniteui-doc-mcp/package.json |
Wires derive-components:* into pipelines and adds script entries. |
packages/igniteui-mcp/igniteui-doc-mcp/docs/knowledgebase.md |
Documents new failure mode + mitigation for component drift. |
.github/workflows/build-docs-db.yml |
New workflow to build per-framework artifacts, assemble one DB, verify counts, and open a publish PR. |
.github/actions/build-framework-docs/action.yml |
New composite action implementing per-framework build + artifact upload + validation. |
Suppressed comments (1)
spec/unit/docs-db-counts-spec.ts:67
toBeGreaterThanOrEqualdoesn’t accept a failure-message argument in Jasmine; this will cause a TypeScript compile error in CI. UsewithContext(...)to attach the diagnostic message.
expect(counts[fw] || 0)
.toBeGreaterThanOrEqual(MIN_DOCS[fw], `${fw} has ${counts[fw] || 0} docs, expected >= ${MIN_DOCS[fw]}`);
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.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
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
Related Issue
Closes #
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