Connections endpoints

Create, test, open and remove the database connections the IDE and DB DevOps use. Paths are relative to the address of your Simcha DB Studio server.

Through the MCP server these endpoints are the Connections tool group, off until an admin turns it on.

While this group is on, the MCP server also offers the lookups its tools need: environments_list (List environments, from Environments and Groupings), groupings_list (List groupings, from Environments and Groupings).

MethodPathWhat it does
GET/api/connectionsList connections
GET/api/connections/demos-visibilityShow whether demo connections are hidden
POST/api/connections/demos-visibilityHide or show demo connections
GET/api/connections/importableList DB DevOps connections to copy into the IDE
GET/api/connections/activeList the caller's open connections
POST/api/connections/bulkCreate many connections at once
GET/api/connections/:idGet a connection
POST/api/connections/testTest connection settings
POST/api/connectionsCreate a connection
POST/api/connections/importCopy DB DevOps connections into the IDE
PUT/api/connections/:idChange a connection
POST/api/connections/:id/connectOpen a connection
POST/api/connections/:id/disconnectClose a connection
POST/api/connections/disconnect-allClose all of the caller's connections
DELETE/api/connections/:idDelete a connection
GET/api/db-devops/connectionsList DB DevOps connections
GET/api/db-devops/connections/importableList IDE connections to copy into DB DevOps
POST/api/db-devops/connections/importCopy IDE connections into DB DevOps
GET/api/db-devops/connections/:idGet a DB DevOps connection
GET/api/db-devops/connections/environment/:envList the DB DevOps connections in an environment
GET/api/db-devops/connections/grouping/:groupingList the DB DevOps connections in a grouping
POST/api/db-devops/connectionsCreate a DB DevOps connection
PUT/api/db-devops/connections/:idChange a DB DevOps connection
DELETE/api/db-devops/connections/:idDelete a DB DevOps connection
GET/api/db-devops/connections/:id/databasesList the databases on a connection's server
GET/api/db-devops/connections/:id/schemasList the schemas of a database
POST/api/db-devops/connections/:id/testTest a DB DevOps connection

GET /api/connections

Lists the caller's IDE connections, or the DB DevOps connections with surface=devops, sorted by name, with their settings and whether each is open. Passwords and SSH secrets come back as ******. Shared demo connections are left out when the caller has hidden them.

Reads only · Role: Any signed-in user · MCP tool: connections_list

InputTypeDescription
surface (query)one of ide, devops, optionalWhich connections: ide (the caller's IDE connections, the default) or devops (the shared DB DevOps connections)

GET /api/connections/demos-visibility

Returns hidden (whether the caller has hidden the shared demo connections) and hasDemos (whether any shared demo connections exist).

Reads only · Role: Any signed-in user · MCP tool: connections_demo_visibility

No inputs.

POST /api/connections/demos-visibility

Saves, for the caller only, whether the shared demo connections are left out of their connection list. Returns the saved value.

Changes data · Role: Any signed-in user · MCP tool: connections_hide_demos

InputTypeDescription
hidden (body)boolean, optionalTrue hides the demo connections, false shows them

GET /api/connections/importable

Lists the DB DevOps connections the caller does not already have as IDE connections (same engine, host, port and database). Passwords come back as ******. Copy them with connections_import.

Reads only · Role: Any signed-in user · MCP tool: connections_list_importable

No inputs.

GET /api/connections/active

Returns activeIds: the IDs of the connections the caller has opened with connections_connect and not yet closed.

Reads only · Role: Any signed-in user · MCP tool: connections_list_open

No inputs.

POST /api/connections/bulk

Creates up to 500 connections without testing them; a row with a missing name or type, an unknown engine, invalid settings, a name already in use, an environment (connections no longer have one) or groupings that would mix database types or put the database in two environments is reported in failed with its row number while the other rows are still created. Returns created and failed with their counts, with status 201 when any row was created and 400 otherwise. With surface=devops the caller needs the release manager role and, unless an admin, the Configuration section in one of their roles.

Changes data · Role: Any signed-in user · MCP tool: connections_bulk_create

InputTypeDescription
surface (query)one of ide, devops, optionalWhich connections: ide (the caller's IDE connections, the default) or devops (the shared DB DevOps connections)
connections (body)list of object, requiredThe connections to create, 1 to 500
connections[].name (body)string, requiredThe connection name, unique among connections of the same kind (case does not matter)
connections[].type (body)one of postgresql, mysql, mariadb, mssql, sqlserver, mongodb, redis, sqlite, oracle, cassandra, influxdb, neo4j, elasticsearch, dynamodb, bigquery, snowflake, clickhouse, cockroachdb, timescaledb, supabase, planetscale, redshift, aurora_postgresql, aurora_mysql, yugabytedb, tidb, requiredThe database engine
connections[].config (body)object, optionalThe connection settings. Without it, the other fields of the row are used. port may be text, ssl may be "true", "1" or "yes", and groupings may be one text separated by ; or |
connections[].config.host (body)string, optionalThe server host name or IP address. Required by most engines
connections[].config.port (body)integer, 1 to 65535, optionalThe server port. Each engine has its own default
connections[].config.database (body)string or integer, optionalThe database to use: a database or schema name, a SQLite file path, a Redis database number, a MongoDB auth database. Left out, the engine's default is used where it has one
connections[].config.username (body)string, optionalThe user name. For DynamoDB the access key ID
connections[].config.password (body)string, optionalThe password. For BigQuery the service account key JSON, for InfluxDB the API token, for DynamoDB the secret access key. Stored encrypted; reads show ******
connections[].config.savePassword (body)boolean, optionalSend false to keep the password out of storage
connections[].config.ssl (body)boolean, optionalUse SSL/TLS
connections[].config.sslMode (body)one of disable, require, verify-ca, verify-full, optionalThe SSL mode, for engines that have one
connections[].config.encrypt (body)boolean, optionalSQL Server: encrypt the connection
connections[].config.trustServerCertificate (body)boolean, optionalSQL Server: accept any certificate the server presents, including a self-signed one
connections[].config.connectionTimeoutSec (body)integer, 1 or more, optionalHow long to wait for the connection, in seconds
connections[].config.statementTimeoutSec (body)integer, 1 or more, optionalHow long a statement may run, in seconds
connections[].config.keepAlive (body)boolean, optionalSend TCP keep-alives
connections[].config.connectionString (body)string, optionalMongoDB: a connection string that overrides the host, port and sign-in fields
connections[].config.serviceName (body)string, optionalOracle: the service name or pluggable database. Required for Oracle
connections[].config.projectId (body)string, optionalBigQuery: the project ID. Required for BigQuery
connections[].config.account (body)string, optionalSnowflake: the account identifier. Required for Snowflake
connections[].config.warehouse (body)string, optionalSnowflake: the warehouse queries run on
connections[].config.schema (body)string, optionalSnowflake: the schema queries start in
connections[].config.role (body)string, optionalSnowflake: the role the session uses
connections[].config.organization (body)string, optionalInfluxDB: the organization. Required for InfluxDB
connections[].config.region (body)string, optionalDynamoDB: the AWS region, required. BigQuery: the location jobs run in
connections[].config.endpoint (body)string, optionalAn endpoint URL for an emulator or a private endpoint (DynamoDB, BigQuery, Snowflake)
connections[].config.readOnly (body)boolean, optionalWhen true, statements that write data are refused on this connection
connections[].config.groupings (body)list of string, optionalDB DevOps connections, when creating only: groupings the connection joins with its own database. A grouping holds one database type, and a database belongs to one environment, so groupings assigned to two environments are refused. Later changes are made on the grouping
connections[].config.sshEnabled (body)boolean, optionalConnect through an SSH tunnel
connections[].config.sshHost (body)string, optionalThe SSH bastion host
connections[].config.sshPort (body)integer, 1 to 65535, optionalThe SSH port, 22 when left out
connections[].config.sshUsername (body)string, optionalThe SSH user name
connections[].config.sshAuthMethod (body)one of password, privateKey, optionalHow to sign in to the bastion
connections[].config.sshPassword (body)string, optionalThe SSH password. Stored encrypted; reads show ******
connections[].config.sshPrivateKey (body)string, optionalThe SSH private key in PEM format. Stored encrypted; reads show ******
connections[].config.sshPassphrase (body)string, optionalThe passphrase of the SSH private key. Stored encrypted; reads show ******
connections[].config.sshHostFingerprint (body)string, optionalThe SHA256 fingerprint of the bastion host key. Required for an SSH tunnel

GET /api/connections/:id

Returns one connection with its settings and whether it is open. Passwords and SSH secrets come back as ******. Another user's private IDE connection is not found.

Reads only · Role: Any signed-in user · MCP tool: connections_get

InputTypeDescription
id (path)string (uuid), requiredThe connection ID

POST /api/connections/test

Checks the settings and tries to connect with them, without saving anything. Returns success and a message; missing or invalid settings are refused with 400 and the reasons.

Reads only · Role: Any signed-in user · MCP tool: connections_test_settings

InputTypeDescription
type (body)one of postgresql, mysql, mariadb, mssql, sqlserver, mongodb, redis, sqlite, oracle, cassandra, influxdb, neo4j, elasticsearch, dynamodb, bigquery, snowflake, clickhouse, cockroachdb, timescaledb, supabase, planetscale, redshift, aurora_postgresql, aurora_mysql, yugabytedb, tidb, requiredThe database engine
config (body)object, requiredThe connection settings to test
config.host (body)string, optionalThe server host name or IP address. Required by most engines
config.port (body)integer, 1 to 65535, optionalThe server port. Each engine has its own default
config.database (body)string or integer, optionalThe database to use: a database or schema name, a SQLite file path, a Redis database number, a MongoDB auth database. Left out, the engine's default is used where it has one
config.username (body)string, optionalThe user name. For DynamoDB the access key ID
config.password (body)string, optionalThe password. For BigQuery the service account key JSON, for InfluxDB the API token, for DynamoDB the secret access key. Stored encrypted; reads show ******
config.savePassword (body)boolean, optionalSend false to keep the password out of storage
config.ssl (body)boolean, optionalUse SSL/TLS
config.sslMode (body)one of disable, require, verify-ca, verify-full, optionalThe SSL mode, for engines that have one
config.encrypt (body)boolean, optionalSQL Server: encrypt the connection
config.trustServerCertificate (body)boolean, optionalSQL Server: accept any certificate the server presents, including a self-signed one
config.connectionTimeoutSec (body)integer, 1 or more, optionalHow long to wait for the connection, in seconds
config.statementTimeoutSec (body)integer, 1 or more, optionalHow long a statement may run, in seconds
config.keepAlive (body)boolean, optionalSend TCP keep-alives
config.connectionString (body)string, optionalMongoDB: a connection string that overrides the host, port and sign-in fields
config.serviceName (body)string, optionalOracle: the service name or pluggable database. Required for Oracle
config.projectId (body)string, optionalBigQuery: the project ID. Required for BigQuery
config.account (body)string, optionalSnowflake: the account identifier. Required for Snowflake
config.warehouse (body)string, optionalSnowflake: the warehouse queries run on
config.schema (body)string, optionalSnowflake: the schema queries start in
config.role (body)string, optionalSnowflake: the role the session uses
config.organization (body)string, optionalInfluxDB: the organization. Required for InfluxDB
config.region (body)string, optionalDynamoDB: the AWS region, required. BigQuery: the location jobs run in
config.endpoint (body)string, optionalAn endpoint URL for an emulator or a private endpoint (DynamoDB, BigQuery, Snowflake)
config.readOnly (body)boolean, optionalWhen true, statements that write data are refused on this connection
config.groupings (body)list of string, optionalDB DevOps connections, when creating only: groupings the connection joins with its own database. A grouping holds one database type, and a database belongs to one environment, so groupings assigned to two environments are refused. Later changes are made on the grouping
config.sshEnabled (body)boolean, optionalConnect through an SSH tunnel
config.sshHost (body)string, optionalThe SSH bastion host
config.sshPort (body)integer, 1 to 65535, optionalThe SSH port, 22 when left out
config.sshUsername (body)string, optionalThe SSH user name
config.sshAuthMethod (body)one of password, privateKey, optionalHow to sign in to the bastion
config.sshPassword (body)string, optionalThe SSH password. Stored encrypted; reads show ******
config.sshPrivateKey (body)string, optionalThe SSH private key in PEM format. Stored encrypted; reads show ******
config.sshPassphrase (body)string, optionalThe passphrase of the SSH private key. Stored encrypted; reads show ******
config.sshHostFingerprint (body)string, optionalThe SHA256 fingerprint of the bastion host key. Required for an SSH tunnel

POST /api/connections

Checks the settings, tests the connection and saves it with the password and SSH secrets encrypted; a failed test is refused with 400 and the reason. With surface=devops it creates a DB DevOps connection, which needs the release manager role and, unless the caller is an admin, the Configuration section in one of their roles. A connection has no environment of its own: sending environment is refused with 400, and its environment comes from the groupings that hold it. Groupings given on creation that would mix database types or put the database in two environments are refused with 409.

Changes data · Role: Any signed-in user · MCP tool: connections_create

InputTypeDescription
surface (query)one of ide, devops, optionalWhich connections: ide (the caller's IDE connections, the default) or devops (the shared DB DevOps connections)
name (body)string, requiredThe connection name
type (body)one of postgresql, mysql, mariadb, mssql, sqlserver, mongodb, redis, sqlite, oracle, cassandra, influxdb, neo4j, elasticsearch, dynamodb, bigquery, snowflake, clickhouse, cockroachdb, timescaledb, supabase, planetscale, redshift, aurora_postgresql, aurora_mysql, yugabytedb, tidb, requiredThe database engine
config (body)object, requiredThe connection settings. Other keys are kept as given
config.host (body)string, optionalThe server host name or IP address. Required by most engines
config.port (body)integer, 1 to 65535, optionalThe server port. Each engine has its own default
config.database (body)string or integer, optionalThe database to use: a database or schema name, a SQLite file path, a Redis database number, a MongoDB auth database. Left out, the engine's default is used where it has one
config.username (body)string, optionalThe user name. For DynamoDB the access key ID
config.password (body)string, optionalThe password. For BigQuery the service account key JSON, for InfluxDB the API token, for DynamoDB the secret access key. Stored encrypted; reads show ******
config.savePassword (body)boolean, optionalSend false to keep the password out of storage
config.ssl (body)boolean, optionalUse SSL/TLS
config.sslMode (body)one of disable, require, verify-ca, verify-full, optionalThe SSL mode, for engines that have one
config.encrypt (body)boolean, optionalSQL Server: encrypt the connection
config.trustServerCertificate (body)boolean, optionalSQL Server: accept any certificate the server presents, including a self-signed one
config.connectionTimeoutSec (body)integer, 1 or more, optionalHow long to wait for the connection, in seconds
config.statementTimeoutSec (body)integer, 1 or more, optionalHow long a statement may run, in seconds
config.keepAlive (body)boolean, optionalSend TCP keep-alives
config.connectionString (body)string, optionalMongoDB: a connection string that overrides the host, port and sign-in fields
config.serviceName (body)string, optionalOracle: the service name or pluggable database. Required for Oracle
config.projectId (body)string, optionalBigQuery: the project ID. Required for BigQuery
config.account (body)string, optionalSnowflake: the account identifier. Required for Snowflake
config.warehouse (body)string, optionalSnowflake: the warehouse queries run on
config.schema (body)string, optionalSnowflake: the schema queries start in
config.role (body)string, optionalSnowflake: the role the session uses
config.organization (body)string, optionalInfluxDB: the organization. Required for InfluxDB
config.region (body)string, optionalDynamoDB: the AWS region, required. BigQuery: the location jobs run in
config.endpoint (body)string, optionalAn endpoint URL for an emulator or a private endpoint (DynamoDB, BigQuery, Snowflake)
config.readOnly (body)boolean, optionalWhen true, statements that write data are refused on this connection
config.groupings (body)list of string, optionalDB DevOps connections, when creating only: groupings the connection joins with its own database. A grouping holds one database type, and a database belongs to one environment, so groupings assigned to two environments are refused. Later changes are made on the grouping
config.sshEnabled (body)boolean, optionalConnect through an SSH tunnel
config.sshHost (body)string, optionalThe SSH bastion host
config.sshPort (body)integer, 1 to 65535, optionalThe SSH port, 22 when left out
config.sshUsername (body)string, optionalThe SSH user name
config.sshAuthMethod (body)one of password, privateKey, optionalHow to sign in to the bastion
config.sshPassword (body)string, optionalThe SSH password. Stored encrypted; reads show ******
config.sshPrivateKey (body)string, optionalThe SSH private key in PEM format. Stored encrypted; reads show ******
config.sshPassphrase (body)string, optionalThe passphrase of the SSH private key. Stored encrypted; reads show ******
config.sshHostFingerprint (body)string, optionalThe SHA256 fingerprint of the bastion host key. Required for an SSH tunnel

POST /api/connections/import

Copies DB DevOps connections, with their stored passwords, into the caller's IDE connections. A connection the caller already has (same engine, host, port and database) is skipped; an ID that is not a DB DevOps connection is ignored. Returns how many were imported and skipped.

Changes data · Role: Any signed-in user · MCP tool: connections_import

InputTypeDescription
ids (body)list of string (uuid), requiredThe DB DevOps connections to copy

PUT /api/connections/:id

Changes the name and settings; the engine cannot change, shared demo connections cannot be edited, and a DB DevOps connection needs the release manager role and, unless the caller is an admin, the Configuration section. New settings are tested after saving, and a failed test keeps the change and returns testWarning. An open connection is closed so the next use picks up the change. Sending environment or groupings is refused with 400: the groupings of a connection change on the grouping.

Changes data · Role: Any signed-in user · MCP tool: connections_update

InputTypeDescription
id (path)string (uuid), requiredThe connection ID
name (body)string, optionalThe new name. Left out, the name is kept
type (body)one of postgresql, mysql, mariadb, mssql, sqlserver, mongodb, redis, sqlite, oracle, cassandra, influxdb, neo4j, elasticsearch, dynamodb, bigquery, snowflake, clickhouse, cockroachdb, timescaledb, supabase, planetscale, redshift, aurora_postgresql, aurora_mysql, yugabytedb, tidb, optionalThe database engine. A different engine from the saved one is refused
config (body)object, optionalThe new settings, which replace the stored ones. A password left out, empty or sent as ****** or ******** keeps the stored one, and the same holds for the SSH password, key and passphrase. Left out, the settings are kept
config.host (body)string, optionalThe server host name or IP address. Required by most engines
config.port (body)integer, 1 to 65535, optionalThe server port. Each engine has its own default
config.database (body)string or integer, optionalThe database to use: a database or schema name, a SQLite file path, a Redis database number, a MongoDB auth database. Left out, the engine's default is used where it has one
config.username (body)string, optionalThe user name. For DynamoDB the access key ID
config.password (body)string, optionalThe password. For BigQuery the service account key JSON, for InfluxDB the API token, for DynamoDB the secret access key. Stored encrypted; reads show ******
config.savePassword (body)boolean, optionalSend false to keep the password out of storage
config.ssl (body)boolean, optionalUse SSL/TLS
config.sslMode (body)one of disable, require, verify-ca, verify-full, optionalThe SSL mode, for engines that have one
config.encrypt (body)boolean, optionalSQL Server: encrypt the connection
config.trustServerCertificate (body)boolean, optionalSQL Server: accept any certificate the server presents, including a self-signed one
config.connectionTimeoutSec (body)integer, 1 or more, optionalHow long to wait for the connection, in seconds
config.statementTimeoutSec (body)integer, 1 or more, optionalHow long a statement may run, in seconds
config.keepAlive (body)boolean, optionalSend TCP keep-alives
config.connectionString (body)string, optionalMongoDB: a connection string that overrides the host, port and sign-in fields
config.serviceName (body)string, optionalOracle: the service name or pluggable database. Required for Oracle
config.projectId (body)string, optionalBigQuery: the project ID. Required for BigQuery
config.account (body)string, optionalSnowflake: the account identifier. Required for Snowflake
config.warehouse (body)string, optionalSnowflake: the warehouse queries run on
config.schema (body)string, optionalSnowflake: the schema queries start in
config.role (body)string, optionalSnowflake: the role the session uses
config.organization (body)string, optionalInfluxDB: the organization. Required for InfluxDB
config.region (body)string, optionalDynamoDB: the AWS region, required. BigQuery: the location jobs run in
config.endpoint (body)string, optionalAn endpoint URL for an emulator or a private endpoint (DynamoDB, BigQuery, Snowflake)
config.readOnly (body)boolean, optionalWhen true, statements that write data are refused on this connection
config.groupings (body)list of string, optionalDB DevOps connections, when creating only: groupings the connection joins with its own database. A grouping holds one database type, and a database belongs to one environment, so groupings assigned to two environments are refused. Later changes are made on the grouping
config.sshEnabled (body)boolean, optionalConnect through an SSH tunnel
config.sshHost (body)string, optionalThe SSH bastion host
config.sshPort (body)integer, 1 to 65535, optionalThe SSH port, 22 when left out
config.sshUsername (body)string, optionalThe SSH user name
config.sshAuthMethod (body)one of password, privateKey, optionalHow to sign in to the bastion
config.sshPassword (body)string, optionalThe SSH password. Stored encrypted; reads show ******
config.sshPrivateKey (body)string, optionalThe SSH private key in PEM format. Stored encrypted; reads show ******
config.sshPassphrase (body)string, optionalThe passphrase of the SSH private key. Stored encrypted; reads show ******
config.sshHostFingerprint (body)string, optionalThe SHA256 fingerprint of the bastion host key. Required for an SSH tunnel

POST /api/connections/:id/connect

Opens a live connection to the database, or joins one already open, and holds it for the caller. A connection that cannot be reached is refused with 502 and the driver's reason. For a DB DevOps connection a caller who is not an admin needs the Configuration section.

Changes data · Role: Any signed-in user · MCP tool: connections_connect

InputTypeDescription
id (path)string (uuid), requiredThe connection ID

POST /api/connections/:id/disconnect

Releases the caller's hold on an open connection and closes it when nobody else holds it. For a DB DevOps connection a caller who is not an admin needs the Configuration section.

Changes data · Role: Any signed-in user · MCP tool: connections_disconnect

InputTypeDescription
id (path)string (uuid), requiredThe connection ID

POST /api/connections/disconnect-all

Releases every connection the caller holds open, closing each one nobody else holds. Returns how many were released.

Changes data · Role: Any signed-in user · MCP tool: connections_disconnect_all

No inputs.

DELETE /api/connections/:id

Closes and deletes a connection. Shared demo connections cannot be deleted, and a connection a release pipeline uses is refused with 409. A DB DevOps connection needs the admin role.

Changes data and can remove or overwrite it · Role: Any signed-in user · MCP tool: connections_delete

InputTypeDescription
id (path)string (uuid), requiredThe connection ID

GET /api/db-devops/connections

Lists the DB DevOps connections sorted by name, with engine, host, port and database, and placements: each grouping that holds the connection, the environment it is assigned to and which databases it holds. Stored passwords come back as ********.

Reads only · Role: Any signed-in user · MCP tool: connections_devops_list

No inputs.

GET /api/db-devops/connections/importable

Lists the caller's own IDE connections that are not already DB DevOps connections (same engine, host, port and database). Stored passwords come back as ********. Copy them with connections_devops_import.

Reads only · Role: Any signed-in user · MCP tool: connections_devops_list_importable

No inputs.

POST /api/db-devops/connections/import

Copies IDE connections into DB DevOps with their host, port, database, user, password and SSL setting; other settings such as SSH tunnels are not copied. A connection already in DB DevOps is skipped; an ID that is not an IDE connection the caller may use is ignored. Returns how many were imported and skipped.

Changes data · Role: Release manager or admin · MCP tool: connections_devops_import

InputTypeDescription
ids (body)list of string (uuid), requiredThe IDE connections to copy

GET /api/db-devops/connections/:id

Returns one connection with engine, host, port, database and placements (the groupings that hold it and their environments). The stored password comes back as ********.

Reads only · Role: Any signed-in user · MCP tool: connections_devops_get

InputTypeDescription
id (path)string (uuid), requiredThe connection ID

GET /api/db-devops/connections/environment/:env

Lists the DB DevOps connections that a grouping assigned to the environment holds, sorted by name, with their placements. Stored passwords come back as ********.

Reads only · Role: Any signed-in user · MCP tool: connections_devops_by_environment

InputTypeDescription
env (path)string, requiredThe environment name

GET /api/db-devops/connections/grouping/:grouping

Lists the DB DevOps connections in one grouping, sorted by name, with their placements. Stored passwords come back as ********.

Reads only · Role: Any signed-in user · MCP tool: connections_devops_by_grouping

InputTypeDescription
grouping (path)string, requiredThe grouping name

POST /api/db-devops/connections

Saves a DB DevOps connection without testing it. Only the fields below are stored, and the creator recorded in the connection and the audit log is always the signed-in caller. A caller who is not an admin also needs the Configuration section in one of their roles. A connection has no environment of its own: sending environment is refused with 400, and its environment comes from the groupings that hold it. Groupings given on creation that would mix database types or put the database in two environments are refused with 409.

Changes data · Role: Release manager or admin · MCP tool: connections_devops_create

InputTypeDescription
name (body)string, requiredThe connection name, up to 255 characters
type (body)one of postgresql, mysql, mariadb, mssql, sqlserver, mongodb, redis, sqlite, oracle, cassandra, influxdb, neo4j, elasticsearch, dynamodb, bigquery, snowflake, clickhouse, cockroachdb, timescaledb, supabase, planetscale, redshift, aurora_postgresql, aurora_mysql, yugabytedb, tidb, requiredThe database engine
host (body)string, requiredThe server host name or IP address
port (body)integer, 1 to 65535, requiredThe server port
database_name (body)string, requiredThe database name
username (body)string, optionalThe user name
password_encrypted (body)string, optionalThe password in plain text. It is stored encrypted; reads show ********
ssl_enabled (body)boolean, optionalUse SSL/TLS
groupings (body)list of string, optionalGroupings the connection joins with its own database. A grouping holds one database type, and a database belongs to one environment, so groupings assigned to two environments are refused. Later changes are made on the grouping
config (body)object, optionalEngine-specific settings and an SSH tunnel, as connections_create takes them (service name, account, SSL mode, SSH host and extra parameters). Secrets in it are stored encrypted and read back as ******
config.host (body)string, optionalThe server host name or IP address. Required by most engines
config.port (body)integer, 1 to 65535, optionalThe server port. Each engine has its own default
config.database (body)string or integer, optionalThe database to use: a database or schema name, a SQLite file path, a Redis database number, a MongoDB auth database. Left out, the engine's default is used where it has one
config.username (body)string, optionalThe user name. For DynamoDB the access key ID
config.password (body)string, optionalThe password. For BigQuery the service account key JSON, for InfluxDB the API token, for DynamoDB the secret access key. Stored encrypted; reads show ******
config.savePassword (body)boolean, optionalSend false to keep the password out of storage
config.ssl (body)boolean, optionalUse SSL/TLS
config.sslMode (body)one of disable, require, verify-ca, verify-full, optionalThe SSL mode, for engines that have one
config.encrypt (body)boolean, optionalSQL Server: encrypt the connection
config.trustServerCertificate (body)boolean, optionalSQL Server: accept any certificate the server presents, including a self-signed one
config.connectionTimeoutSec (body)integer, 1 or more, optionalHow long to wait for the connection, in seconds
config.statementTimeoutSec (body)integer, 1 or more, optionalHow long a statement may run, in seconds
config.keepAlive (body)boolean, optionalSend TCP keep-alives
config.connectionString (body)string, optionalMongoDB: a connection string that overrides the host, port and sign-in fields
config.serviceName (body)string, optionalOracle: the service name or pluggable database. Required for Oracle
config.projectId (body)string, optionalBigQuery: the project ID. Required for BigQuery
config.account (body)string, optionalSnowflake: the account identifier. Required for Snowflake
config.warehouse (body)string, optionalSnowflake: the warehouse queries run on
config.schema (body)string, optionalSnowflake: the schema queries start in
config.role (body)string, optionalSnowflake: the role the session uses
config.organization (body)string, optionalInfluxDB: the organization. Required for InfluxDB
config.region (body)string, optionalDynamoDB: the AWS region, required. BigQuery: the location jobs run in
config.endpoint (body)string, optionalAn endpoint URL for an emulator or a private endpoint (DynamoDB, BigQuery, Snowflake)
config.readOnly (body)boolean, optionalWhen true, statements that write data are refused on this connection
config.groupings (body)list of string, optionalDB DevOps connections, when creating only: groupings the connection joins with its own database. A grouping holds one database type, and a database belongs to one environment, so groupings assigned to two environments are refused. Later changes are made on the grouping
config.sshEnabled (body)boolean, optionalConnect through an SSH tunnel
config.sshHost (body)string, optionalThe SSH bastion host
config.sshPort (body)integer, 1 to 65535, optionalThe SSH port, 22 when left out
config.sshUsername (body)string, optionalThe SSH user name
config.sshAuthMethod (body)one of password, privateKey, optionalHow to sign in to the bastion
config.sshPassword (body)string, optionalThe SSH password. Stored encrypted; reads show ******
config.sshPrivateKey (body)string, optionalThe SSH private key in PEM format. Stored encrypted; reads show ******
config.sshPassphrase (body)string, optionalThe passphrase of the SSH private key. Stored encrypted; reads show ******
config.sshHostFingerprint (body)string, optionalThe SHA256 fingerprint of the bastion host key. Required for an SSH tunnel

PUT /api/db-devops/connections/:id

Changes the fields sent; the engine cannot change and shared demo connections cannot be edited. A password_encrypted of ******** (as reads return it) or empty keeps the stored password, so the body of connections_devops_get can be sent back with one field changed. The audit log records the signed-in caller. A caller who is not an admin also needs the Configuration section in one of their roles. A connection has no environment of its own: sending environment is refused with 400, and its environment comes from the groupings that hold it. Groupings given on creation that would mix database types or put the database in two environments are refused with 409.

Changes data · Role: Release manager or admin · MCP tool: connections_devops_update

InputTypeDescription
id (path)string (uuid), requiredThe connection ID
name (body)string, optionalThe connection name, up to 255 characters
type (body)one of postgresql, mysql, mariadb, mssql, sqlserver, mongodb, redis, sqlite, oracle, cassandra, influxdb, neo4j, elasticsearch, dynamodb, bigquery, snowflake, clickhouse, cockroachdb, timescaledb, supabase, planetscale, redshift, aurora_postgresql, aurora_mysql, yugabytedb, tidb, optionalThe database engine. A different engine from the saved one is refused
host (body)string, optionalThe server host name or IP address
port (body)integer, 1 to 65535, optionalThe server port
database_name (body)string, optionalThe database name
username (body)string, optionalThe user name
password_encrypted (body)string, optionalA new password in plain text, which replaces the stored one. Left out, empty or sent as ******** (the mask reads return) it keeps the stored password, so a connection read and sent back keeps signing in
ssl_enabled (body)boolean, optionalUse SSL/TLS
config (body)object, optionalEngine-specific settings and an SSH tunnel to change. Keys left out keep their stored values, and a secret sent as ****** or empty keeps the stored one
config.host (body)string, optionalThe server host name or IP address. Required by most engines
config.port (body)integer, 1 to 65535, optionalThe server port. Each engine has its own default
config.database (body)string or integer, optionalThe database to use: a database or schema name, a SQLite file path, a Redis database number, a MongoDB auth database. Left out, the engine's default is used where it has one
config.username (body)string, optionalThe user name. For DynamoDB the access key ID
config.password (body)string, optionalThe password. For BigQuery the service account key JSON, for InfluxDB the API token, for DynamoDB the secret access key. Stored encrypted; reads show ******
config.savePassword (body)boolean, optionalSend false to keep the password out of storage
config.ssl (body)boolean, optionalUse SSL/TLS
config.sslMode (body)one of disable, require, verify-ca, verify-full, optionalThe SSL mode, for engines that have one
config.encrypt (body)boolean, optionalSQL Server: encrypt the connection
config.trustServerCertificate (body)boolean, optionalSQL Server: accept any certificate the server presents, including a self-signed one
config.connectionTimeoutSec (body)integer, 1 or more, optionalHow long to wait for the connection, in seconds
config.statementTimeoutSec (body)integer, 1 or more, optionalHow long a statement may run, in seconds
config.keepAlive (body)boolean, optionalSend TCP keep-alives
config.connectionString (body)string, optionalMongoDB: a connection string that overrides the host, port and sign-in fields
config.serviceName (body)string, optionalOracle: the service name or pluggable database. Required for Oracle
config.projectId (body)string, optionalBigQuery: the project ID. Required for BigQuery
config.account (body)string, optionalSnowflake: the account identifier. Required for Snowflake
config.warehouse (body)string, optionalSnowflake: the warehouse queries run on
config.schema (body)string, optionalSnowflake: the schema queries start in
config.role (body)string, optionalSnowflake: the role the session uses
config.organization (body)string, optionalInfluxDB: the organization. Required for InfluxDB
config.region (body)string, optionalDynamoDB: the AWS region, required. BigQuery: the location jobs run in
config.endpoint (body)string, optionalAn endpoint URL for an emulator or a private endpoint (DynamoDB, BigQuery, Snowflake)
config.readOnly (body)boolean, optionalWhen true, statements that write data are refused on this connection
config.groupings (body)list of string, optionalDB DevOps connections, when creating only: groupings the connection joins with its own database. A grouping holds one database type, and a database belongs to one environment, so groupings assigned to two environments are refused. Later changes are made on the grouping
config.sshEnabled (body)boolean, optionalConnect through an SSH tunnel
config.sshHost (body)string, optionalThe SSH bastion host
config.sshPort (body)integer, 1 to 65535, optionalThe SSH port, 22 when left out
config.sshUsername (body)string, optionalThe SSH user name
config.sshAuthMethod (body)one of password, privateKey, optionalHow to sign in to the bastion
config.sshPassword (body)string, optionalThe SSH password. Stored encrypted; reads show ******
config.sshPrivateKey (body)string, optionalThe SSH private key in PEM format. Stored encrypted; reads show ******
config.sshPassphrase (body)string, optionalThe passphrase of the SSH private key. Stored encrypted; reads show ******
config.sshHostFingerprint (body)string, optionalThe SHA256 fingerprint of the bastion host key. Required for an SSH tunnel

DELETE /api/db-devops/connections/:id

Deletes a connection. Shared demo connections cannot be deleted, and a connection a release pipeline uses is refused with 409.

Changes data and can remove or overwrite it · Role: Admin · MCP tool: connections_devops_delete

InputTypeDescription
id (path)string (uuid), requiredThe connection ID

GET /api/db-devops/connections/:id/databases

Connects through the engine and lists the databases on the server, each with its size where reported, a detail and whether it is a system database. listed is false, with a message, for engines that have no list of databases. A server that cannot be reached or read is refused with 502.

Reads only · Role: Any signed-in user · MCP tool: connections_devops_databases

InputTypeDescription
id (path)string (uuid), requiredThe connection ID

GET /api/db-devops/connections/:id/schemas

Lists the schemas of one database on the connection, each marked when it is a system schema. listed is false, with a message, on engines where a run cannot choose a schema (only Oracle, Snowflake and the PostgreSQL family can). A server that cannot be read is refused with 502.

Reads only · Role: Any signed-in user · MCP tool: connections_devops_schemas

InputTypeDescription
id (path)string (uuid), requiredThe connection ID
database (query)string, optionalThe database on the connection. Leave it out for the connection default

POST /api/db-devops/connections/:id/test

Tries to connect with the stored settings and returns success and a message. Nothing is saved. A caller who is not an admin needs the Configuration section in one of their roles.

Reads only · Role: Any signed-in user · MCP tool: connections_devops_test

InputTypeDescription
id (path)string (uuid), requiredThe connection ID