You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .codex-plugin/plugin.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,6 @@
14
14
"mysql",
15
15
"database"
16
16
],
17
-
"skills": "./skills/",
18
17
"interface": {
19
18
"displayName": "Cloud SQL for MySQL",
20
19
"shortDescription": "Interact with CloudSQL for MySQL instances.",
@@ -27,5 +26,6 @@
27
26
"defaultPrompt": [
28
27
"You are a highly skilled database engineer and database administrator. Your purpose is to help the developer build and interact with databases and utilize data context throughout the entire software delivery cycle."
Copy file name to clipboardExpand all lines: README.md
+49-48Lines changed: 49 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
-
# Cloud SQL for MySQL Agent Skills
1
+
# Cloud SQL for MySQL
2
2
3
3
> [!NOTE]
4
4
> Currently in beta (pre-v1.0), and may see breaking changes until the first stable release (v1.0).
5
5
6
-
This repository provides a set of agent skills to interact with [Cloud SQL for MySQL](https://cloud.google.com/sql/docs/mysql) instances. These skills can be used with various AI agents, including [Antigravity](https://antigravity.google/), [Claude Code](https://claude.com/product/claude-code) and [Codex](https://developers.openai.com/codex), to manage your databases, execute queries, explore schemas, and troubleshoot issues using natural language prompts.
6
+
This repository packages [MCP Toolbox](https://github.com/googleapis/mcp-toolbox)'s prebuilt `cloud-sql-mysql` server as a plugin/extension to interact with [Cloud SQL for MySQL](https://cloud.google.com/sql/docs/mysql) instances. It can be used with various AI agents, including [Antigravity](https://antigravity.google/), [Claude Code](https://claude.com/product/claude-code) and [Codex](https://developers.openai.com/codex), to manage your databases, execute queries, explore schemas, and troubleshoot issues using natural language prompts.
7
7
8
8
> [!IMPORTANT]
9
9
> **We Want Your Feedback!**
@@ -14,22 +14,22 @@ This repository provides a set of agent skills to interact with [Cloud SQL for M
14
14
15
15
## Table of Contents
16
16
17
-
-[Why Use Cloud SQL for MySQL Agent Skills?](#why-use-cloud-sql-for-mysql-agent-skills)
17
+
-[Why Use Cloud SQL for MySQL?](#why-use-cloud-sql-for-mysql)
18
18
-[Prerequisites](#prerequisites)
19
19
-[Getting Started](#getting-started)
20
20
-[Configuration](#configuration)
21
21
-[Installation & Usage](#installation--usage)
22
22
-[Antigravity](#antigravity)
23
23
-[Claude Code](#claude-code)
24
24
-[Codex](#codex)
25
-
-[Installing using open agent skills tool](#installing-using-open-agent-skills-tool)
26
25
-[Installing via a compatible Agent Plugins client](#installing-via-a-compatible-agent-plugins-client)
-**Seamless Workflow:** Integrates seamlessly into your AI agent's environment. No need to constantly switch contexts for common database tasks.
35
35
-**Natural Language Queries:** Stop wrestling with complex commands. Explore schemas and query data by describing what you want in plain English.
@@ -46,6 +46,7 @@ Before you begin, ensure you have the following:
46
46
-[Antigravity 2.0](https://antigravity.google/product/antigravity-2) version **v2.0.0** or higher.
47
47
-[Claude Code](https://claude.com/product/claude-code) version **v2.1.94** or higher.
48
48
-[Codex](https://developers.openai.com/codex)**v0.117.0** or higher.
49
+
-[Node.js](https://nodejs.org/) — the MCP server runs via `npx`.
49
50
- A Google Cloud project with the **Cloud SQL Admin API** enabled.
50
51
- Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment.
51
52
- IAM Permissions:
@@ -77,7 +78,7 @@ Please keep these env vars handy during the installation process:
77
78
78
79
### Installation & Usage
79
80
80
-
To start interacting with your database, install the skills for your preferred AI agent, then launch the agent and use natural language to ask questions or perform tasks.
81
+
To start interacting with your database, install the extension for your preferred AI agent, then launch the agent and use natural language to ask questions or perform tasks.
81
82
82
83
For the latest version, check the [releases page][releases].
83
84
@@ -106,28 +107,18 @@ See <a href="https://antigravity.google/docs/gcli-migration">Migrating from Gemi
Set your environment vars as described in the [configuration section](#configuration).
129
120
130
-
_(Tip: Antigravity 2.0 automatically discovers skills in these directories at the start of a session. You can verify they are active by running the `/skills` command in your active session.)_
121
+
_(Tip: You can verify the MCP server is active by running the `/mcp` command in your active session.)_
For detailed info check out the [Skills npm package](https://www.npmjs.com/package/skills).
207
-
208
-
**2. Set env vars:**
209
-
Set your environment vars as described in the [configuration section](#configuration).
210
-
184
+
## Installing via a compatible Agent Plugins client
211
185
## Installing via a compatible Agent Plugins client
212
186
213
187
This repository is a valid [Agent Plugins](https://github.com/agentplugins/agent-plugins-spec) (v1) plugin. Any [Agent Plugins–compatible client](https://agent-plugins.org/compatible-clients) can install it directly using its own built-in plugin command — no extra tooling required — by pointing at this repository:
@@ -237,14 +211,41 @@ Interact with Cloud SQL for MySQL using natural language:
237
211
-**Generate Code:**
238
212
- "Generate a Python dataclass to represent the 'customers' table."
239
213
240
-
## Supported Skills
214
+
## Available Tools
215
+
216
+
The tools come from MCP Toolbox's prebuilt `cloud-sql-mysql` server, grouped into toolsets:
217
+
218
+
-**admin** - Use these tools when you need to provision new Cloud SQL for MySQL instances, create databases and users, and monitor the progress of infrastructure operations.
219
+
-**data** - Use these tools when you need to explore your database schema, execute SQL queries to interact with your data, and inspect how MySQL plans to execute your statements.
220
+
-**monitor** - Use these tools when you need to troubleshoot slow queries, analyze system-level PromQL metrics, and identify structural performance issues like table fragmentation or missing unique indexes.
221
+
-**lifecycle** - Use these tools when you need to manage the durability and safety of your data by creating backups, restoring from previous states, or cloning instances for recovery and testing.
222
+
223
+
For the full, up-to-date list, see the [`cloud-sql-mysql` prebuilt config](https://github.com/googleapis/mcp-toolbox/blob/main/internal/prebuiltconfigs/tools/cloud-sql-mysql.yaml)
224
+
in the MCP Toolbox repository.
241
225
242
-
The following skills are available in this repository:
226
+
## Generating Skills Instead
227
+
228
+
The tool-backed skills this plugin used to ship were generated from the same prebuilt
229
+
toolsets. If your agent lacks deferred tool loading, or you prefer skills, regenerate
-[Cloud SQL for MySQL Admin](./skills/cloud-sql-mysql-admin/SKILL.md) - Use these skills when you need to provision new Cloud SQL for MySQL instances, create databases and users, clone existing environments, and monitor the progress of infrastructure operations.
245
-
-[Cloud SQL for MySQL Data](./skills/cloud-sql-mysql-data/SKILL.md) - Use these skills when you need to explore your database schema, execute SQL queries to interact with your data, and inspect how MySQL plans to execute your statements.
246
-
-[Cloud SQL for MySQL Lifecycle](./skills/cloud-sql-mysql-lifecycle/SKILL.md) - Use these skills when you need to manage the durability and safety of your data by creating backups, restoring from previous states, or cloning instances for recovery and testing.
247
-
-[Cloud SQL for MySQL Monitor](./skills/cloud-sql-mysql-monitor/SKILL.md) - Use these skills when you need to troubleshoot slow queries, analyze system-level PromQL metrics, and identify structural performance issues like table fragmentation or missing unique indexes.
246
+
The generated scripts call the toolbox through `npx`, so no binary download is needed.
247
+
See [Generate Agent Skills](https://github.com/googleapis/mcp-toolbox#generate-agent-skills)
248
+
in the MCP Toolbox repository.
248
249
249
250
## Additional Agent Skills
250
251
@@ -262,5 +263,5 @@ Common issues:
262
263
263
264
- "failed to find default credentials: google: could not find default credentials.": Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment. See [Set up Application Default Credentials](https://cloud.google.com/docs/authentication/external/set-up-adc) for more information.
264
265
- "✖ Error during discovery for server: MCP error -32000: Connection closed": The database connection has not been established. Ensure your configuration is set via environment variables.
265
-
- "✖ MCP ERROR: Error: spawn .../toolbox ENOENT": The Toolbox binary did not download correctly. Ensure you are using the latest version of your agent.
266
+
- "✖ MCP ERROR: Error: spawn npx ENOENT": Node.js is not installed, or `npx` is not on your `PATH`. Install Node.js, which provides `npx`.
266
267
- "cannot execute binary file": The Toolbox binary did not download correctly. Ensure the correct binary for your OS/Architecture has been downloaded. See [Installing the server](https://mcp-toolbox.dev/documentation/introduction/#install-toolbox) for more information.
0 commit comments