Skip to content

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.

Capabilityui.model_provider_set
AreaWindow and UI driver
Accesschanges settings
Reaches—
Rightssettings
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
idrequiredstringThe provider id: 1 to 64 characters of a-z, 0-9, -, _.
kindstringopenai, anthropic, ollama or llamacpp (ollama and llamacpp are local only). Needed unless remove.
endpointstringBase URL of the API: https, or http on 127.0.0.1, ::1 or localhost; no user, password, query or fragment. Needed unless remove.
keystringnone (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.
modelsarray of stringKnown model names (at most 500); empty: not listed yet.default []
enabledbooleanWhether tasks may use it (default true).
removebooleanRemove the provider and its prices (refused while a task is assigned to it).default false
dry_runbooleanOnly 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.

Terminal window
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"
}