Repository navigation
Description
Part of #18: one switch per project that turns claude.ai connectors off for its sessions. It's offered when the project is created and in its settings afterwards.
Sessions on a full Claude login get every connector their starter has connected on claude.ai, and the agent can use them without asking. Claude Code turns them off when ENABLE_CLAUDEAI_MCP_SERVERS is false (or 0, no, off). A project can already set that variable in its environment variables, and fctl-agent passes it through to Claude, but nobody will look for it there.
What should happen
- Setting. Add
ProjectSettings.claude_ai_connectors: bool(crates/fctl-proto/src/session.rs),trueinDefaultso existing projects keep today's behavior, then runcargo xtask gen. Choose which claude.ai connectors sessions get #18's list of allowed connectors can come later as a separate optional field that applies while this is on. - New project (
web/src/routes/new-project.tsx). Add a switch below the setup script. Today the form sendssettingsonly when a setup script is filled in, and hard-codes the other switches. Send it whenever this switch is off too. - Project settings (
web/src/routes/project.tsx). The same switch, next to "Remote Control" and built like it (aSwitchwith a label and a one-line description). Suggested copy: claude.ai connectors: "Agents can use the connectors of the person who starts a session (mail, files, docs) without asking. Only with a full Claude login." - CLI. Add
fctl projects create … --no-connectors, and--connectors on|offon the project settings command from Custom sandbox images for projects and hosts #16 when it lands. Both work with--json. - Apply it when the setting is off:
- The control plane adds
ENABLE_CLAUDEAI_MCP_SERVERS=falseto the environment in theSessionSpecit builds (crates/fctl-control/src/spec.rs), without storing it in the project. Every fctl-agent version passes project environment variables to Claude, so this also works on hosts one version behind. - fctl-agent also writes
"disableClaudeAiConnectors": trueinto the user settings (write_claude_configincrates/fctl-agent/src/supervisor.rs). A repository's.claude/settings.jsoncan set environment variables for Claude, so it might turn the variable back on, but project settings can't override a user-leveldisableClaudeAiConnectors: true.
- The control plane adds
- Make it visible locally. fake-claude lists a connector in its
system/initunless the variable is false, socargo xtask devshows the switch working. - Docs.
docs/security.mdlists claude.ai connectors among the channels out of the sandbox (full logins only) and mentions this switch.
Decide the switch's starting position on the new-project form: on matches today, and off is safer. Existing projects stay on either way.
Compatibility: an update replaces all of a project's settings, so a client that predates this field (a stale tab) turns connectors back on when it saves. Either accept that, or keep the stored value when the field is missing.
Tests: put the pure part (the environment for a project's settings) in fctl-domain with unit tests, and check both themes and a phone width for the switch.
🤖 Generated with Claude Code
Activity
fctl-sh commentedon Oct 18, 2026
Status: #32 is open with CI green. It covers points 1–7:
ProjectSettings.claude_ai_connectors, on by default, so existing projects keep their connectors.fctl projects create --no-connectors, also with--json.ENABLE_CLAUDEAI_MCP_SERVERS=falsein the session's environment from the control plane, anddisableClaudeAiConnectorsin Claude's user settings from fctl-agent.security.mdlists connectors among the channels out of the sandbox).For compatibility, an update that leaves the field out keeps the stored value. The pure part is in
fctl_domain::settings, with tests. #32 has the end-to-end checks, includingmain's host and agent running against the new control plane.Left:
@hyperstructure/design. Both switches reuse the Remote Control row's markup.--connectors on|offon the project settings command, once Custom sandbox images for projects and hosts #16 adds that command.To confirm: the new-project switch starts off (the safer position). The CLI and the API keep on as the default, since this issue asked for
--no-connectors. Say if the CLI should start off too.Session: https://app.fctl.sh/s/ses_01M564VCYM35Z4JVYCMFQ73EZ6
feat: turn off claude.ai connectors for a project (#32)