model_provider_set
MCP tools › Window and UI driver
Add, replace or remove a model provider (removal refused while a task uses it). A key is never passed or returned; key only references the system keychain. Secret-looking values are refused. Dry run unless dry_run false, which needs the settings right and writes providers.toml (mode 0600) in the user's settings folder.
| Capability | ui.model_provider_set |
|---|---|
| Area | Window and UI driver |
| Access | changes settings |
| Reaches | — |
| Rights | settings |
| Dry run | dry_run, on unless the call turns it off |
Arguments
| Argument | Type | Description |
|---|---|---|
idrequired | string | The provider id: 1 to 64 characters of a-z, 0-9, -, _. |
kind | string | openai, anthropic, ollama or llamacpp (ollama and llamacpp are local only). Needed unless
remove. |
endpoint | string | Base URL of the API: https, or http on 127.0.0.1, ::1 or localhost; no user, password,
query or fragment. Needed unless remove. |
key | string | none (default) or keychain: the system keychain's entry of the endpoint, as the AI
Assistant's settings page stores it. A key itself is never given here. |
models | array of string | Known model names (at most 500); empty: not listed yet.default [] |
enabled | boolean | Whether tasks may use it (default true). |
remove | boolean | Remove the provider and its prices (refused while a task is assigned to it).default false |
dry_run | boolean | Only show what would be written (default true); false writes and needs the settings
right. |
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 model_provider_set '{"id":"<string>"}'Input schema as JSON
{ "properties": { "id": { "description": "The provider id: 1 to 64 characters of a-z, 0-9, -, _.", "type": "string" }, "kind": { "description": "openai, anthropic, ollama or llamacpp (ollama and llamacpp are local only). Needed unless\n`remove`.", "type": [ "string", "null" ] }, "endpoint": { "description": "Base URL of the API: https, or http on 127.0.0.1, ::1 or localhost; no user, password,\nquery or fragment. Needed unless `remove`.", "type": [ "string", "null" ] }, "key": { "description": "`none` (default) or `keychain`: the system keychain's entry of the endpoint, as the AI\nAssistant's settings page stores it. A key itself is never given here.", "type": [ "string", "null" ] }, "models": { "description": "Known model names (at most 500); empty: not listed yet.", "type": "array", "items": { "type": "string" }, "default": [] }, "enabled": { "description": "Whether tasks may use it (default true).", "type": [ "boolean", "null" ] }, "remove": { "description": "Remove the provider and its prices (refused while a task is assigned to it).", "type": "boolean", "default": false }, "dry_run": { "description": "Only show what would be written (default true); false writes and needs the `settings`\nright.", "type": [ "boolean", "null" ] } }, "required": [ "id" ], "additionalProperties": false, "type": "object"}