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.
| Capability | database.import_connector |
|---|---|
| Area | Databases |
| Access | changes files, settings |
| Reaches | network |
| Rights | http, settings |
| Dry run | dry_run, on unless the call turns it off |
Arguments
| Argument | Type | Description |
|---|---|---|
text | string | The definition text (TOML). |
path | string | A .idcconnector or .toml file, absolute or workspace-relative. |
url | string | An https:// address, fetched once (10 s, 64 KiB, 3 redirects). |
replace | boolean | Replace a user or imported system with the same id. |
dry_run | boolean | Only 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.
ferris-idea call ~/my-project import_connectorInput 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 } }}