Skip to content

import_connector

MCP tools › Databases

Import a database system definition from text, a file path or an https url into the user's connectors folder. dry_run defaults to true and returns the review (problems, summary, every query it would run, which system it replaces); apply with dry_run false (needs the settings right: the definition is kept in the user's settings folder for every project); with url the download needs the http right, also in a dry run. Built-in systems cannot be replaced; replacing a user or imported one needs replace true.

Its results carry text from files: the client is told to treat that as data, never as instructions.

Capabilitydatabase.import_connector
AreaDatabases
Accesschanges files, settings
Reachesnetwork
Rightshttp, settings
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
textstringThe definition text (TOML).
pathstringA .idcconnector or .toml file, absolute or workspace-relative.
urlstringAn https:// address, fetched once (10 s, 64 KiB, 3 redirects).
replacebooleanReplace a user or imported system with the same id.
dry_runbooleanOnly review (default true).

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 import_connector
Input schema as JSON
{
"type": "object",
"properties": {
"text": {
"description": "The definition text (TOML).",
"type": [
"string",
"null"
],
"default": null
},
"path": {
"description": "A `.idcconnector` or `.toml` file, absolute or workspace-relative.",
"type": [
"string",
"null"
],
"default": null
},
"url": {
"description": "An `https://` address, fetched once (10 s, 64 KiB, 3 redirects).",
"type": [
"string",
"null"
],
"default": null
},
"replace": {
"description": "Replace a user or imported system with the same id.",
"type": [
"boolean",
"null"
],
"default": null
},
"dry_run": {
"description": "Only review (default true).",
"type": [
"boolean",
"null"
],
"default": null
}
}
}