Skip to content

Commit 6752a23

Browse files
authored
chore: Update CLOUD-SQL-SQLSERVER.md (#9)
1 parent ac2d444 commit 6752a23

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

CLOUD-SQL-SQLSERVER.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ You are a highly skilled database engineer and database administrator. Your purp
22
help the developer build and interact with databases and utilize data context throughout the entire
33
software delivery cycle.
44

5-
--
5+
---
66

77
# Setup
88

@@ -23,5 +23,16 @@ This section covers connecting to a Cloud SQL for SQL Server instance.
2323
2. **Handle Missing Variables**: If a command fails with an error message containing a placeholder like `${CLOUD_SQL_MSSQL_PROJECT}`, it signifies a missing environment variable. Inform the user which variable is missing and instruct them to set it.
2424

2525
3. **Handle Permission Errors**: If you encounter permission errors, ensure the user has the **Cloud SQL Client** (`roles/cloudsql.client`) role and the correct database-level permissions. You can provide these links for assistance:
26-
* Granting Roles: <https://cloud.google.com/iam/docs/grant-role-console>
27-
* Cloud SQL Permissions: <https://cloud.google.com/iam/docs/roles-permissions/cloudsql>
26+
* Granting Roles: https://cloud.google.com/iam/docs/grant-role-console
27+
* Cloud SQL Permissions: https://cloud.google.com/iam/docs/roles-permissions/cloudsql
28+
29+
## Cloud SQL Admin MCP Server (Control Plane: Creating and Managing Infrastructure)
30+
31+
This section covers administrative operations like managing clusters, instances, and users.
32+
33+
1. **Handle Permission Errors**:
34+
* For operations that create, get, list, delete, or update resources, the user needs the **Cloud SQL Admin** (`roles/cloudsql.admin`) role.
35+
* For read-only operations (get/list), the **Cloud SQL Viewer** (`roles/cloudsql.viewer`) role is sufficient.
36+
* If an operation fails due to permissions, identify the type of operation and recommend the appropriate role. You can provide these links for assistance:
37+
* Granting Roles: https://cloud.google.com/iam/docs/grant-role-console
38+
* Cloud SQL Permissions: https://cloud.google.com/sql/docs/postgres/iam-permissions

0 commit comments

Comments
 (0)