This plan outlines the steps to transform the existing MCP-based project into a native Gemini extension for the Gemini CLI.
- Simplify usage by removing the need for manual
settings.jsonconfiguration. - Provide a better user experience through integrated agent skills.
- Standardize the project structure as a Gemini extension.
- Create a new branch
feature/gemini-extensionto perform all changes.
- Create a
gemini-extension.jsonin the root directory. - Configure the
mcpServersto point to the local build of@gemini/gemini-code-intel-mcp. - Use relative paths to ensure portability.
- Create a new skill called
code-intel. - Provide detailed instructions to the agent on:
- When to use semantic search vs. traditional grep.
- How to trigger indexing if a search fails.
- Best practices for natural language queries.
- Ensure the project can be built using existing
pnpmscripts. - Provide instructions for linking the extension using
gemini extensions link ..
- Document how users can remove the manual entry from
settings.jsononce the extension is active.
- Preparation:
- Switch to a new branch:
git checkout -b feature/gemini-extension.
- Switch to a new branch:
- Manifest Creation:
- Write
gemini-extension.json.
- Write
- Skill Creation:
- Create directory
skills/code-intel/. - Write
skills/code-intel/SKILL.md.
- Create directory
- Verification:
- Run
pnpm buildto ensure latestdistfiles are present. - Run
gemini extensions link .. - Test the extension by asking Gemini CLI to search for something in the codebase.
- Run