Skip to content

feat(desktop): MCP connectors in Project Settings and This Session - #191

Merged
sanchitrk merged 1 commit into
canaryfrom
claude/mcp-connector-scoping-desktop
Dec 2, 2026
Merged

sanchitrk merged 1 commit into
canaryfrom
claude/mcp-connector-scoping-desktop

Conversation

@sanchitrk

@sanchitrk sanchitrk commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

The desktop half of #190, stacked on it: Project Settings and This Session show a project's MCP servers through the host's soft layers. The switches no longer write .codework/mcp.json; only the Advanced raw editors do. Retarget to canary once #190 merges.

Web

  • Project Settings → MCP Connectors:
    • User and Project groups from the files, with locked rows saying Configured via mcp.json;
    • an Added to This Project group;
    • "No servers in mcp.json" when the files are empty.
  • This Session, after Advanced: From Project and Added to This Session, with locked rows saying Off in Project Settings. The Skills section is unchanged.
  • Rows: dense, with a fixed reset slot and an 18px gap before the switch. The ⋯ menu opens to the left, with the accounts listed inline (no submenu toward the switch).
  • Add Connector: search, one line per connector, and a submenu of connections for a connector with several. "No Connections" when the vault is empty. There are no Connect or Sign In buttons here.
  • Settings → MCP Connectors:
    • the status line reads "● Connected · OAuth" with a subtle Default tag;
    • Make Default works for MCP connections;
    • environment-variable connections are hidden;
    • the description no longer claims connections are attached automatically;
    • an Advanced section edits ~/.codework/mcp.json.

Contract and app server

  • mcp.view and mcp.edit are routed to the machine the project or session is on.
  • Mcp.EditError reaches the UI as McpRefused with the harness's reason, shown in a toast.

Testing

  • vp check and typecheck for web, server and contract; vp run verify passes. App server suite: 53 passed, 2 skipped.
  • Real Electron app on a dev home, with a real model call on a free OpenRouter model:
    • picked an account in Project Settings (This Session inherited it);
    • switched a server off in Project Settings (locked in the session);
    • switched one off in the session;
    • Add Connector showed a file-named connector as configured.
    • The next run didn't offer the switched-off servers, and moved Linear to the picked account.
    • On the Connectors page, Make Default worked, and removing the Default promoted the oldest connection.
  • New machine simulation mcp.machines.live.test.ts on three OrbStack machines, each with its own vault (two accounts, one, none) and the same project mcp.json. Each machine resolves only its own vault and layers, and edits on cw-a never reach cw-b or cw-c.

Done by Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Base automatically changed from claude/mcp-connector-scoping-core to canary December 2, 2026 12:47
Project Settings and This Session show a project's MCP servers through the
host's soft layers instead of writing `.codework/mcp.json` from switches.

- Rows from the files with where they come from; locked rows say
  "Configured via mcp.json" or "Off in Project Settings". Switches, the
  account picker (opening away from the switch) and Add Connector, with a
  submenu of connections for a connector with several, all send `mcp.edit`.
- Settings → MCP Connectors shows the Default badge on the status line, offers
  Make Default for MCP connections, hides environment variables (MCP never
  uses them) and edits `~/.codework/mcp.json` under Advanced.
- App server routes `mcp.view` and `mcp.edit` to the machine the project or
  session is on; a machine simulation checks each machine keeps its own vault
  and layers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sanchitrk
sanchitrk force-pushed the claude/mcp-connector-scoping-desktop branch from 5b39d6a to fd27fab Compare December 2, 2026 12:47
@sanchitrk
sanchitrk merged commit d44fac9 into canary Dec 2, 2026
3 checks passed
@sanchitrk
sanchitrk deleted the claude/mcp-connector-scoping-desktop branch December 2, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant