Skip to content

Commit 1e0fed7

Browse files
authored
feat: Renamed extension to cicd (#104)
feat: Renamed extension to cicd along with the MCP server
1 parent c8c858b commit 1e0fed7

73 files changed

Lines changed: 176 additions & 184 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/nightly-release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ubuntu-latest
3737
defaults:
3838
run:
39-
working-directory: devops-mcp-server
39+
working-directory: cicd-mcp-server
4040
env:
4141
RELEASE_DIR: "${{ github.workspace }}/release"
4242
DIST_DIR: "${{ github.workspace }}/dist"
@@ -48,23 +48,23 @@ jobs:
4848
- {
4949
goos: "linux",
5050
goarch: "amd64",
51-
bin_file: "devops-mcp-server",
52-
archive: "linux.x64.devops.tar.gz",
51+
bin_file: "cicd-mcp-server",
52+
archive: "linux.x64.cicd.tar.gz",
5353
archive_cmd: 'tar -czvf "${ARCHIVE_PATH}" -C "${RELEASE_DIR}" .',
5454
}
5555
- {
5656
goos: "darwin",
5757
goarch: "arm64",
58-
bin_file: "devops-mcp-server",
59-
archive: "darwin.arm64.devops.tar.gz",
58+
bin_file: "cicd-mcp-server",
59+
archive: "darwin.arm64.cicd.tar.gz",
6060
archive_cmd: 'tar -czvf "${ARCHIVE_PATH}" -C "${RELEASE_DIR}" .',
6161
}
6262

6363
- {
6464
goos: "windows",
6565
goarch: "amd64",
66-
bin_file: "devops-mcp-server.exe",
67-
archive: "win32.x64.devops.zip",
66+
bin_file: "cicd-mcp-server.exe",
67+
archive: "win32.x64.cicd.zip",
6868
archive_cmd: 'cd "${RELEASE_DIR}" && zip -r "${ARCHIVE_PATH}" .',
6969
}
7070
steps:
@@ -83,7 +83,7 @@ jobs:
8383
SHORT_SHA=$(git rev-parse --short HEAD)
8484
VERSION_SUFFIX="-${TIMESTAMP}-${SHORT_SHA}"
8585
86-
command_exp='.mcpServers."devops-mcp".command = "${extensionPath}${/}'
86+
command_exp='.mcpServers."cicd-mcp".command = "${extensionPath}${/}'
8787
command_exp="${command_exp}${BIN_FILE}\""
8888
command_exp="${command_exp} | .version += \"${VERSION_SUFFIX}\""
8989
jq "${command_exp}" < ../gemini-extension.json >"${RELEASE_DIR}/gemini-extension.json"

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
runs-on: ubuntu-latest
3939
defaults:
4040
run:
41-
working-directory: devops-mcp-server
41+
working-directory: cicd-mcp-server
4242
env:
4343
RELEASE_DIR: "${{ github.workspace }}/release"
4444
DIST_DIR: "${{ github.workspace }}/dist"
@@ -48,23 +48,23 @@ jobs:
4848
- {
4949
goos: "linux",
5050
goarch: "amd64",
51-
bin_file: "devops-mcp-server",
52-
archive: "linux.x64.devops.tar.gz",
51+
bin_file: "cicd-mcp-server",
52+
archive: "linux.x64.cicd.tar.gz",
5353
archive_cmd: 'tar -czvf "${ARCHIVE_PATH}" -C "${RELEASE_DIR}" .',
5454
}
5555
- {
5656
goos: "darwin",
5757
goarch: "arm64",
58-
bin_file: "devops-mcp-server",
59-
archive: "darwin.arm64.devops.tar.gz",
58+
bin_file: "cicd-mcp-server",
59+
archive: "darwin.arm64.cicd.tar.gz",
6060
archive_cmd: 'tar -czvf "${ARCHIVE_PATH}" -C "${RELEASE_DIR}" .',
6161
}
6262

6363
- {
6464
goos: "windows",
6565
goarch: "amd64",
66-
bin_file: "devops-mcp-server.exe",
67-
archive: "win32.x64.devops.zip",
66+
bin_file: "cicd-mcp-server.exe",
67+
archive: "win32.x64.cicd.zip",
6868
archive_cmd: 'cd "${RELEASE_DIR}" && zip -r "${ARCHIVE_PATH}" .',
6969
}
7070
steps:
@@ -82,7 +82,7 @@ jobs:
8282
# Extract version from tag (v1.2.3 -> 1.2.3)
8383
VERSION="${TAG_NAME#v}"
8484
85-
command_exp='.mcpServers."devops-mcp".command = "${extensionPath}${/}'
85+
command_exp='.mcpServers."cicd-mcp".command = "${extensionPath}${/}'
8686
command_exp="${command_exp}${BIN_FILE}\""
8787
command_exp="${command_exp} | .version = \"${VERSION}\""
8888

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Gemini CLI Extension for DevOps
1+
# Gemini CLI Extension for CI/CD
22

3-
The DevOps extension for Gemini CLI automates Continuous Integration and Continuous Delivery (CI/CD) workflows using AI. It simplifies deployment to Google Cloud services, such as Cloud Run and Cloud Storage, and generates secure CI/CD pipelines compliant with testing and security best practices.
3+
The CI/CD extension for Gemini CLI automates Continuous Integration and Continuous Delivery (CI/CD) workflows using AI. It simplifies deployment to Google Cloud services, such as Cloud Run and Cloud Storage, and generates secure CI/CD pipelines compliant with testing and security best practices.
44

55

66
> [!CAUTION]
@@ -14,18 +14,18 @@ The DevOps extension for Gemini CLI automates Continuous Integration and Continu
1414
1515
## 📋 Key Features
1616

17-
- **Intelligent Code Deployment**: Use the `/devops:deploy` command to deploy your codebase. The extension leverages Gemini to analyze your project and recommend the best Google Cloud service: Cloud Run for dynamic applications or Cloud Storage for static websites. Includes pre-deployment scanning for secrets, keys, and passwords to prevent accidental leaks.
18-
- **AI-Powered CI/CD Pipeline Design**: Generate secure and robust CI/CD pipelines in moments with `/devops:design`. Collaborate with Gemini to tailor the pipeline to your specific needs, including automatic setup of the required Google Cloud infrastructure.
17+
- **Intelligent Code Deployment**: Use the `/cicd:deploy` command to deploy your codebase. The extension leverages Gemini to analyze your project and recommend the best Google Cloud service: Cloud Run for dynamic applications or Cloud Storage for static websites. Includes pre-deployment scanning for secrets, keys, and passwords to prevent accidental leaks.
18+
- **AI-Powered CI/CD Pipeline Design**: Generate secure and robust CI/CD pipelines in moments with `/cicd:design`. Collaborate with Gemini to tailor the pipeline to your specific needs, including automatic setup of the required Google Cloud infrastructure.
1919
- **Interactive GCP Management**: The extension provides commands and tools to interact directly with Google Cloud's CI/CD services (Cloud Build, Artifact Registry, Artifact Analysis, Cloud Deploy, Developer Connect) from within Gemini CLI. Run builds, check for vulnerabilities (CVEs), view SBOMs, and pull build logs to investigate failures.
2020
- **Simplified Complex Release Flows**: Build sophisticated Cloud Deploy release pipelines quickly, guided by simple, interactive questions.
21-
- **Integrated DevOps MCP Server**: The extension includes a local Model Context Protocol (MCP) server, seamlessly integrating Gemini CLI with Google Cloud CI/CD services.
21+
- **Integrated CI/CD MCP Server**: The extension includes a local Model Context Protocol (MCP) server, seamlessly integrating Gemini CLI with Google Cloud CI/CD services.
2222

2323
## ⚙️ Installation
2424

25-
To install the DevOps extension, run the following command in your terminal:
25+
To install the CI/CD extension, run the following command in your terminal:
2626

2727
```bash
28-
gemini extensions install https://github.com/gemini-cli-extensions/devops
28+
gemini extensions install https://github.com/gemini-cli-extensions/cicd
2929
```
3030

3131
*To install development build add `--ref=nightly --pre-release` flags.*
@@ -53,11 +53,11 @@ gemini extensions install https://github.com/gemini-cli-extensions/devops
5353
> [!WARNING]
5454
> **Important Security Information:**
5555
>
56-
> This DevOps extension connects Gemini CLI to a local MCP server, granting it the ability to access and modify your Google Cloud data based on your Application Default Credentials.
56+
> This CI/CD extension connects Gemini CLI to a local MCP server, granting it the ability to access and modify your Google Cloud data based on your Application Default Credentials.
5757
>
5858
> * **LLM Hallucinations & Unintended Actions:** LLMs can produce incorrect or unexpected outputs ("hallucinate"). Since this extension allows Gemini to call tools that modify cloud resources, hallucinations can lead to unintended actions on your GCP project. **Always meticulously verify all generated configurations and commands before execution.**
5959
> * **Authentication and Permissions (ADC):** The extension uses your local ADC, inheriting its permissions. Be aware of the scope of these permissions, as Gemini CLI can potentially read, modify, and delete GCP resources.
60-
> * **Pipeline Service Account Permissions:** CI/CD pipelines generated by `/devops:design` run using a GCP service account. Carefully vet the IAM roles and permissions assigned to this service account to prevent overly broad access.
60+
> * **Pipeline Service Account Permissions:** CI/CD pipelines generated by `/cicd:design` run using a GCP service account. Carefully vet the IAM roles and permissions assigned to this service account to prevent overly broad access.
6161
> * **Indirect Prompt Injection Risk:** Be cautious when providing input to the language model, especially from untrusted sources, due to the risk of indirect prompt injection.
6262
> * **Untrusted Inputs:** Never include untrusted inputs (e.g., files, documents, emails from unverified sources) in the model's context. Such inputs could contain hidden instructions to hijack your session.
6363
> * **Untrusted Tools:** Only use this extension with the official tools it provides.
@@ -66,10 +66,10 @@ gemini extensions install https://github.com/gemini-cli-extensions/devops
6666
6767
## ☕ Usage
6868
69-
#### `/devops:deploy`
69+
#### `/cicd:deploy`
7070
Analyzes your local workspace to recommend and guide you through deploying to the most suitable Google Cloud service. It suggests Cloud Storage for static websites and Cloud Run for dynamic applications. Includes a pre-deployment scan for secrets to help prevent leaks.
7171
72-
#### `/devops:design`
72+
#### `/cicd:design`
7373
Launches an AI-assisted process to design and generate a CI/CD pipeline configuration (`cloudbuild.yaml`) tailored to your project, including the necessary Google Cloud infrastructure.
7474
7575
**Design Process:**
@@ -112,7 +112,7 @@ The extension exposes the following tools to Gemini CLI, enabling interaction wi
112112
## 📚 Resources
113113
114114
- [Gemini CLI Extensions Documentation](https://geminicli.com/extensions/about/): Learn more about how extensions work in Gemini CLI.
115-
- [GitHub Issues](https://github.com/gemini-cli-extensions/devops/issues): Report bugs, request features, or provide feedback.
115+
- [GitHub Issues](https://github.com/gemini-cli-extensions/cicd/issues): Report bugs, request features, or provide feedback.
116116
117117
## 🤝 Contributing
118118

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
set -euo pipefail
1818

1919

20-
readonly MCP_SERVER_DIR="devops-mcp-server"
21-
readonly BINARY_NAME="devops-mcp-server"
20+
readonly MCP_SERVER_DIR="cicd-mcp-server"
21+
readonly BINARY_NAME="cicd-mcp-server"
2222

2323

2424
# Prints an error message to standard error.
@@ -70,7 +70,7 @@ build_mcp() {
7070
cd ${MCP_SERVER_DIR}
7171
go mod tidy
7272
go build -o "../${BINARY_NAME}"
73-
echo "Successfully built '${BINARY_NAME}' Please move it to `.gemini/extensions/devops/bin/devops-mcp-server`"
73+
echo "Successfully built '${BINARY_NAME}' Please move it to \`.gemini/extensions/cicd/bin/cicd-mcp-server\`"
7474
)
7575
}
7676

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This server provides a local interface to interact with Google Cloud services th
44

55
## Capabilities
66

7-
The Google Cloud DevOps MCP Server provides a suite of tools for:
7+
The Google Cloud CI/CD MCP Server provides a suite of tools for:
88

99
* **Artifact Registry:** Setting up and managing repositories.
1010
* **Cloud Build:** Managing and running build triggers.
@@ -33,7 +33,7 @@ This method is recommended for local development and integration with Gemini CLI
3333
**Build the server:**
3434

3535
```bash
36-
go build -o devops-mcp-server
36+
go build -o cicd-mcp-server
3737
```
3838

3939
**Gemini CLI Configuration:**
@@ -43,15 +43,15 @@ Update your Gemini CLI `settings.json` to include the following:
4343
```json
4444
{
4545
"mcpServers": {
46-
"devops": {
47-
"command": "/path/to/devops-mcp-server",
46+
"cicd": {
47+
"command": "/path/to/cicd-mcp-server",
4848
"cwd": "/path/to/server-directory"
4949
}
5050
}
5151
}
5252
```
5353

54-
Replace `/path/to/devops-mcp-server` with the absolute path to the built binary and `/path/to/server-directory` with the project root.
54+
Replace `/path/to/cicd-mcp-server` with the absolute path to the built binary and `/path/to/server-directory` with the project root.
5555

5656
### 2. Using streamable HTTP
5757

@@ -70,7 +70,7 @@ Update your Gemini CLI `settings.json` to include the following:
7070
```json
7171
{
7272
"mcpServers": {
73-
"devops": {
73+
"cicd": {
7474
"httpUrl": "http://localhost:9000/mcp"
7575
}
7676
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Tool Reference
22

3-
This document provides detailed information about the tools available in the Google Cloud DevOps MCP Server.
3+
This document provides detailed information about the tools available in the Google Cloud CI/CD MCP Server.
44

55
## Artifact Registry
66

devops-mcp-server/artifactregistry/artifactregistry.go renamed to cicd-mcp-server/artifactregistry/artifactregistry.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121

2222
"github.com/modelcontextprotocol/go-sdk/mcp"
2323

24-
artifactregistryclient "devops-mcp-server/artifactregistry/client"
25-
iamclient "devops-mcp-server/iam/client"
24+
artifactregistryclient "cicd-mcp-server/artifactregistry/client"
25+
iamclient "cicd-mcp-server/iam/client"
2626
)
2727

2828
type Handler struct {

devops-mcp-server/artifactregistry/artifactregistry_test.go renamed to cicd-mcp-server/artifactregistry/artifactregistry_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import (
2323
"github.com/golang/mock/gomock"
2424
"github.com/modelcontextprotocol/go-sdk/mcp"
2525

26-
armocks "devops-mcp-server/artifactregistry/client/mocks"
27-
iammocks "devops-mcp-server/iam/client/mocks"
26+
armocks "cicd-mcp-server/artifactregistry/client/mocks"
27+
iammocks "cicd-mcp-server/iam/client/mocks"
2828

2929
artifactregistrypb "cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb"
3030
cloudresourcemanagerv1 "google.golang.org/api/cloudresourcemanager/v1"

devops-mcp-server/artifactregistry/client/artifactregistryclient.go renamed to cicd-mcp-server/artifactregistry/client/artifactregistryclient.go

File renamed without changes.

devops-mcp-server/artifactregistry/client/mocks/mock_artifactregistryclient.go renamed to cicd-mcp-server/artifactregistry/client/mocks/mock_artifactregistryclient.go

File renamed without changes.

0 commit comments

Comments
 (0)