For the complete documentation index, see llms.txt. A markdown version of this page is at /reference/tools/tool-configuration/claude-code/index.md.

claude-code

Claude Code works on a workstation with no configuration. This is for when you want MCP servers, your own settings, or to change a default.

Install the claude-code devtool and Claude Code is ready to use, with the defaults listed under Claude Code defaults. You do not need a toolconfig for them.

Add a toolconfig when you want more:

toolconfigs:
  - id: claude-code
    name: claude-code
    config:
      mcpServers:
        linear:
          type: http
          url: https://mcp.linear.app/mcp

That gives every developer on the workstation the Linear MCP server, in both the terminal claude and the editor panels. The rest of this page covers MCP servers in full, your own settings, changing a default, claude.ai connectors, and the field list.

MCP servers

mcpServers is a map of server name to definition. MCP servers for coding agents explains where Ringleader adds them and how to sign in to one.

FieldTypeDescription
typestringhttp, sse, or stdio. Defaults to stdio when command is set, otherwise http.
urlstringRequired for http and sse.
headersobjectHeader name to value, for http/sse. May carry secret references.
commandstringRequired for stdio.
argsarray of stringArguments for stdio.
envobjectEnvironment for a stdio server. May carry secret references.
toolconfigs:
  - id: claude-code
    name: claude-code
    config:
      mcpServers:
        linear:
          type: http
          url: https://mcp.linear.app/mcp
        github:
          type: http
          url: https://api.githubcopilot.com/mcp/
          headers:
            Authorization: "Bearer ${secret:gh-token/token}"

Servers are applied the first time the workstation sets itself up and again only when the declared set changes, so a login you completed interactively (with /mcp in Claude) is not disturbed by a routine re-apply. When the set changes, each declared server is re-added and any server Ringleader previously added that you have since removed is removed. Servers you added yourself are never touched. An empty mcpServers: {} is valid: manage zero servers, which removes the ones Ringleader added.

Settings

Claude Code reads two settings files, and this toolconfig can write both:

  • settings is the user layer, ~/.claude/settings.json, owned by the login user. Ringleader writes only the keys you declare and leaves every other key alone, so a setting a developer changed inside Claude Code survives every configuration pass. Remove a key from your declaration and it is removed from the file on the next pass.
  • managedSettings is the managed layer, /etc/claude-code/managed-settings.json, owned by root. It is the same file a corporate device-management policy would write, it takes precedence over the user layer, and Ringleader writes it in full.

Put a preference in settings and a rule in managedSettings.

Claude Code defaults

Ringleader writes its Claude Code defaults into the managed layer. Claude Code defaults lists them and the key that sets each one. To change a default, set its key in managedSettings, and your value replaces Ringleader’s.

claude.ai connectors

claudeAiConnectors: deny writes disableClaudeAiConnectors: true and disableSideloadFlags: true into the managed layer. claude.ai connectors in Claude Code shows an example and explains what each key does.

Workspace trust

Folders in sources[].path and trustedFolders are pre-trusted for the CLI, so it never opens with a trust prompt on the code the workstation exists to work on. Ringleader merges those flags into Claude’s own state file; a folder already trusted is left alone.

config fields

FieldTypeDescription
mcpServersobjectMCP servers to add at user scope, as above.
settingsobjectThe user settings layer; only the keys you declare are managed.
managedSettingsobjectThe managed settings layer, written in full, root-owned.
claudeAiConnectorsstringallow (the default) or deny: whether the signed-in account’s claude.ai connectors may be used, as above. allow writes nothing. Any other value fails the toolconfig.

Notes

  • mcpServers needs the claude CLI on the workstation; declare the claude-code devtool or the apply step fails with a clear message.
  • Secret-bearing headers and environment values reach Claude through the environment and are never written into a script or a diagnostic record.
  • The editor panels ignore the CLI’s managed settings. To set panel behavior, use the vscode-web or vscode-server toolconfig.