Skip to content

Turn claude.ai connectors off for a project, at setup and in its settings #19

Closed

Description

@fctl-sh

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

  1. Setting. Add ProjectSettings.claude_ai_connectors: bool (crates/fctl-proto/src/session.rs), true in Default so existing projects keep today's behavior, then run cargo 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.
  2. New project (web/src/routes/new-project.tsx). Add a switch below the setup script. Today the form sends settings only when a setup script is filled in, and hard-codes the other switches. Send it whenever this switch is off too.
  3. Project settings (web/src/routes/project.tsx). The same switch, next to "Remote Control" and built like it (a Switch with 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."
  4. CLI. Add fctl projects create … --no-connectors, and --connectors on|off on the project settings command from Custom sandbox images for projects and hosts #16 when it lands. Both work with --json.
  5. Apply it when the setting is off:
    • The control plane adds ENABLE_CLAUDEAI_MCP_SERVERS=false to the environment in the SessionSpec it 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": true into the user settings (write_claude_config in crates/fctl-agent/src/supervisor.rs). A repository's .claude/settings.json can set environment variables for Claude, so it might turn the variable back on, but project settings can't override a user-level disableClaudeAiConnectors: true.
  6. Make it visible locally. fake-claude lists a connector in its system/init unless the variable is false, so cargo xtask dev shows the switch working.
  7. Docs. docs/security.md lists 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

https://app.fctl.sh/s/ses_01M560YQN20DK06NSEWWVYB3Q4

Activity

  1. added
    control-plane
    web
    cli
    agents
    on Oct 17, 2026
  2. fctl-sh commented on Oct 18, 2026

    @fctl-sh
    ContributorAuthor

    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.
    • The switch on the new-project form and next to Remote Control in the project's settings.
    • fctl projects create --no-connectors, also with --json.
    • When the setting is off: ENABLE_CLAUDEAI_MCP_SERVERS=false in the session's environment from the control plane, and disableClaudeAiConnectors in Claude's user settings from fctl-agent.
    • fake-claude's connector, and the docs (security.md lists 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, including main's host and agent running against the new control plane.

    Left:

    • Look at the switch in both themes and at a phone width. I couldn't render the app: this session can't fetch @hyperstructure/design. Both switches reuse the Remote Control row's markup.
    • --connectors on|off on 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentsclicontrol-planeweb

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions