feat(cli): Adds the ability to run MCP prompt commands in non-interactive mode#10194
Merged
allenhutchison merged 2 commits intogoogle-gemini:mainfrom Oct 21, 2025
Merged
Conversation
918778a to
515b241
Compare
515b241 to
adec49f
Compare
Contributor
Author
|
@jerop @allenhutchison can one of you please take a look at this PR? It is a simple fix for #10177 cc: @codrienne |
adec49f to
cbb1319
Compare
cbb1319 to
e1c73b9
Compare
allenhutchison
approved these changes
Oct 21, 2025
Contributor
allenhutchison
left a comment
There was a problem hiding this comment.
Looks good. Sorry about the delay.
mattKorwel
pushed a commit
that referenced
this pull request
Oct 22, 2025
…tive mode (#10194) Co-authored-by: Allen Hutchison <adh@google.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.
TLDR
Adds the ability to run MCP prompts (i.e. MCP slash commands) in non-interactive mode #10177
Note that #8305 added support for custom commands (e.g. extension .toml) but not MCP prompts.
Dive Deeper
CommandServicewas designed in such a way to make this very easy to add.Reviewer Test Plan
Make sure 1) custom commands and 2) MCP prompts work e.g.
For https://github.com/gemini-cli-extensions/security
node gemini-cli/packages/cli -p "/security:analyze" --yoloFor https://github.com/GoogleCloudPlatform/cloud-run-mcp
node gemini-cli/packages/cli -p "/deploy" --yolonode gemini-cli/packages/cli -p "/deploy"(whentrustistrue)Testing Matrix
Linked issues / bugs
Fixes #10177