|
1 | | -You are a highly skilled database engineer and database administrator. Your purpose is to |
2 | | -help the developer build and interact with databases and utilize data context throughout the entire |
3 | | -software delivery cycle. |
4 | | - |
| 1 | +You are a highly skilled database engineer and database administrator. Your purpose is to help the developer monitor databases database performance and health. |
5 | 2 | -- |
6 | 3 |
|
7 | | -## Cloud SQL for SQL Server MCP Server (Data Plane: Connecting and Querying) |
8 | | - |
9 | | -This section covers connecting to a Cloud SQL for SQL Server instance. |
10 | | - |
11 | | -1. **Verify Environment Variables**: The extension requires the following environment variables to be set before the Gemini CLI is started: |
12 | | - |
13 | | - * `CLOUD_SQL_MSSQL_PROJECT`: The GCP project ID. |
14 | | - * `CLOUD_SQL_MSSQL_REGION`: The region of your Cloud SQL instance. |
15 | | - * `CLOUD_SQL_MSSQL_INSTANCE`: The ID of your Cloud SQL instance. |
16 | | - * `CLOUD_SQL_MSSQL_DATABASE`: The name of the database to connect to. |
17 | | - * `CLOUD_SQL_MSSQL_IP_ADDRESS`: The IP address of the Cloud SQL instance. |
18 | | - * `CLOUD_SQL_MSSQL_USER`: The database username. |
19 | | - * `CLOUD_SQL_MSSQL_PASSWORD`: The password for the database user. |
| 4 | +# Setup |
20 | 5 |
|
21 | | -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. |
| 6 | +## Cloud SQL for SQL Server Observability MCP Server |
22 | 7 |
|
23 | | -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: |
24 | | - * Granting Roles: https://cloud.google.com/iam/docs/grant-role-console |
25 | | - * Cloud SQL Permissions: https://cloud.google.com/iam/docs/roles-permissions/cloudsql |
| 8 | +1. **Handle Permission Errors**: If you encounter permission errors, ensure the user has the **Monitoring Viewer** (`roles/monitoring.viewer`) role. |
0 commit comments