Configuration reference changedthird-party/claude-desktop/configuration
Nearest release: v2.1.332, published 4 hours after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 24 Nov 2026 17:08 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 24 Nov 2026 17:37 UTC.
Upstream edited
Recorded here
Lines+10added
Lines−10removed
From line
4,258
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits89to this page, all time
The whole hunk
from line 4258, old and new numbered
/
from line 4258
42584258
42594259Each [`managedMcpServers`](#managedmcpservers) entry can carry a `toolPolicy` that sets the approval state per tool:
42604260
4261* `"allow"`: in Cowork sessions, the tool runs without an approval prompt, except that a built-in server's [irreversible actions](https://claude.com/docs/third-party/claude-desktop/built-in-connectors.md#how-built-in-servers-behave) stay at `"ask"` or stricter. In local Code sessions and Code sessions on an SSH host, `"allow"` doesn't pre-approve the tool, so the user can see an approval prompt for it. For a server that a plugin provides, see [Set tool permissions for a plugin server](https://claude.com/docs/third-party/claude-desktop/extensions.md#set-tool-permissions-for-a-plugin-server).
4262* `"ask"`: every call that Claude makes needs approval; no session-scoped or standing grants are offered. A plugin's [hook](https://claude.com/docs/third-party/claude-desktop/extensions.md#plugin-hooks) can answer the approval prompt in the user's place. To run only the hooks that your Claude Code managed settings provide, see [Turn off user hooks](https://claude.com/docs/third-party/claude-desktop/extensions.md#turn-off-user-hooks).
4261* `"allow"`: in Cowork sessions, the tool runs without an approval prompt, except that a built-in server's [irreversible actions](https://claude.com/docs/third-party/claude-desktop/built-in-connectors.md#how-built-in-servers-behave) stay at the `"ask"` setting or a stricter one. In local Code sessions and Code sessions on an SSH host, `"allow"` doesn't pre-approve the tool, so the user can see an approval prompt for it. For a server that a plugin provides, see [Set tool permissions for a plugin server](https://claude.com/docs/third-party/claude-desktop/extensions.md#set-tool-permissions-for-a-plugin-server).
4262* `"ask"`: every call that Claude makes needs approval; the prompt offers no approval that lasts for the session or longer. A plugin's [hook](https://claude.com/docs/third-party/claude-desktop/extensions.md#plugin-hooks) can answer the approval prompt in the user's place. To run only the hooks that your Claude Code managed settings provide, see [Turn off user hooks](https://claude.com/docs/third-party/claude-desktop/extensions.md#turn-off-user-hooks).
42634263* `"blocked"`: the tool is removed from Claude's session; connector settings show it as blocked by your organization.
42644264
4265In Cowork's [**Automatically approve**](#automodeenabled), a safety classifier still reviews calls to a tool set to `"allow"`, and can block them. See [Run vetted connector tools without classifier review](https://claude.com/docs/third-party/claude-desktop/code.md#run-vetted-connector-tools-without-classifier-review). In a task or scheduled run that Cowork has switched to **Manually approve**, for example because its model doesn't support Auto mode, `"allow"` still applies with no classifier review.
4265In Cowork's [**Automatically approve**](#automodeenabled) mode, a safety classifier still reviews calls to a tool set to `"allow"`, and can block them. See [Run vetted connector tools without classifier review](https://claude.com/docs/third-party/claude-desktop/code.md#run-vetted-connector-tools-without-classifier-review). In a task or scheduled run that Cowork has switched to **Manually approve**, for example because the task's model doesn't support Auto mode (which Cowork shows as **Automatically approve**), `"allow"` still applies with no classifier review.
42664266
4267In Cowork's [**Automatically approve**](#automodeenabled) on macOS and Linux, the safety classifier, not a prompt, decides three of Cowork's own actions. They are saving a skill, opening a folder by its path, and creating, changing, or deleting a scheduled task. A scheduled run still asks before it creates, changes, or deletes a scheduled task. Your `"ask"` and `"blocked"` policies still apply.
4267In Cowork's [**Automatically approve**](#automodeenabled) mode on macOS and Linux, the safety classifier, not a prompt, decides whether three of Cowork's own actions go ahead. They are saving a skill, opening a folder by its path, and creating, changing, or deleting a scheduled task. A scheduled run still asks before it creates, changes, or deletes a scheduled task. Your `"ask"` and `"blocked"` policies still apply.
42684268
4269Claude's calls to a tool with no policy entry stay under the user's control (built-in connectors apply default policies to some tools): outside [**Auto mode**](#automodeenabled) and bypass permissions mode, the user is prompted and can approve once, approve for the rest of the task (offered for tools that can modify data), or grant a standing approval unless [`mcpPersistentAlwaysAllowEnabled`](#mcppersistentalwaysallowenabled) is `false`. The app reads a `toolPolicy` value other than `"allow"`, `"ask"`, or `"blocked"`, such as `"ask-session"`, as `"blocked"` for that tool and reports a configuration error, so write `"ask"` in place of `"ask-session"`. Managed policies take precedence over user grants, and enforcement happens in the desktop host process, not only in the prompt UI. A deny-by-default posture, `"*": "blocked"` plus exact `"allow"` entries for approved tools, is supported, including in Code sessions. It doesn't work on a [marketplace plugin's own server](https://claude.com/docs/third-party/claude-desktop/extensions.md#set-tool-permissions-for-a-plugin-server), where the stricter of the two values applies. See the [`managedMcpServers` reference](#managedmcpservers) for wildcard matching, precedence rules, and built-in connector defaults.
4269Claude's calls to a tool with no policy entry stay under the user's control, though built-in connectors apply default policies to some tools. Outside [**Auto mode**](#automodeenabled) and bypass permissions mode, the user is prompted for the call and can approve once, approve for the rest of the task (offered for tools that can modify data), or grant a standing approval unless [`mcpPersistentAlwaysAllowEnabled`](#mcppersistentalwaysallowenabled) is `false`. The app reads a `toolPolicy` value other than `"allow"`, `"ask"`, or `"blocked"`, such as `"ask-session"`, as `"blocked"` for that tool and reports a configuration error, so write `"ask"` in place of `"ask-session"`. Managed policies take precedence over user grants, and enforcement happens in the desktop host process, not only in the prompt UI. A deny-by-default posture, `"*": "blocked"` plus exact `"allow"` entries for approved tools, is supported, including in Code sessions. A deny-by-default posture doesn't work on a [marketplace plugin's own server](https://claude.com/docs/third-party/claude-desktop/extensions.md#set-tool-permissions-for-a-plugin-server), where the wildcard `"blocked"` outranks an exact `"allow"`. See the [`managedMcpServers` reference](#managedmcpservers) for wildcard matching, precedence rules, and built-in connector defaults.
42704270
42714271> [!WARNING]
42724272>
from line 4278
42784278
42794279To make these approvals expire, set [`mcpScheduledTaskApprovalLifetimeDays`](#mcpscheduledtaskapprovallifetimedays) to a whole number of days from `1` to `3650`. With a value of `30`, the option reads **Allow for 30 days**, the approval lasts 30 days from the moment the user chooses it, and after that the task asks again. Set the value comfortably longer than the time between a task's runs. The key requires Claude Desktop 2.7032.0 or later. Add it after your devices run that release.
42804280
4281The key's values:
4281`mcpScheduledTaskApprovalLifetimeDays` takes these values:
42824282
42834283* **Unset (default):** approvals never expire. The prompt offers the option, and stored approvals are used, only while [`mcpPersistentAlwaysAllowEnabled`](#mcppersistentalwaysallowenabled) is `true`.
42844284* **`1` to `3650`:** each approval lasts that many days. The prompt offers the option even while `mcpPersistentAlwaysAllowEnabled` is `false`.
from line 4286
42864286
42874287In Code sessions, an allow rule already in Claude Code's own settings files keeps allowing the tool even while `mcpPersistentAlwaysAllowEnabled` is `false`, until someone removes it.
42884288
4289`mcpScheduledTaskApprovalLifetimeDays` also limits a scheduled Cowork task's [approval to delete files in a folder](https://claude.com/docs/third-party/claude-desktop/scheduled-tasks.md#approvals-that-last-across-runs). It lasts the number of days you set, or 30 days while the key is unset. At `0`, or while the key is unset and `mcpPersistentAlwaysAllowEnabled` is `false`, the prompt doesn't offer it and stored approvals aren't used.
4289`mcpScheduledTaskApprovalLifetimeDays` also limits a scheduled Cowork task's [approval to delete files in a folder](https://claude.com/docs/third-party/claude-desktop/scheduled-tasks.md#approvals-that-last-across-runs). That approval lasts the number of days you set, or 30 days while the key is unset. At `0`, or while the key is unset and `mcpPersistentAlwaysAllowEnabled` is `false`, the prompt doesn't offer that approval and stored approvals aren't used.
42904290
42914291The time limit doesn't cover:
42924292
42934293* **Folder access, browser, and other built-in tool approvals:** these approvals never expire.
4294* **Account-wide grants in Cowork:** the account-wide **Always allow** and **Allow for all tasks** grants never expire. Of the two keys, `mcpPersistentAlwaysAllowEnabled` affects them. While `mcpScheduledTaskApprovalLifetimeDays` is set, scheduled runs don't use an **Allow for all tasks** approval for a [plugin's own server](https://claude.com/docs/third-party/claude-desktop/extensions.md#approvals-that-users-keep-for-a-plugin-server).
4294* **Account-wide grants in Cowork:** the account-wide **Always allow** and **Allow for all tasks** grants never expire. Of `mcpScheduledTaskApprovalLifetimeDays` and `mcpPersistentAlwaysAllowEnabled`, the second affects these grants. While `mcpScheduledTaskApprovalLifetimeDays` is set, scheduled runs don't use an **Allow for all tasks** approval for a [plugin's own server](https://claude.com/docs/third-party/claude-desktop/extensions.md#approvals-that-users-keep-for-a-plugin-server).
42954295* **Claude Code allow rules in Code sessions:** an allow rule in Claude Code's own settings files, such as one saved when a user chose **Always allow** before the key was set, keeps allowing the tool, even with a value of `0`, until someone removes it. For a scheduled task, look in the project's `.claude/settings.local.json` file.
42964296
No line in this hunk matches that.