Skip to content

vault_generate

MCP tools › Window and UI driver

Generate a password or token inside Ferris IDEA's internal vault and get only its handle: the value is drawn from the system's random source and is never shown to any agent. name (unique), length (16 to 128, default 24), charset (printable: 94 printable ASCII characters, default; alphanumeric), kind (default password), uses (database, process-env), hosts (required for database: host or host:port), expires_in_days. Use the handle with save_connection vault or run_command env_from_vault; each use asks the person in the Ferris IDEA window first. Needs the vault right.

Capabilityui.vault_generate
AreaWindow and UI driver
Accesschanges settings
Reaches—
Rightsvault
Dry runnone

Arguments

ArgumentTypeDescription
namerequiredstringThe entry's unique name: 1 to 64 characters of A-Z, a-z, 0-9, ., _, -.
lengthintegerLength of the value, 16 to 128 (default 24).minimum 0
charsetstringprintable (the 94 printable ASCII characters, default) or alphanumeric.
kindstringpassword, token or secret (default password).
usesrequiredarray of stringWhere Ferris IDEA may put the value: database and/or process-env.
hostsarray of stringFor database: the hosts, host or host:port; no wildcards.default []
expires_in_daysintegerDays until the entry expires (1 to 3650); default never.minimum 0

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 vault_generate '{"name":"<string>","uses":[]}'
Input schema as JSON
{
"properties": {
"name": {
"description": "The entry's unique name: 1 to 64 characters of A-Z, a-z, 0-9, ., _, -.",
"type": "string"
},
"length": {
"description": "Length of the value, 16 to 128 (default 24).",
"type": [
"integer",
"null"
],
"minimum": 0
},
"charset": {
"description": "`printable` (the 94 printable ASCII characters, default) or `alphanumeric`.",
"type": [
"string",
"null"
]
},
"kind": {
"description": "password, token or secret (default password).",
"type": [
"string",
"null"
]
},
"uses": {
"description": "Where Ferris IDEA may put the value: `database` and/or `process-env`.",
"type": "array",
"items": {
"type": "string"
}
},
"hosts": {
"description": "For `database`: the hosts, `host` or `host:port`; no wildcards.",
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"expires_in_days": {
"description": "Days until the entry expires (1 to 3650); default never.",
"type": [
"integer",
"null"
],
"minimum": 0
}
},
"required": [
"name",
"uses"
],
"additionalProperties": false,
"type": "object"
}