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.
| Capability | ui.vault_generate |
|---|---|
| Area | Window and UI driver |
| Access | changes settings |
| Reaches | — |
| Rights | vault |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
namerequired | string | The entry's unique name: 1 to 64 characters of A-Z, a-z, 0-9, ., _, -. |
length | integer | Length of the value, 16 to 128 (default 24).minimum 0 |
charset | string | printable (the 94 printable ASCII characters, default) or alphanumeric. |
kind | string | password, token or secret (default password). |
usesrequired | array of string | Where Ferris IDEA may put the value: database and/or process-env. |
hosts | array of string | For database: the hosts, host or host:port; no wildcards.default [] |
expires_in_days | integer | Days 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.
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"}