mcp-percona-pg

v0.3.3
io.github.dockndevai/mcp-percona-pg Checked 2 days ago Published 1 month ago

Manage Percona PostgreSQL + PgBouncer on Kubernetes — safe-by-default access modes and guards.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_contexts List kube-config contexts

List the contexts (clusters) available in the loaded kube-config.

list_clusters List PostgreSQL clusters

List PerconaPGCluster resources (PostgreSQL + PgBouncer). Omit `namespace` to list across all namespaces. Results are filtered by the namespace/cluster allowlists; protected clusters are flagged.

ParameterTypeDescription
contextstringkube-config context to target (defaults to current-context)
namespacestringNamespace (defaults to PERCONA_NAMESPACE if set)

get_cluster Get cluster (summary)

Summary of a PerconaPGCluster: state, PostgreSQL size, PgBouncer, version, standby, host.

ParameterTypeDescription
name *stringPerconaPGCluster name
contextstringkube-config context to target (defaults to current-context)
namespacestringNamespace (defaults to PERCONA_NAMESPACE if set)

get_cluster_status Get cluster status (raw)

The full `.status` of a PerconaPGCluster — Patroni members, PostgreSQL/PgBouncer readiness, host, and conditions.

ParameterTypeDescription
name *stringPerconaPGCluster name
contextstringkube-config context to target (defaults to current-context)
namespacestringNamespace (defaults to PERCONA_NAMESPACE if set)

get_connection_info Get connection info

Connection endpoints for a cluster: the primary/replica Service hosts, port, and the declared users (names only — passwords live in Secrets and are never returned).

ParameterTypeDescription
name *stringPerconaPGCluster name
contextstringkube-config context to target (defaults to current-context)
namespacestringNamespace (defaults to PERCONA_NAMESPACE if set)

get_pgbouncer_config Get PgBouncer config

The PgBouncer settings for a cluster: replicas, pool_mode, and the global pool tunables.

ParameterTypeDescription
name *stringPerconaPGCluster name
contextstringkube-config context to target (defaults to current-context)
namespacestringNamespace (defaults to PERCONA_NAMESPACE if set)

get_pg_parameters Get PostgreSQL parameters

The tuned PostgreSQL parameters from `spec.patroni.dynamicConfiguration.postgresql.parameters` (the only correct place to set them — direct postgresql.conf edits are reverted by Patroni).

ParameterTypeDescription
name *stringPerconaPGCluster name
contextstringkube-config context to target (defaults to current-context)
namespacestringNamespace (defaults to PERCONA_NAMESPACE if set)

list_backups List backups

List PerconaPGBackup resources in a namespace, with their state, repo, and completion time.

ParameterTypeDescription
contextstringkube-config context to target (defaults to current-context)
namespacestringNamespace (defaults to PERCONA_NAMESPACE if set)

list_restores List restores

List PerconaPGRestore resources in a namespace, with their target cluster and state.

ParameterTypeDescription
contextstringkube-config context to target (defaults to current-context)
namespacestringNamespace (defaults to PERCONA_NAMESPACE if set)