Skip to content

Conversation

@cnaples79
Copy link
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

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

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

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

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