Skip to content

save_store

MCP tools › Databases

Add or change a non-relational store (MongoDB or Redis) from a name and a URL (mongodb://, mongodb+srv://, redis://, rediss://). URLs with a password are refused: the user types it into the connection dialog, which keeps it in the system keychain. A changed store keeps its id, rights and password. dry_run defaults to true and only checks and returns the profile; saving needs the write right.

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

Capabilitydatabase.save_store
AreaDatabases
Accesschanges files
Reaches—
Rightswrite
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
idstringId of the store to change; a new store when omitted.
namerequiredstringDisplay name.
urlrequiredstringmongodb://, mongodb+srv://, redis:// or rediss:// URL without password.
read_onlybooleanRefuse every command that is not a read.
dry_runbooleanOnly check and return the profile without saving (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 save_store '{"name":"<string>","url":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"name",
"url"
],
"properties": {
"id": {
"description": "Id of the store to change; a new store when omitted.",
"type": [
"string",
"null"
],
"default": null
},
"name": {
"description": "Display name.",
"type": "string"
},
"url": {
"description": "`mongodb://`, `mongodb+srv://`, `redis://` or `rediss://` URL without password.",
"type": "string"
},
"read_only": {
"description": "Refuse every command that is not a read.",
"type": [
"boolean",
"null"
],
"default": null
},
"dry_run": {
"description": "Only check and return the profile without saving (default true).",
"type": [
"boolean",
"null"
],
"default": null
}
}
}