Files
magpie/docs
yetone 56900e4845 agent: Claude Desktop on magpie gets the MCP servers the user added signed in (aa86222 on Discord)
aa86222 on Discord: Claude Desktop on magpie's gateway (3p mode) didn't
sync its connectors. Two parts:

- A claude.ai account's connectors can't reach 3p mode. Desktop calls
  them through claude.ai with the signed-in account
  (/api/organizations/<org>/mcp/servers/<id>/tools/call in Desktop
  2.7032's main bundle, refused with no_active_org without an account),
  and 3p mode has none. Anthropic's 3p docs say "Made by Anthropic"
  connectors are only in standard Desktop; others reach 3p through
  managedMcpServers or plugins
  (claude.com/docs/third-party/claude-desktop/extensions). magpie doesn't
  answer or pass any of these: they never go to the inference gateway.
- What magpie can do: 3p mode reads its MCP servers from
  Claude-3p/claude_desktop_config.json, a file of its own, so the
  servers added signed in (Settings -> Developer, in
  Claude/claude_desktop_config.json) were gone from the list. Switching
  on now copies each mcpServers entry Claude-3p has none of the same
  name for (desktopCarryMCP). One already there (the user's, or the
  Library's, which writes both files) stays. Sync does it once for a
  Desktop already on magpie (stash mark claude-desktop.mcp-seen), so a
  server the user takes out in 3p isn't brought back. Off takes back
  each copy still as copied (stash claude-desktop.mcp); one the user
  changed stays. Claude's own file is never written.

Run, at this tree:
- go test -count=1 -timeout 45m ./internal/agent ./internal/library
  ./internal/desktopdir: ok
- gofmt -l internal/agent: clean; go vet ./internal/agent for darwin,
  GOOS=linux and GOOS=windows: ok
- the built binary in a sandbox HOME (macOS): `magpie claude-desktop
  provider magpie` copied a filesystem server into Claude-3p's
  claude_desktop_config.json with Claude's file byte for byte; `provider
  ""` removed Claude-3p again, Claude's file unchanged.

Broken by hand: desktopCarryMCP returning at once turns
TestClaudeDesktopCarriesTheMCPServers, TestClaudeDesktopMCPKeepsThe3pServers
and TestClaudeDesktopSyncCarriesTheMCPServersOnce red; desktopUncarryMCP
returning at once turns the first two red (off left the copies); Sync
carrying on every run turns the third red.

Not tried: a real Claude Desktop reading the carried servers in 3p mode
(it reads ~/Library, so the sandbox can't host it, and the live one is
not touched); Windows and Linux folders (same code path through
desktopSets); the reporter's own connectors, which weren't described
beyond "can't sync" and are most likely claude.ai ones, which this
cannot bring.
2026-10-26 15:46:02 +08:00
..