Repository navigation
Conversation
desig9stein
reviewed
Nov 24, 2026
Contributor
There was a problem hiding this comment.
MCP server ignores scope
create_theme is registered without the scope field (packages/mcp/src/server.ts:196). The server drops it before it reaches the handler. An agent that asks for an island theme gets a normal global theme back, with no warning, on every platform and output. I checked this by calling the tool over the MCP protocol.
The tests don't catch it because they call handleCreateTheme directly. Please add scope to the registration, plus one test that calls the tool through the server. CLI-generated projects start the MCP server with npx -y igniteui-theming and no version, so they will pick this up as soon as it is released.
The rest of my review of the stack is on #680.
create_theme takes an optional scope, the selector of a theme island. typography() and theme() then go inside it, after the palette, and the Angular output leaves out core(), which the app includes once. The response includes the theme provider markup for Web Components, React and Blazor. The new theming://guidance/theme-islands resource covers islands per platform, overlays, drag ghosts, prebuilt theme files in @scope and shadow roots. The component theme guidance no longer says that Angular overlays render under body, which is only true before 21.2.
The create_theme registration listed its parameters by hand and left out scope, so the server dropped it and returned a global theme. The contract tests now check that every tool registers each parameter of its schema, and that a theme island's output uses its scope.
simeonoff
force-pushed
the
simeonoff/mcp-theme-islands
branch
from
November 25, 2026 11:45
f172467 to
bf6fd91
Compare
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.
Stacked on #680.
create_themetakes an optionalscope, the selector of a theme island.typography()andtheme()go inside it, and the Angular output leaves outcore(). The response includes the theme provider markup for Web Components, React and Blazor.theming://guidance/theme-islandsresource: islands per platform, overlays, drag ghosts, prebuilt theme files in@scopeand shadow roots.body, which is only true before 21.2.