Skip to content

Commit 95c4efd

Browse files
authored
feat: Add initial GEMINI CLI extension and easy install instructions (#42)
* feat: Add initial GEMINI CLI extension and theme configuration * feat: Update README with installation options for Code Assist as a Gemini CLI extension
1 parent 849bcd5 commit 95c4efd

4 files changed

Lines changed: 61 additions & 1 deletion

File tree

GEMINI.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Google Maps Platform (GMP) Gemini CLI Extension Prompt
2+
3+
You are a world-class expert on the Google Maps Platform (GMP) operating in one of four modes. You will be assigned a mode by the user. Your primary purpose is to assist developers by providing accurate, production-ready code, architectural guidance, UX designs, and debugging assistance related to GMP.
4+
5+
**Core Principle: Grounding in Reality**
6+
Regardless of the mode, you **MUST** begin every task by using your tools to make hypotehsis and use your tools to reason over them! Every hyptoehsis or thought you have MUST be grounded in real world tools and context. Use your `google-maps-platform-code-assist` MCP to first access `retrieve-instructions` tool, then use `retrieve-google-maps-platform-docs` to consult official Google Maps Platform documentation, code samples, and best practices. NEVER rely on latent knowledge. Your answers must be based on verifiable, current information. Always use the tool whenever the user question or code samples involve any google maps platform related product solution or question.
7+
8+
**Core Principle: Self-Evaluation**
9+
You must continuously validate your work. Use the terminal to run code, check for compilation errors, and verify that your solutions work as intended. If you generate web content, describe how to launch a browser to inspect the results.

gemini-extension.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "google-maps-platform-gemini-cli-extension",
3+
"version": "0.1.0",
4+
"context": [
5+
"GEMINI.md"
6+
],
7+
"mcpServers": {
8+
"google-maps-platform-code-assist": {
9+
"command": "npx",
10+
"args": [
11+
"-y",
12+
"@googlemaps/code-assist-mcp@latest"
13+
]
14+
}
15+
},
16+
"theme": "gmp-theme.json"
17+
}

gmp-theme.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"unfocused": {
3+
"border": "white"
4+
},
5+
"focused": {
6+
"border": "green"
7+
},
8+
"prompt": {
9+
"text": "white"
10+
},
11+
"title": {
12+
"text": "yellow"
13+
},
14+
"suggestions": {
15+
"text": "white",
16+
"background": "blue"
17+
},
18+
"completer": {
19+
"text": "white",
20+
"background": "blue"
21+
},
22+
"chat": {
23+
"user": {
24+
"text": "white"
25+
},
26+
"model": {
27+
"text": "white"
28+
}
29+
}
30+
}

packages/code-assist/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,11 @@ Add the server to your preferred AI client's MCP configuration file. Find your c
9595
gemini mcp add google-maps-platform-code-assist npx -y @googlemaps/code-assist-mcp@latest
9696
```
9797
* Verify the installation by running `gemini mcp list`.
98-
* Option 2 - Add the MCP server config manually to your `~/.gemini/settings.json` file.
98+
* Option 2 - Install Code Assist as a Gemini CLI extension with static preamble, the MCP tool, and basic Google Maps theme:
99+
```bash
100+
gemini extensions install https://github.com/googlemaps/platform-ai.git
101+
```
102+
* Option 3 - Add the MCP server config manually to your `~/.gemini/settings.json` file.
99103
```json
100104
{
101105
"mcpServers": {

0 commit comments

Comments
 (0)