Skip to content

remove_connection

MCP tools › Databases

Remove a database connection of the workspace and its password in the system keychain, as Delete in the Database tool window does.

Capabilitydatabase.remove_connection
AreaDatabases
Accesschanges files, settings
Reaches—
Rightswrite
Dry runnone

Arguments

ArgumentTypeDescription
connectionstringConnection id from list_connections.
idstringThe same, by its older name.

Call it from a shell

ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.

Terminal window
ferris-idea call ~/my-project remove_connection
Input schema as JSON
{
"type": "object",
"properties": {
"connection": {
"description": "Connection id from `list_connections`.",
"type": [
"string",
"null"
]
},
"id": {
"description": "The same, by its older name.",
"type": [
"string",
"null"
]
}
}
}