Skip to content

Add Gemini CLI extension context file for improved tool usage guidance for CLI #709

@LyalinDotCom

Description

@LyalinDotCom

Is your feature request related to a problem? Please describe.

When using Chrome DevTools MCP with Gemini CLI, the AI doesn't have built-in knowledge of how to effectively use the available tools. Users interacting with Gemini CLI could get mixed results especially if similar MCP tools exists from other installed servers in the context.

Describe the solution you'd like

Add a gemini-extension.md context file that provides system-level instructions to Gemini CLI when this extension is installed. We'd also need to update the gemini-extension.json to reference the new file via the contextFileName property.

Describe alternatives you've considered

This is how Gemini CLI Extensions work best so there is not an alternative to suggest

Additional context

I'm from the Gemini CLI team and figured it would not hurt to add this feature, so will be submitting a PR as a starting point for this. But expert users of this MCP server might find additional instructions to include in the markdown that I'm not considering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions