|
1 | 1 | { |
2 | 2 | "mcpServers": { |
3 | 3 | "cloud-sql-postgres-admin": { |
4 | | - "command": "${extensionPath}${/}toolbox", |
5 | | - "args": [ |
6 | | - "--prebuilt", |
7 | | - "cloud-sql-postgres-admin", |
8 | | - "--stdio" |
9 | | - ], |
10 | | - "description": "Use these tools when you need to provision new Cloud SQL instances, create databases and users, clone existing environments, and monitor the progress of long-running operations.", |
11 | | - "env": { |
12 | | - "CLOUD_SQL_POSTGRES_PROJECT": "${CLOUD_SQL_POSTGRES_PROJECT}" |
13 | | - } |
| 4 | + "type": "sse", |
| 5 | + "url": "http://127.0.0.1:5000/sse", |
| 6 | + "description": "Use these skills when you need to provision new Cloud SQL instances, create databases and users, clone existing environments, and monitor the progress of long-running operations.", |
| 7 | + "allowedTools": [ |
| 8 | + "clone_instance", |
| 9 | + "create_backup", |
| 10 | + "create_database", |
| 11 | + "create_instance", |
| 12 | + "create_user", |
| 13 | + "get_instance", |
| 14 | + "list_databases", |
| 15 | + "list_instances", |
| 16 | + "postgres_upgrade_precheck", |
| 17 | + "restore_backup", |
| 18 | + "wait_for_operation" |
| 19 | + ] |
14 | 20 | }, |
15 | | - "cloud-sql-postgres": { |
16 | | - "command": "${extensionPath}${/}toolbox", |
17 | | - "args": [ |
18 | | - "--prebuilt", |
19 | | - "cloud-sql-postgres", |
20 | | - "--stdio" |
21 | | - ], |
22 | | - "description": "Use these tools when you need to explore the database structure, discover schema objects, execute custom SQL queries, and manage your data.", |
23 | | - "env": { |
24 | | - "CLOUD_SQL_POSTGRES_PROJECT": "${CLOUD_SQL_POSTGRES_PROJECT}", |
25 | | - "CLOUD_SQL_POSTGRES_REGION": "${CLOUD_SQL_POSTGRES_REGION}", |
26 | | - "CLOUD_SQL_POSTGRES_INSTANCE": "${CLOUD_SQL_POSTGRES_INSTANCE}", |
27 | | - "CLOUD_SQL_POSTGRES_DATABASE": "${CLOUD_SQL_POSTGRES_DATABASE}", |
28 | | - "CLOUD_SQL_POSTGRES_USER": "${CLOUD_SQL_POSTGRES_USER}", |
29 | | - "CLOUD_SQL_POSTGRES_PASSWORD": "${CLOUD_SQL_POSTGRES_PASSWORD}", |
30 | | - "CLOUD_SQL_POSTGRES_IP_TYPE": "${CLOUD_SQL_POSTGRES_IP_TYPE}" |
31 | | - } |
| 21 | + "cloud-sql-postgres-data": { |
| 22 | + "type": "sse", |
| 23 | + "url": "http://127.0.0.1:5000/sse", |
| 24 | + "description": "Use these skills when you need to explore the database structure, discover schema objects like views or stored procedures, and execute custom SQL queries to interact with your data.", |
| 25 | + "allowedTools": [ |
| 26 | + "execute_sql", |
| 27 | + "list_indexes", |
| 28 | + "list_schemas", |
| 29 | + "list_sequences", |
| 30 | + "list_stored_procedure", |
| 31 | + "list_tables", |
| 32 | + "list_triggers", |
| 33 | + "list_views" |
| 34 | + ] |
| 35 | + }, |
| 36 | + "cloud-sql-postgres-health": { |
| 37 | + "type": "sse", |
| 38 | + "url": "http://127.0.0.1:5000/sse", |
| 39 | + "description": "Use these skills when you need to audit database health, identify storage bloat, find invalid indexes, analyze table statistics, and manage maintenance configurations like autovacuum.", |
| 40 | + "allowedTools": [ |
| 41 | + "get_query_metrics", |
| 42 | + "get_query_plan", |
| 43 | + "get_system_metrics", |
| 44 | + "list_active_queries", |
| 45 | + "list_database_stats", |
| 46 | + "list_locks", |
| 47 | + "list_query_stats", |
| 48 | + "long_running_transactions" |
| 49 | + ] |
| 50 | + }, |
| 51 | + "cloud-sql-postgres-lifecycle": { |
| 52 | + "type": "sse", |
| 53 | + "url": "http://127.0.0.1:5000/sse", |
| 54 | + "description": "Use these skills when you need to manage the lifecycle of your instances, including performing backups and restores, checking major version upgrade compatibility, and monitoring overall instance status.", |
| 55 | + "allowedTools": [ |
| 56 | + "create_backup", |
| 57 | + "database_overview", |
| 58 | + "get_instance", |
| 59 | + "list_instances", |
| 60 | + "postgres_upgrade_precheck", |
| 61 | + "restore_backup", |
| 62 | + "wait_for_operation" |
| 63 | + ] |
| 64 | + }, |
| 65 | + "cloud-sql-postgres-monitor": { |
| 66 | + "type": "sse", |
| 67 | + "url": "http://127.0.0.1:5000/sse", |
| 68 | + "description": "Use these skills when you need to troubleshoot performance bottlenecks, analyze query execution plans, identify resource-heavy processes, and monitor system-level PromQL metrics.", |
| 69 | + "allowedTools": [ |
| 70 | + "get_query_metrics", |
| 71 | + "get_query_plan", |
| 72 | + "get_system_metrics", |
| 73 | + "list_active_queries", |
| 74 | + "list_database_stats", |
| 75 | + "list_locks", |
| 76 | + "list_query_stats", |
| 77 | + "long_running_transactions" |
| 78 | + ] |
| 79 | + }, |
| 80 | + "cloud-sql-postgres-replication": { |
| 81 | + "type": "sse", |
| 82 | + "url": "http://127.0.0.1:5000/sse", |
| 83 | + "description": "Use these skills when you need to monitor replication health, manage sync states between nodes, and audit database roles and security settings to ensure environment integrity.", |
| 84 | + "allowedTools": [ |
| 85 | + "database_overview", |
| 86 | + "list_pg_settings", |
| 87 | + "list_publication_tables", |
| 88 | + "list_replication_slots", |
| 89 | + "list_roles", |
| 90 | + "replication_stats" |
| 91 | + ] |
| 92 | + }, |
| 93 | + "cloud-sql-postgres-view-config": { |
| 94 | + "type": "sse", |
| 95 | + "url": "http://127.0.0.1:5000/sse", |
| 96 | + "description": "Use these skills when you need to discover and manage PostgreSQL extensions or fine-tune engine-level settings such as memory allocation and server configuration parameters.", |
| 97 | + "allowedTools": [ |
| 98 | + "database_overview", |
| 99 | + "get_instance", |
| 100 | + "list_available_extensions", |
| 101 | + "list_installed_extensions", |
| 102 | + "list_memory_configurations", |
| 103 | + "list_pg_settings" |
| 104 | + ] |
32 | 105 | } |
33 | 106 | } |
34 | 107 | } |
0 commit comments