Skip to content

Fix incorrect Gemini CLI extension command syntax#15

Merged
shreyasnbhat merged 2 commits intoGoogleCloudPlatform:mainfrom
cnaples79:fix-gemini-extension-command
Sep 12, 2025
Merged

Fix incorrect Gemini CLI extension command syntax#15
shreyasnbhat merged 2 commits intoGoogleCloudPlatform:mainfrom
cnaples79:fix-gemini-extension-command

Conversation

@cnaples79
Copy link
Copy Markdown
Contributor

Summary

  • Fixes incorrect command syntax in the setup instructions
  • Changes gemini extensions add to gemini extensions install
  • Addresses issue where the documented command fails on current stable release

Problem

The README documented the following command for installing the MCP server as a Gemini CLI extension:

gemini extensions add --source https://github.com/GoogleCloudPlatform/gemini-cloud-assist-mcp

However, this command fails with the current stable release (v0.4.1) of the Gemini CLI because the add subcommand does not exist.

Solution

Updated the command to use the correct install subcommand:

gemini extensions install --source https://github.com/GoogleCloudPlatform/gemini-cloud-assist-mcp

Test Plan

  • Verified the correct command syntax matches the Gemini CLI help output
  • Confirmed this change aligns with the current stable release functionality
  • Users can now successfully follow the installation instructions

This is a simple documentation fix that ensures users can successfully install the extension using the provided instructions.

Fixes #13

Change 'gemini extensions add' to 'gemini extensions install'
in the setup instructions. The 'add' command does not exist
in the current stable release (v0.4.1) of the Gemini CLI.

The correct command syntax is 'install --source' as shown
in the CLI help output.

Fixes GoogleCloudPlatform#13
@google-cla
Copy link
Copy Markdown

google-cla bot commented Sep 12, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@kyleabenson
Copy link
Copy Markdown

Hi, the docs here show the following example:
gemini extensions install https://github.com/google-gemini/gemini-cli-security

I think the --source flag can be removed as well

Comment thread README.md
Based on admin feedback, the --source flag is not needed.
The correct syntax matches the pattern used in other examples:
gemini extensions install <repository-url>

This simplifies the command and aligns with established patterns
in the Gemini CLI documentation.
@cnaples79
Copy link
Copy Markdown
Contributor Author

Thanks for the feedback! You're absolutely right - I've updated the PR to remove the --source flag as well.

The command now matches the pattern used in other examples:

gemini extensions install https://github.com/GoogleCloudPlatform/gemini-cloud-assist-mcp

This is cleaner and aligns with the established Gemini CLI extension installation syntax.

@shreyasnbhat shreyasnbhat self-requested a review September 12, 2025 05:37
Comment thread README.md
@shreyasnbhat shreyasnbhat merged commit 8c29bf3 into GoogleCloudPlatform:main Sep 12, 2025
17 checks passed
@cnaples79
Copy link
Copy Markdown
Contributor Author

@shreyasnbhat Thanks for the review. I'd love to help more with the project and contribute if there are any other high visibility issues or features.

copybara-service bot pushed a commit that referenced this pull request Sep 18, 2025
This change squashes all commits from GitHub's main branch into a single review.

The original commit range details are included below.

  - d9b75e5 docs(readme): update add to cursor to reflect the 10 min ... by Shreyas Bhat <shbhat@google.com>
  - dba9633 docs(readme): Update documentation to include MPC Tool ti... by Shreyas Bhat <shbhat@google.com>
  - 8c29bf3 Fix incorrect Gemini CLI extension command syntax (#15) by Chase Naples <cnaples79@gmail.com>
  - 6afa75d feat(readme): Update README by Shreyas Bhat <shbhat@google.com>
  - 1a86a5b feat(readme): improve readme by Shreyas Bhat <shbhat@google.com>
  - 5e68200 docs(readme): correct typo in installation command by Shreyas Bhat <shbhat@google.com>
  - c4de734 build(deps-dev): bump vite from 7.0.6 to 7.1.5 by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  - a01c4a4 docs(readme): enhance setup and configuration instructions by Shreyas Bhat <shbhat@google.com>
  - bf0f70e ci(workflow): add gemini auto-review workflows by Shreyas Bhat <shbhat@google.com>
  - fcca99e build(npm): configure package for CLI execution by Shreyas Bhat <shbhat@google.com>
  - 92f89c2 ci(workflow): add PR quality checks by Shreyas Bhat <shbhat@google.com>
  - 5a7dba7 feat(extension): add gemini-extension.json by Shreyas Bhat <shbhat@google.com>
  - 63fa1c4 refactor(api): instantiate clients lazily and improve err... by Shreyas Bhat <shbhat@google.com>
  - 7288217 docs: improve README with examples and clearer instructions by Shreyas Bhat <shbhat@google.com>
  - caeac87 Allow specifying and overriding `projectId` in `search_an... by Weihao Xia <weihaoxia@google.com>
  - ad82727 Merge "chore(linter): Add ESLint and Prettier, fix all vi... by Shreyas Bhat <shbhat@google.com>
  - e54299b Refine limitation prompt for search_and_analyze_gcp_resou... by Weihao Xia <weihaoxia@google.com>
  - 8ff8bc3 Add BigQuery usage restriction to tool description. by Weihao Xia <weihaoxia@google.com>
  - 7c47b23 docs(tools): add guidance on interpreting runInvestigatio... by Shreyas Bhat <shbhat@google.com>
  - 81a0e57 fix(user-agent): User Agent is now correctly set using us... by Shreyas Bhat <shbhat@google.com>
  - 6504dbd Add `search_and_analyze_gcp_resources` tool back. by Weihao Xia <weihaoxia@google.com>
  - 0b8f4dd Remove `search_and_analyze_gcp_resources` tool temporarily. by Weihao Xia <weihaoxia@google.com>
  - 27efb8a Update tool description for `search_and_analyze_gcp_resou... by Weihao Xia <weihaoxia@google.com>
  - f3529d7 Add `search_and_analyze_gcp_resources` tool back (formerl... by Weihao Xia <weihaoxia@google.com>
  - 4f04d54 Add angle brackets '<' and '>' around investigation links... by Huan Wang <huanwa@google.com>
  - 5569286 Fix investigation link formatting to have blank lines bef... by Huan Wang <huanwa@google.com>
  - cc30d11 feat(troubleshooting): add pagination support for listing... by Shreyas Bhat <shbhat@google.com>
  - 792739c chore: improve documentation and add license checking by Shreyas Bhat <shbhat@google.com>
  - 9145cfe refactor(shared): introduce BaseClient and shared modules by Shreyas Bhat <shbhat@google.com>
  - 08d08d8 Add explain agent as an mcp tool to server. by Weihao Xia <weihaoxia@google.com>
  - 4e9d3fc refactor(build)!: migrate to TypeScript by Shreyas Bhat <shbhat@google.com>
  - 199a937 docs(tools): improve add_observation tool definition by Shreyas Bhat <shbhat@google.com>
  - dd0aefe feat(api): add validation for GCP resource URIs by Shreyas Bhat <shbhat@google.com>
  - 666a75d feat(tools): Improve tool robustness and developer experi... by Shreyas Bhat <shbhat@google.com>
  - b7dba51 First draft of OSS Gemini Code Assist MCP Server implemen... by Shreyas Bhat <shbhat@google.com>

GitOrigin-RevId: d9b75e5
Change-Id: I8f7c6ad9026e350a69292280dd08b044f375e0fe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs for install mcp exetension are incorrect

3 participants