Skip to content

fix(@angular/cli): declare devserver_start/stop as isReadOnly:false#33654

Open
herdiyana256 wants to merge 1 commit into
angular:mainfrom
herdiyana256:fix-mcp-devserver-readonly-mislabel
Open

fix(@angular/cli): declare devserver_start/stop as isReadOnly:false#33654
herdiyana256 wants to merge 1 commit into
angular:mainfrom
herdiyana256:fix-mcp-devserver-readonly-mislabel

Conversation

@herdiyana256

Copy link
Copy Markdown
Contributor

devserver_start and devserver_stop are declared isReadOnly:true, so they remain registered when the server is started with --read-only, and MCP host clients that use the readOnlyHint annotation to auto-approve tool calls without a confirmation prompt will call them without asking the user.

devserver_start spawns a background ng serve child process and binds a network port. devserver_stop sends SIGTERM to that process. Neither is a read-only operation.

devserver_wait_for_build only polls the status and logs of an already-running server, so it correctly stays isReadOnly:true and is unchanged here.

run_target.ts already declares isReadOnly:false for the same reason (it can trigger builds/tests), so this aligns the two devserver lifecycle tools with the existing pattern in the same module.

…adOnly:false

Both tools are declared isReadOnly:true, so they remain registered and
callable when the MCP server is started with --read-only, and MCP host
clients that use readOnlyHint to auto-approve tool calls without asking
the user will call them without confirmation.

devserver_start spawns a background ng serve child process and binds a
network port. devserver_stop sends SIGTERM to that process. Neither is
a read-only operation. devserver_wait_for_build only polls status and
logs of an already-running server, so it correctly stays isReadOnly:true.

run_target.ts already declares isReadOnly:false for the same reason, so
this aligns the two devserver lifecycle tools with the existing pattern.

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

Copy link
Copy Markdown

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 updates the Angular CLI MCP devserver tools (devserver-start and devserver-stop) by changing their isReadOnly property from true to false. There are no review comments, so I have no feedback to provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant