Skip to content

refactor(@angular/cli): implement experimental unified run_target facade and strategy dispatcher#33215

Open
clydin wants to merge 1 commit into
angular:mainfrom
clydin:feat/mcp-run-target-facade
Open

refactor(@angular/cli): implement experimental unified run_target facade and strategy dispatcher#33215
clydin wants to merge 1 commit into
angular:mainfrom
clydin:feat/mcp-run-target-facade

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented May 19, 2026

Introduce the unified run_target MCP tool and the underlying builder strategy dispatcher in a dedicated tools/run-target subdirectory. This architecture leverages the strategy pattern to delegate Angular CLI target executions (build, test, lint, e2e) to specialized internal strategies, defaulting to a universal GenericTargetStrategy fallback.

@clydin clydin marked this pull request as ready for review May 19, 2026 15:36
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new run_target tool to the Angular CLI MCP server, enabling the execution of project targets such as build, test, and lint through a unified interface. The implementation includes a generic execution strategy and supporting unit tests. Feedback focuses on improving the robustness of option serialization—specifically handling array values and avoiding the stringification of null or undefined values—as well as refining the Zod schema to restrict option types to primitives and correcting minor punctuation in user-facing descriptions.

Comment thread packages/angular/cli/src/commands/mcp/tools/run-target/types.ts
Comment thread packages/angular/cli/src/commands/mcp/tools/run-target/types.ts
Comment thread packages/angular/cli/src/commands/mcp/tools/run-target/types.ts Outdated
@clydin clydin force-pushed the feat/mcp-run-target-facade branch 2 times, most recently from aa51411 to 3b5a67e Compare May 19, 2026 16:05
@clydin clydin added target: rc This PR is targeted for the next release-candidate action: review The PR is still awaiting reviews from at least one requested reviewer labels May 19, 2026
@clydin clydin requested a review from alan-agius4 May 19, 2026 16:27
@clydin clydin force-pushed the feat/mcp-run-target-facade branch from 3b5a67e to 180d9b4 Compare May 19, 2026 17:50
…ade and strategy dispatcher

Introduce the unified `run_target` MCP tool and the underlying builder strategy dispatcher in a dedicated `tools/run-target` subdirectory. This architecture leverages the strategy pattern to delegate Angular CLI target executions (build, test, lint, e2e) to specialized internal strategies, defaulting to a universal `GenericTargetStrategy` fallback.
@clydin clydin force-pushed the feat/mcp-run-target-facade branch from 180d9b4 to 857cecf Compare May 19, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer area: @angular/cli target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant