Configuration reference changedthird-party/claude-desktop/configuration
Nearest release: v2.1.329, published 8 hours before 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 20 Nov 2026 03:15 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 20 Nov 2026 03:37 UTC.
Upstream edited
Recorded here
Lines+148added
Lines−75removed
From line
75
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits86to this page, all time
#### `sshHostSandboxUnavailable` #### `autoModeRules`
The whole hunk
from line 75, old and new numbered
/
from line 75
7575| [`sshConfigs`](#sshconfigs) | SSH connections | Capabilities | Admin Console |
7676| [`sshClientPath`](#sshclientpath) | SSH client program | Capabilities | Admin Console |
7777| [`sshTransport`](#sshtransport) | SSH connection engine | Capabilities | Admin Console |
78| [`sshHostSandboxUnavailable`](#sshhostsandboxunavailable) | When the sandbox cannot start on an SSH host | Capabilities | Admin Console |
7879| [`remoteFileDownloads`](#remotefiledownloads) | SSH and WSL file downloads | Capabilities | Admin Console |
7980| [`chatTabEnabled`](#chattabenabled) | Allow Chat | Capabilities | Admin Console |
8081| [`desktopHome`](#desktophome) | Desktop home | Capabilities | Admin Console |
from line 85
8485| [`blockReadsOutsideWorkingDirectories`](#blockreadsoutsideworkingdirectories) | Block reads outside working directories | Capabilities | Admin Console |
8586| [`autoModeEnabled`](#automodeenabled) | Allow Auto mode | Capabilities | Admin Console |
8687| [`autoModeClassifierModel`](#automodeclassifiermodel) | Auto mode classifier model | Capabilities | Admin Console |
88| [`autoModeRules`](#automoderules) | Auto mode rules | Capabilities | Admin Console |
8789| [`disableBypassPermissionsMode`](#disablebypasspermissionsmode) | Disable bypass permissions mode | Capabilities | Admin Console |
8890| [`disableBundledSkills`](#disablebundledskills) | Disable bundled skills and workflows | Capabilities | Admin Console |
8991| [`skillCreationEnabled`](#skillcreationenabled) | Allow user-created skills | Capabilities | Admin Console |
from line 347
345347>
346348> SOCKS proxies and embedded credentials (`user:pass@`) are rejected.
347349>
348> It is an app-behavior key. If your MDM profile holds only such keys, a user's or bootstrap server's value for one is ignored: put all you use there.
350> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
349351
350352***
351353
from line 373
371373>
372374> What `egressProxyUrl` exempts from its proxy skips the PAC file too.
373375>
374> It is an app-behavior key. If your MDM profile holds only such keys, a user's or bootstrap server's value for one is ignored: put all you use there.
376> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
375377
376378***
377379
from line 450
448450> [accordion] More detail
449451>
450452> * **`browser`:** register the redirect URI `http://127.0.0.1:<port>/callback` with your identity provider (for Entra, `http://127.0.0.1/callback`).
451> * **`broker`:** uses Web Account Manager on Windows or Company Portal on macOS, and does not work on Linux. It can satisfy Conditional Access policies that require a compliant or managed device, or token protection.
453> * **`broker`:** uses Web Account Manager on Windows or Company Portal on macOS, and does not work on Linux. It can satisfy Conditional Access policies requiring a compliant or managed device, or token protection.
452454>
453> `broker` needs Microsoft Entra ID, with the `issuer` in `inferenceGatewayOidc` set to `https://login.microsoftonline.com/{tenant-id}/v2.0`. Add the redirect URIs listed under [Register the Entra ID application](https://claude.com/docs/third-party/claude-desktop/entra-broker.md#register-the-entra-id-application).
455> `broker` needs Microsoft Entra ID, with the `issuer` in `inferenceGatewayOidc` set to `https://login.microsoftonline.com/{tenant-id}/v2.0`. Add the redirect URIs from [Register the Entra ID application](https://claude.com/docs/third-party/claude-desktop/entra-broker.md#register-the-entra-id-application).
454456
455457***
456458
from line 554
552554>
553555> > [accordion] More detail
554556> >
555> > If a callback is rejected for a referrer mismatch, the app log names the rejected host. Add that hostname here.
557> > The app log names a host rejected for a referrer mismatch. Add that hostname here.
556558
557559***
558560
from line 569
567569> [accordion] More detail
568570>
569571> * **`browser`:** register the redirect URI `http://127.0.0.1:<port>/callback` with your identity provider (for Entra, `http://127.0.0.1/callback`).
570> * **`broker`:** uses Web Account Manager on Windows or Company Portal on macOS, and does not work on Linux. It can satisfy Conditional Access policies that require a compliant or managed device, or token protection.
572> * **`broker`:** uses Web Account Manager on Windows or Company Portal on macOS, and does not work on Linux. It can satisfy Conditional Access policies requiring a compliant or managed device, or token protection.
571573>
572> `broker` needs Microsoft Entra ID, with the `issuer` in `inferenceIdpOidc` set to `https://login.microsoftonline.com/{tenant-id}/v2.0`. Add the redirect URIs listed under [Register the Entra ID application](https://claude.com/docs/third-party/claude-desktop/entra-broker.md#register-the-entra-id-application).
574> `broker` needs Microsoft Entra ID, with the `issuer` in `inferenceIdpOidc` set to `https://login.microsoftonline.com/{tenant-id}/v2.0`. Add the redirect URIs from [Register the Entra ID application](https://claude.com/docs/third-party/claude-desktop/entra-broker.md#register-the-entra-id-application).
573575
574576***
575577
from line 665
663665>
664666> > [accordion] More detail
665667> >
666> > If a callback is rejected for a referrer mismatch, the app log names the rejected host. Add that hostname here.
668> > The app log names a host rejected for a referrer mismatch. Add that hostname here.
667669
668670***
669671
from line 677
675677
676678> [accordion] More detail
677679>
678> With pings arriving (SSE `ping` events or `:` comment lines), sessions accept at least about five minutes of them, then wait this many seconds more. With no pings, a silent response still fails after about 5 minutes whatever this value, so make the gateway send them.
680> With pings arriving (SSE `ping` events or `:` comment lines), sessions accept at least about five minutes of them, then wait this many seconds more. With no pings, each attempt at a silent response fails a minute or so after this many seconds. An attempt with no response headers fails after 15 minutes at most. On the Code tab, 16 minutes of silence ends the session, so values above 900 add nothing there.
679681>
680682> While this key is set, it takes priority over `CLAUDE_STREAM_IDLE_TIMEOUT_MS` in Claude Code's managed settings for sessions the app starts.
681683
from line 693
691693
692694> [accordion] More detail
693695>
694> Off unless you set it to `true`. While off, Auto mode's built-in safety check reviews risky actions.
696> On unless you set it to `false`. A Claude apps gateway's `gateway.yaml` can't set it. While off, Auto mode's built-in check reviews risky actions.
695697>
696> This setting goes away when Claude Code drops that built-in check. After that, only turning off **Allow Auto mode** avoids the provider's check.
698> This setting goes away when Claude Code drops that check. After that, only turning off Auto mode (**Allow Auto mode**) avoids the provider's check.
697699>
698> When on, each Auto mode request carries one more `anthropic-beta` value and a `safeguards` field. The field describes the session, including Claude Code's `autoMode` settings, permission rules, folder paths, a user name and Git state. Your gateway must forward both unchanged, and return `safeguard_results` and tool-use IDs unchanged. If it returns an error such as 401 or 500, every Auto mode turn fails. Turn this off and have users restart the app.
700> While on, Auto mode requests carry a `safeguards` field with session details such as rules, folder paths and a user name. They add one `anthropic-beta` value, which a session keeps sending after it leaves Auto mode.
699701>
700> Claude Code's gateway mode ignores this and sends these details by default.
702> Your gateway must pass both on, and `safeguard_results` and tool-use IDs back, unchanged. If it drops the result or answers 400, 403, 422, 500 or 502, the built-in check takes over. Other errors or an unreadable result can break every turn: turn this off and have users restart the app.
701703
702704***
703705
from line 950
948950> [accordion] More detail
949951>
950952> * **`browser`:** register the redirect URI `http://127.0.0.1:<port>/callback` with your identity provider (for Entra, `http://127.0.0.1/callback`).
951> * **`broker`:** uses Web Account Manager on Windows or Company Portal on macOS, and does not work on Linux. It can satisfy Conditional Access policies that require a compliant or managed device, or token protection.
953> * **`broker`:** uses Web Account Manager on Windows or Company Portal on macOS, and does not work on Linux. It can satisfy Conditional Access policies requiring a compliant or managed device, or token protection.
952954>
953> `broker` needs Microsoft Entra ID, with the `issuer` in `inferenceVertexWorkforceOidc` set to `https://login.microsoftonline.com/{tenant-id}/v2.0`. Add the redirect URIs listed under [Register the Entra ID application](https://claude.com/docs/third-party/claude-desktop/entra-broker.md#register-the-entra-id-application).
955> `broker` needs Microsoft Entra ID, with the `issuer` in `inferenceVertexWorkforceOidc` set to `https://login.microsoftonline.com/{tenant-id}/v2.0`. Add the redirect URIs from [Register the Entra ID application](https://claude.com/docs/third-party/claude-desktop/entra-broker.md#register-the-entra-id-application).
954956
955957***
956958
from line 1008
10061008>
10071009> > [accordion] More detail
10081010> >
1009> > If a callback is rejected for a referrer mismatch, the app log names the rejected host. Add that hostname here.
1011> > The app log names a host rejected for a referrer mismatch. Add that hostname here.
10101012
10111013***
10121014
from line 1104
11021104>
11031105> * **`device-code`:** shows a code to enter at microsoft.com/devicelogin. The app registration must have **Allow public client flows** enabled.
11041106> * **`browser`:** register `http://127.0.0.1/callback` under **Mobile and desktop applications**. It works with **Allow public client flows** disabled. Conditional Access policies that block device-code sign-in do not affect it.
1105> * **`broker`:** uses Web Account Manager on Windows or Company Portal on macOS, and does not work on Linux. It can satisfy Conditional Access policies that require a compliant or managed device, or token protection. Add the redirect URIs listed under [Register the Entra ID application](https://claude.com/docs/third-party/claude-desktop/entra-broker.md#register-the-entra-id-application).
1107> * **`broker`:** uses Web Account Manager on Windows or Company Portal on macOS, and does not work on Linux. It can satisfy Conditional Access policies requiring a compliant or managed device, or token protection. Add the redirect URIs from [Register the Entra ID application](https://claude.com/docs/third-party/claude-desktop/entra-broker.md#register-the-entra-id-application).
11061108
11071109***
11081110
from line 1171
11691171>
11701172> Each entry is a model ID or an object:
11711173>
1172> ```json theme={null} theme={null}
1174> ```json theme={null}
11731175> [
11741176> {"name": "claude-sonnet-5",
11751177> "supports1m": true},
from line 1514
15121514
15131515***
15141516
1517#### `sshHostSandboxUnavailable`
1518
1519enum
1520
1521Beta (The feature that the key configures is in beta.)
1522
1523Since 6.28899.2
1524
1525**When the sandbox cannot start on an SSH host.** Choose whether sessions run without the sandbox or don’t run. By default, they run with a warning.
1526
1527One of: `warn`, `refuse`
1528
1529[Guide for this setting](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md)
1530
1531> [accordion] More detail
1532>
1533> `refuse` stops new SSH sessions where the sandbox cannot start, and all on Windows hosts.
1534>
1535> In an administrator’s configuration, it applies unless `coworkEgressAllowedHosts` holds `*` and `allowedWorkspaceFolders` is unset. Unreadable values count as `refuse`.
1536>
1537> It has no effect where a host’s launcher locates Claude Code. Where a host’s managed settings replace yours, it applies only if settings there turn a sandbox on. For both, set `sandbox.enabled` and `sandbox.failIfUnavailable` in the host’s managed settings.
1538>
1539> It does not protect against the host’s account, repository settings, hooks, MCP servers, `!` commands, or approved terminal commands.
1540>
1541> If a server or the Admin Console delivers configuration, set it there, not in MDM.
1542
1543***
1544
15151545#### `remoteFileDownloads`
15161546
15171547enum
from line 1645
16151645> * **Ports:** an entry other than `*` can end in `:port`, which only Code ignores. Update all devices first: older versions then block every host in Cowork's shell.
16161646> * **Plugins:** command-line tools also reach hosts their plugin declares.
16171647> * **Built-in browser:** a list other than `*`, even an empty one, limits Claude's browsing.
1618> * **Code:** a list other than `*` locks Claude Code's sandbox on, for shell commands only, where it runs (see `allowedWorkspaceFolders`). So does an unset list, except where a local file is the only configuration and `blockReadsOutsideWorkingDirectories` is off. Claude Code's own managed settings take priority by default.
1648> * **Code:** a list other than `*` locks Claude Code's sandbox on, for shell commands only, where it runs (see `allowedWorkspaceFolders`). So does an unset list, except where a local file is the only configuration and `blockReadsOutsideWorkingDirectories` is off. Claude Code's own managed settings win by default.
16191649
16201650***
16211651
from line 1660
16301660> Claude can read and write in every listed folder unless its `mode` is `ro`. An empty list allows none.
16311661>
16321662> * **Paths:** `~` and these variables expand per user: `%OneDrive%`, `%OneDriveCommercial%`, `%OneDriveConsumer%`, `%APPDATA%`, `%LOCALAPPDATA%`, `%USERNAME%`, `%XDG_DOCUMENTS_DIR%`. An entry with any other variable, or an unset one, adds no folder.
1633> * **Code shell commands:** this key turns on Claude Code's sandbox on macOS, and on Linux and WSL2 where bubblewrap and socat work. There, most writes outside the list are refused, and most reads are not. Elsewhere, Windows included, only Claude's file tools follow the list. Claude Code's own managed settings take priority by default.
1663> * **Code shell commands:** this key turns on Claude Code's sandbox on macOS, and on Linux and WSL2 where bubblewrap and socat work. There, most writes outside the list are refused, and most reads are not. Elsewhere, Windows included, only Claude's file tools follow the list. Claude Code's own managed settings win by default.
16341664>
16351665> Do not list a home folder: it holds SSH keys and shell start-up files.
16361666
from line 1702
16721702> [accordion] More detail
16731703>
16741704> * **File tools** refuse most reads outside the session folder and any `allowedWorkspaceFolders`, in every permission mode.
1675> * **Shell commands:** where Claude Code's sandbox runs (see `allowedWorkspaceFolders`), most reads in the home folder and other user folders are refused. Elsewhere such reads ask for approval.
1705> * **Shell commands:** where Claude Code's sandbox runs (see `allowedWorkspaceFolders`), most reads in the home folder and other user folders are refused. Elsewhere, Claude Code asks for approval when it recognizes such a read. It cannot see what a running script or other program reads.
16761706> * **Users** can re-open folders, even their whole home folder, in their own Claude Code settings.
16771707>
16781708> The user's git configuration files stay readable, and they can hold credentials. If the app cannot download its Claude Code, sessions may run on an older copy without this block.
16791709>
1680> Claude Code's own managed settings take priority by default.
1710> Claude Code's own managed settings win by default.
16811711
16821712***
16831713
from line 1721
16911721>
16921722> Unless it is `false`, new Code sessions normally start in Auto mode.
16931723>
1694> By default on a gateway, Auto mode's check calls `claude-sonnet-5`. Your gateway must accept that ID and the `anthropic-beta` value `context-1m-2025-08-07`. If you set `inferenceModels`, list that ID, or an Opus or older Sonnet entry tagged with its tier, there and in any group's model list. If not, Auto mode can block actions it would normally allow.
1724> On a gateway, Auto mode's built-in check calls `claude-sonnet-5` by default. **Server-side Auto mode checks** says when it runs. Your gateway must accept that ID and the `anthropic-beta` value `context-1m-2025-08-07`. If you set `inferenceModels`, list that ID, or an Opus or older Sonnet entry tagged with its tier, there and in any group's model list. If not, Auto mode can block actions it would normally allow.
16951725>
1696> In Cowork, while Auto mode runs, each shell command waits for this check (usually one more request). If no check can be made, the command is refused. On a model that can't run Auto mode, the task switches to Manually approve and shell commands skip this check. A plugin whose start hook sends a task's first message turns this check off for that task.
1726> In Cowork's Auto mode, each shell command waits for a check. If no check can be made, the command is refused. On a model that can't run Auto mode, the task switches to Manually approve and shell commands skip this check. A plugin whose start hook sends a task's first message turns this check off for that task.
16971727
16981728***
16991729
from line 1743
17131743
17141744***
17151745
1746#### `autoModeRules`
1747
1748object
1749
1750Consent required (A value that a bootstrap server delivers applies only after the user approves it, unless machine-scoped device management set that server's address. The trustBootstrapDelivery key overrides that default. A value set in an MDM profile, the local configuration file or the Enterprise Admin Console needs no approval.)
1751
1752Since 6.28899.2
1753
1754**Auto mode rules.** Tell Auto mode what your organization trusts, and add rules for what it blocks and allows in Cowork and Code.
1755
1756> [accordion] More detail
1757>
1758> Written as the value of [`autoMode`](https://code.claude.com/docs/en/auto-mode-config) in Claude Code's settings, in at most 16,384 characters.
1759>
1760> * **`$defaults`:** start each list with it to keep the built-in rules. A list without it can replace them.
1761> * **Other lists:** these rules join the app's own, the user's, and those in the device's Claude Code managed settings. An `allow` line can overrule a `soft_deny` line, but never a `hard_deny` line.
1762> * **Not a boundary:** a model applies these rules. To block a tool for certain, use `disabledBuiltinTools`.
1763> * **A malformed value,** such as an unknown member or an entry that is not text, turns Auto mode off until you correct it.
1764
1765> [accordion] Child attributes (5)
1766>
1767> **allow** `string[]`
1768>
1769> Exceptions to the soft deny rules.
1770>
1771> **soft\_deny** `string[]`
1772>
1773> Actions that Auto mode blocks unless the user asked for them.
1774>
1775> **hard\_deny** `string[]`
1776>
1777> Actions that Auto mode blocks even when the user asked for them.
1778>
1779> **environment** `string[]`
1780>
1781> The hosts, repositories, and services that Auto mode trusts.
1782>
1783> **classifyAllShell** `boolean`
1784>
1785> In Auto mode, suspend permission rules that allow Bash or PowerShell commands, so more of Claude’s commands wait for the check.
1786
1787***
1788
17161789#### `disableBypassPermissionsMode`
17171790
17181791booleanSince 1.46388.1
from line 1850
17771850
17781851> [accordion] More detail
17791852>
1780> Nothing is deleted: turning it back on restores the hidden marketplaces.
1853> Turning it back on restores those marketplaces. Off also stops plugins kept in skills folders, with their hooks and servers, and /plugin-authoring.
17811854>
17821855> * It does not limit Claude Code in a terminal.
1783> * Claude Code's own managed settings take priority by default. Restrict marketplaces in those settings as well.
1856> * Claude Code's own managed settings win by default. Restrict marketplaces in those settings as well.
17841857>
17851858> Applies only while the app runs in third-party mode. If users could otherwise sign in to Claude.ai on the device, also set `deploymentMode` to `3p`, or `disableDeploymentModeChooser`.
17861859
from line 1992
19191992>
19201993> `ask` also turns off the user's saved “always allow” choices for that tool. A scheduled task in Cowork waits at the prompt.
19211994>
1922> **Rules such as `Bash(curl *)`:** Claude Code's own managed settings take priority by default. A tool name such as `Bash` still applies. Update all devices first: an older version drops these rules, so the tool runs without a prompt.
1995> **Rules such as `Bash(curl *)`:** Claude Code's own managed settings win by default. A tool name such as `Bash` still applies. Update all devices first: an older version drops these rules, so the tool runs without a prompt.
19231996>
19241997> An unusable entry is dropped and recorded as a configuration error.
19251998
from line 2048
19752048>
19762049> Under `allowedWorkspaceFolders`, a WSL session needs bubblewrap and socat in the distro, and its shell commands can read the Windows drives under `/mnt`. Claude Code's server-managed settings, among others, can remove its sandbox and `blockReadsOutsideWorkingDirectories`: see the Path help of `allowedWorkspaceFolders`.
19772050>
1978> It is an app-behavior key. If your MDM profile holds only such keys, a user's or bootstrap server's value for one is ignored: put all you use there.
2051> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
19792052
19802053***
19812054
from line 2069
19962069>
19972070> To stop users bypassing the launcher, set this key in your MDM profile, with `disableDeploymentModeChooser` if that profile sets more than app-behavior keys.
19982071>
1999> It is an app-behavior key. If your MDM profile holds only such keys, a user's or bootstrap server's value for one is ignored: put all you use there.
2072> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
20002073
20012074***
20022075
from line 2328
22552328>
22562329> Values of an entry's `toolPolicy`, per tool name:
22572330>
2258> * `allow`: pre-approves the tool, except in Code and for built-in connector tools that send or cannot be undone.
2331> * `allow`: pre-approves the tool, except in Code and for built-in connector tools that send or cannot be undone. In Automatically approve, the safety check still judges each call.
22592332> * `ask`: every call needs approval, with no option to always allow. A scheduled Cowork task waits at the prompt.
22602333> * `blocked`: the tool is removed from the session.
22612334>
2262> A name can contain `*`, as in `read_*`. When several wildcards match, the strictest applies. An exact name normally takes priority over a wildcard. To block by default, use `"*": "blocked"` plus exact `allow` entries.
2335> A name can contain `*`, as in `read_*`. When several wildcards match, the strictest applies. An exact name normally takes priority over a wildcard. To block by default, use `"*": "blocked"` plus exact `allow` entries. On a plugin server that Claude Code runs, the stricter of the two applies.
22632336
22642337> [accordion] Child attributes
22652338>
from line 2444
23712444> >
23722445> > > [accordion] More detail
23732446> > >
2374> > > The helper script normally runs with `CLAUDE_CODE_MCP_SERVER_NAME` set to this entry's `name`, so one script can serve several servers. Put the variable in double quotes, compare it with the names you expect, and do not pass it to another command.
2447> > > The helper normally runs with `CLAUDE_CODE_MCP_SERVER_NAME` set to this entry's `name`, so one script can serve several servers. Put the variable in double quotes, compare it with the names you expect, and do not pass it to another command.
23752448> >
23762449> > **headersHelperArgs** `string[]`
23772450> >
from line 2454
23812454> >
23822455> > > [accordion] More detail
23832456> > >
2384> > > * On every platform, an argument cannot be empty or contain a double quote, a percent sign or a control character.
2457> > > * An argument cannot be empty or contain a double quote, a percent sign or a control character.
23852458> > > * Do not put secrets in arguments. They are visible in the app log and to other processes on the device.
2386> > > * Have the script fail when a needed argument is missing. An app version that does not know this setting passes none.
2459> > > * Have the script fail when a needed argument is missing. A version that does not know this setting passes none.
23872460> >
23882461> > **headersHelperTtlSec** `integer`
23892462> >
from line 2498
24252498> > >
24262499> > > * A local (`stdio`) entry can repeat `command`, `args`, `env`, `envHelper` and `envHelperArgs`.
24272500> > > * A remote or web search entry can repeat `headersHelper` and `headersHelperArgs`. If it gives `headersHelper` here, it needs its own too.
2428> > > * A mistake under any operating system drops the server on all of them.
2429> > > * Older versions ignore this setting and use the entry's own values. They and some later versions drop a local entry with no `command` of its own. Until all devices are updated, put the Windows values in the entry itself.
2501> > > * A mistake under any operating system drops the server on all.
2502> > > * Older versions ignore this setting and use the entry's values. They and some later versions drop a local entry with no `command` of its own. Until all devices are updated, put the Windows values in the entry itself.
24302503> >
24312504> > > [accordion] Child attributes (3)
24322505> > >
from line 2613
25402613> > > > > * It must exit with code `0` within 30 seconds.
25412614> > > > > * It runs with no arguments each time the server connects and each time its sign-in is renewed in the background. Choose a script that does not prompt the user.
25422615> > > > >
2543> > > > > The helper script normally runs with `CLAUDE_CODE_MCP_SERVER_NAME` set to this entry's `name`, so one script can serve several servers. Put the variable in double quotes, compare it with the names you expect, and do not pass it to another command.
2616> > > > > The helper normally runs with `CLAUDE_CODE_MCP_SERVER_NAME` set to this entry's `name`, so one script can serve several servers. Put the variable in double quotes, compare it with the names you expect, and do not pass it to another command.
25442617> > > >
25452618> > > > **oauth.authorizationServer** `string[]`
25462619> > > >
from line 2643
25702643> > > >
25712644> > > > > [accordion] More detail
25722645> > > > >
2573> > > > > `broker` signs in through the OS identity broker: Web Account Manager on Windows, the Company Portal SSO extension on macOS. It can satisfy Conditional Access policies that require a compliant or managed device, or token protection.
2646> > > > > `broker` signs in through the OS identity broker: Web Account Manager on Windows, the Company Portal SSO extension on macOS. It can satisfy Conditional Access policies requiring a compliant or managed device, or token protection.
25742647> > > > >
25752648> > > > > * It requires `tenantId`, `clientId` and `scope`, and an Entra-registered device.
25762649> > > > > * The app registration must list the [broker redirect URIs](https://claude.com/docs/third-party/claude-desktop/entra-broker.md).
from line 2691
26182691> > > >
26192692> > > > > [accordion] More detail
26202693> > > > >
2621> > > > > If a callback is rejected for a referrer mismatch, the app log names the rejected host. Add that hostname here.
2694> > > > > The app log names a host rejected for a referrer mismatch. Add that hostname here.
26222695> > >
26232696> > > > [tab] hosted
26242697> > > >
from line 2723
26502723> >
26512724> > > [accordion] More detail
26522725> > >
2653> > > The helper script normally runs with `CLAUDE_CODE_MCP_SERVER_NAME` set to this entry's `name`, so one script can serve several servers. Put the variable in double quotes, compare it with the names you expect, and do not pass it to another command.
2726> > > The helper normally runs with `CLAUDE_CODE_MCP_SERVER_NAME` set to this entry's `name`, so one script can serve several servers. Put the variable in double quotes, compare it with the names you expect, and do not pass it to another command.
26542727> >
26552728> > **headersHelperArgs** `string[]`
26562729> >
from line 2733
26602733> >
26612734> > > [accordion] More detail
26622735> > >
2663> > > * On every platform, an argument cannot be empty or contain a double quote, a percent sign or a control character.
2736> > > * An argument cannot be empty or contain a double quote, a percent sign or a control character.
26642737> > > * Do not put secrets in arguments. They are visible in the app log and to other processes on the device.
2665> > > * Have the script fail when a needed argument is missing. An app version that does not know this setting passes none.
2738> > > * Have the script fail when a needed argument is missing. A version that does not know this setting passes none.
26662739> >
26672740> > **headersHelperTtlSec** `integer`
26682741> >
from line 2755
26822755> > >
26832756> > > * A local (`stdio`) entry can repeat `command`, `args`, `env`, `envHelper` and `envHelperArgs`.
26842757> > > * A remote or web search entry can repeat `headersHelper` and `headersHelperArgs`. If it gives `headersHelper` here, it needs its own too.
2685> > > * A mistake under any operating system drops the server on all of them.
2686> > > * Older versions ignore this setting and use the entry's own values. They and some later versions drop a local entry with no `command` of its own. Until all devices are updated, put the Windows values in the entry itself.
2758> > > * A mistake under any operating system drops the server on all.
2759> > > * Older versions ignore this setting and use the entry's values. They and some later versions drop a local entry with no `command` of its own. Until all devices are updated, put the Windows values in the entry itself.
26872760> >
26882761> > > [accordion] Child attributes (3)
26892762> > >
from line 2848
27752848> > > * Its values take priority over `env`.
27762849> > > * If the script fails, the server does not start.
27772850> > > * A script with nothing to set must print `{}`. Empty output counts as a failure.
2778> > > * The helper script normally runs with `CLAUDE_CODE_MCP_SERVER_NAME` set to this entry's `name`, so one script can serve several servers. Put the variable in double quotes, compare it with the names you expect, and do not pass it to another command.
2851> > > * The helper normally runs with `CLAUDE_CODE_MCP_SERVER_NAME` set to this entry's `name`, so one script can serve several servers. Put the variable in double quotes, compare it with the names you expect, and do not pass it to another command.
27792852> >
27802853> > **envHelperArgs** `string[]`
27812854> >
from line 2858
27852858> >
27862859> > > [accordion] More detail
27872860> > >
2788> > > * On every platform, an argument cannot be empty or contain a double quote, a percent sign or a control character.
2861> > > * An argument cannot be empty or contain a double quote, a percent sign or a control character.
27892862> > > * Do not put secrets in arguments. They are visible in the app log and to other processes on the device.
2790> > > * Have the script fail when a needed argument is missing. An app version that does not know this setting passes none.
2863> > > * Have the script fail when a needed argument is missing. A version that does not know this setting passes none.
27912864> >
27922865> > **envHelperTtlSec** `integer` (default: 300)
27932866> >
from line 2884
28112884> > >
28122885> > > * A local (`stdio`) entry can repeat `command`, `args`, `env`, `envHelper` and `envHelperArgs`.
28132886> > > * A remote or web search entry can repeat `headersHelper` and `headersHelperArgs`. If it gives `headersHelper` here, it needs its own too.
2814> > > * A mistake under any operating system drops the server on all of them.
2815> > > * Older versions ignore this setting and use the entry's own values. They and some later versions drop a local entry with no `command` of its own. Until all devices are updated, put the Windows values in the entry itself.
2887> > > * A mistake under any operating system drops the server on all.
2888> > > * Older versions ignore this setting and use the entry's values. They and some later versions drop a local entry with no `command` of its own. Until all devices are updated, put the Windows values in the entry itself.
28162889> >
28172890> > > [accordion] Child attributes (3)
28182891> > >
from line 2948
28752948
28762949> [accordion] More detail
28772950>
2878> When off, persistent approvals that users saved earlier in Chat and Cowork stop applying. Scheduled tasks also stop offering and reusing them, unless `mcpScheduledTaskApprovalLifetimeDays` is 1 or more.
2951> When off, persistent approvals that users saved earlier in Chat and Cowork stop applying. Scheduled tasks also stop offering and reusing them, unless `mcpScheduledTaskApprovalLifetimeDays` is 1 or more. In the built-in browser, Claude asks again to read or act on a saved private-network site, but still opens it unasked.
28792952>
28802953> In Code, any allow rule in a user's or a project's Claude Code settings keeps allowing a tool until it is removed. So do hooks in its settings or plugins.
28812954
from line 2982
29092982>
29102983> A `false` from an MDM profile limits local `managedMcpServers` entries to those in that same profile, exactly as written there.
29112984>
2912> Claude Code's own managed settings take priority by default.
2985> Claude Code's own managed settings win by default.
29132986
29142987***
29152988
from line 2998
29252998> * **Once set:** no entry allows a plugin's local (`stdio`) server, and servers that a user or a project configures for Claude Code are not connected.
29262999> * **`policy-only`:** a `managedMcpServers` entry with that `transport` does not allow its server. List the server's own URL here too.
29273000>
2928> Claude Code's own managed settings take priority by default.
3001> Claude Code's own managed settings win by default.
29293002
29303003> [accordion] Child attributes (1)
29313004>
from line 3022
29493022> * **Not affected:** `managedMcpServers` and servers from the org-plugins directory on the device.
29503023> * **Any other form**, such as `serverName`, is reported and blocks every plugin's remote server.
29513024>
2952> Claude Code's own managed settings take priority by default.
3025> Claude Code's own managed settings win by default.
29533026
29543027> [accordion] Child attributes (1)
29553028>
from line 3270
31973270
31983271> [accordion] More detail
31993272>
3200> `process.owner` (the OS login name) is always sent to your collector. Set it here to replace the value.
3273> `process.owner` (the OS login name) is always sent to your collector. Set it here to replace the value. A `service.name` set here applies to Code sessions only.
32013274
32023275***
32033276
from line 3356
32833356>
32843357> On Windows the notice covers installs from the MSIX package, not the Microsoft Store version or the .exe installer. The switch to the newer version may end the Cowork tasks of other users signed in on that device.
32853358>
3286> It is an app-behavior key. If your MDM profile holds only such keys, a user's or bootstrap server's value for one is ignored: put all you use there.
3359> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
32873360
32883361***
32893362
from line 3375
33023375> * **Windows:** Claude may not reopen, and other signed-in users' Cowork tasks may end.
33033376> * If it stays closed, scheduled tasks and background work stop until a user opens it.
33043377>
3305> It is an app-behavior key. If your MDM profile holds only such keys, a user's or bootstrap server's value for one is ignored: put all you use there.
3378> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
33063379
33073380***
33083381
from line 3394
33213394> * The restart waits while Claude is mid-task on the device.
33223395> * On macOS with no number set, it also waits up to 72 hours while the keychain is locked.
33233396>
3324> It is an app-behavior key. If your MDM profile holds only such keys, a user's or bootstrap server's value for one is ignored: put all you use there.
3397> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
33253398
33263399***
33273400
from line 3413
33403413>
33413414> An update usually installs sooner, after 10 minutes with no window in use or task running.
33423415>
3343> It is an app-behavior key. If your MDM profile holds only such keys, a user's or bootstrap server's value for one is ignored: put all you use there.
3416> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
33443417
33453418***
33463419
from line 3429
33563429>
33573430> If an MDM profile sets `bootstrapUrl` to a `config.claude.com` URL and leaves `bootstrapEnabled` on, the app reads the feed from `releases.claude.com` whatever this key says. Turn this key on anyway: an older version reads it from there only when this key is on.
33583431>
3359> It is an app-behavior key. If your MDM profile holds only such keys, a user's or bootstrap server's value for one is ignored: put all you use there.
3432> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
33603433
33613434***
33623435
from line 3450
33773450> * Users who sign in to Claude.ai follow `stable`, unless their organization manages Claude Desktop from the Admin Console.
33783451> * No effect on Linux or Microsoft Store installs.
33793452>
3380> It is an app-behavior key. If your MDM profile holds only such keys, a user's or bootstrap server's value for one is ignored: put all you use there.
3453> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
33813454
33823455***
33833456
from line 3468
33953468>
33963469> When an MDM profile that sets more than app-behavior keys first reaches a running app, the restart dialog can show with no countdown.
33973470>
3398> It is an app-behavior key. If your MDM profile holds only such keys, a user's or bootstrap server's value for one is ignored: put all you use there.
3471> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
33993472
34003473***
34013474
from line 3482
34093482>
34103483> A change that needs a restart starts the `relaunchEnforcementHours` countdown.
34113484>
3412> It is an app-behavior key. If your MDM profile holds only such keys, a user's or bootstrap server's value for one is ignored: put all you use there.
3485> If your MDM profile holds only app-behavior keys like this one, a user's or bootstrap server's value for one is ignored. Put all you use there.
34133486
34143487***
34153488
from line 3518
34453518
34463519> [accordion] More detail
34473520>
3448> Applies only in third-party mode. Deletion can start shortly after the app gets this configuration. Pinned sessions are not exempt. Opening an old chat or Cowork task without continuing it may not keep it.
3521> Applies only in third-party mode. Deletion can start soon after the app gets this configuration. Pinned sessions are not exempt. Opening an old chat or Cowork task without continuing it may not keep it.
34493522>
34503523> It does not delete, for example:
34513524>
from line 3543
34703543
34713544> [accordion] More detail
34723545>
3473> Applies only in third-party mode. Deletion can start shortly after the app gets this configuration. Pinned sessions are not exempt. Opening an old chat or Cowork task without continuing it may not keep it.
3546> Applies only in third-party mode. Deletion can start soon after the app gets this configuration. Pinned sessions are not exempt. Opening an old chat or Cowork task without continuing it may not keep it.
34743547>
34753548> It does not delete, for example:
34763549>
from line 3568
34953568
34963569> [accordion] More detail
34973570>
3498> Applies only in third-party mode. Deletion can start shortly after the app gets this configuration. Pinned sessions are not exempt. Opening an old chat or Cowork task without continuing it may not keep it.
3571> Applies only in third-party mode. Deletion can start soon after the app gets this configuration. Pinned sessions are not exempt. Opening an old chat or Cowork task without continuing it may not keep it.
34993572>
35003573> It does not delete, for example:
35013574>
from line 3981
39083981>
39093982> * If a `managedMcpServers` entry is for the same server (same URL, otherwise same name), the entry here is ignored. Put the locks in that entry's `toolPolicy`. On an operating system where that local (`stdio`) entry has no `command`, the entry here applies.
39103983> * Update all devices first: an older version ignores this list and enforces no locks.
3911> * Claude Code's own managed settings take priority by default.
3984> * Claude Code's own managed settings win by default.
39123985
39133986> [accordion] Child attributes (2)
39143987>
from line 3991
39183991>
39193992> **tools** `object[]`
39203993>
3921> Per-tool approval locks for this server.
3994> Per-tool approval locks for this server. A plugin’s own code can call a tool with no lock here without approval.
39223995>
39233996> > [accordion] Child attributes (2)
39243997> >
from line 4097
40244097>
40254098> > [accordion] More detail
40264099> >
4027> > If a callback is rejected for a referrer mismatch, the app log names the rejected host. Add that hostname here.
4100> > The app log names a host rejected for a referrer mismatch. Add that hostname here.
40284101
40294102***
40304103
No line in this hunk matches that.