Skip to content

Commit b8fff4f

Browse files
committed
feat(plugin): migrate from generated skills to the prebuilt MCP server
1 parent 9e4e899 commit b8fff4f

33 files changed

Lines changed: 262 additions & 2179 deletions

‎.claude-plugin/plugin.json‎

Lines changed: 66 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,71 @@
77
"email": "data-cloud-ai-integrations@google.com"
88
},
99
"homepage": "https://cloud.google.com/sql/docs/sqlserver",
10-
"license": "Apache-2.0",
1110
"repository": "https://github.com/gemini-cli-extensions/cloud-sql-sqlserver",
12-
"skills": "./skills/"
11+
"license": "Apache-2.0",
12+
"userConfig": {
13+
"cloud_sql_mssql_project": {
14+
"title": "Project Name",
15+
"description": "Name of the Google Cloud project",
16+
"type": "string",
17+
"sensitive": false
18+
},
19+
"cloud_sql_mssql_region": {
20+
"title": "Region",
21+
"description": "Region of the Cloud SQL instance",
22+
"type": "string",
23+
"sensitive": false
24+
},
25+
"cloud_sql_mssql_instance": {
26+
"title": "Instance ID",
27+
"description": "ID of the Cloud SQL instance",
28+
"type": "string",
29+
"sensitive": false
30+
},
31+
"cloud_sql_mssql_database": {
32+
"title": "Database",
33+
"description": "Name of the database",
34+
"type": "string",
35+
"sensitive": false
36+
},
37+
"cloud_sql_mssql_user": {
38+
"title": "User",
39+
"description": "Username of the database user",
40+
"type": "string",
41+
"sensitive": false
42+
},
43+
"cloud_sql_mssql_password": {
44+
"title": "Password",
45+
"description": "Password of the database user",
46+
"type": "string",
47+
"sensitive": false
48+
},
49+
"cloud_sql_mssql_ip_type": {
50+
"title": "Instance IP assignment",
51+
"description": "(Optional) Type of the IP address: PUBLIC, PRIVATE, or PSC (Default: Public)",
52+
"type": "string",
53+
"sensitive": false
54+
}
55+
},
56+
"mcpServers": {
57+
"cloud-sql-mssql": {
58+
"command": "npx",
59+
"args": [
60+
"-y",
61+
"@toolbox-sdk/server@1.9.0",
62+
"--prebuilt",
63+
"cloud-sql-mssql",
64+
"--stdio"
65+
],
66+
"env": {
67+
"CLOUD_SQL_MSSQL_PROJECT": "${user_config.cloud_sql_mssql_project}",
68+
"CLOUD_SQL_MSSQL_REGION": "${user_config.cloud_sql_mssql_region}",
69+
"CLOUD_SQL_MSSQL_INSTANCE": "${user_config.cloud_sql_mssql_instance}",
70+
"CLOUD_SQL_MSSQL_DATABASE": "${user_config.cloud_sql_mssql_database}",
71+
"CLOUD_SQL_MSSQL_USER": "${user_config.cloud_sql_mssql_user}",
72+
"CLOUD_SQL_MSSQL_PASSWORD": "${user_config.cloud_sql_mssql_password}",
73+
"CLOUD_SQL_MSSQL_IP_TYPE": "${user_config.cloud_sql_mssql_ip_type}"
74+
}
75+
}
76+
}
1377
}

‎.codex-plugin/.mcp.json‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"mcpServers": {
3+
"cloud-sql-mssql": {
4+
"command": "npx",
5+
"args": [
6+
"-y",
7+
"@toolbox-sdk/server@1.9.0",
8+
"--prebuilt",
9+
"cloud-sql-mssql",
10+
"--stdio"
11+
],
12+
"env_vars": [
13+
"CLOUD_SQL_MSSQL_PROJECT",
14+
"CLOUD_SQL_MSSQL_REGION",
15+
"CLOUD_SQL_MSSQL_INSTANCE",
16+
"CLOUD_SQL_MSSQL_DATABASE",
17+
"CLOUD_SQL_MSSQL_USER",
18+
"CLOUD_SQL_MSSQL_PASSWORD",
19+
"CLOUD_SQL_MSSQL_IP_TYPE"
20+
]
21+
}
22+
}
23+
}

‎.codex-plugin/plugin.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"sql-server",
1515
"database"
1616
],
17-
"skills": "./skills/",
1817
"interface": {
1918
"displayName": "Cloud SQL for SQL Server",
2019
"shortDescription": "Interact with CloudSQL for SQL Server instances.",
@@ -27,5 +26,6 @@
2726
"defaultPrompt": [
2827
"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."
2928
]
30-
}
31-
}
29+
},
30+
"mcpServers": "./.codex-plugin/.mcp.json"
31+
}

‎.github/renovate.json5‎

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,28 @@
2121
pinDigests: true,
2222
},
2323
{
24-
matchPackageNames: ['googleapis/mcp-toolbox'],
24+
matchPackageNames: ['@toolbox-sdk/server'],
25+
// Group the toolbox update under a stable branch name (renovate/toolbox).
26+
groupName: 'toolbox',
2527
'semanticCommitType': 'feat'
2628
}
2729
],
2830
customManagers: [
2931
{
32+
// Track the npm toolbox server pinned in the MCP command. The version is
33+
// listed in the source (mcp.json) and repeated in every generated
34+
// manifest, so all of them are bumped in one PR.
3035
customType: "regex",
31-
managerFilePatterns: ["/toolbox_version\\.txt$/"],
32-
matchStrings: ["(?<currentValue>[\\d\\.]+)"],
33-
datasourceTemplate: "github-releases",
34-
packageNameTemplate: "googleapis/mcp-toolbox",
35-
extractVersionTemplate: "^v(?<version>.*)$",
36+
managerFilePatterns: [
37+
"/mcp\.json$/",
38+
"/mcp_config\.json$/",
39+
"/gemini-extension\.json$/",
40+
"/\.claude-plugin/plugin\.json$/",
41+
"/\.codex-plugin/\.mcp\.json$/",
42+
],
43+
matchStrings: ["@toolbox-sdk/server@(?<currentValue>[\d\.]+)"],
44+
datasourceTemplate: "npm",
45+
depNameTemplate: "@toolbox-sdk/server",
3646
}
3747
]
3848
}

‎.github/workflows/presubmit-tests.yml‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ on:
1717
pull_request:
1818
branches: [ main ]
1919

20+
permissions:
21+
contents: read
22+
2023
jobs:
2124
run-presubmit-tests:
2225
runs-on: ubuntu-latest
@@ -27,12 +30,6 @@ jobs:
2730
- name: Install Gemini CLI
2831
run: npm install @google/gemini-cli
2932

30-
- name: Install toolbox binary
31-
run: |
32-
VERSION=$(cat toolbox_version.txt)
33-
curl -L -o toolbox "https://storage.googleapis.com/mcp-toolbox-for-databases/v${VERSION}/linux/amd64/toolbox"
34-
chmod +x toolbox
35-
3633
- name: Install Extension
3734
run: npx gemini extensions validate .
3835
env:

‎.github/workflows/skills-validate-fallback.yml‎

Lines changed: 0 additions & 37 deletions
This file was deleted.

‎.github/workflows/skills-validate.yml‎

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)