Skip to content

fix(server): skip duplicate managed MCP startup sync - #3326

Closed
Iflaqbhat wants to merge 1 commit into
different-ai:devfrom
Iflaqbhat:fix/skip-managed-mcp-startup-sync
Closed

Iflaqbhat wants to merge 1 commit into
different-ai:devfrom
Iflaqbhat:fix/skip-managed-mcp-startup-sync

Conversation

@Iflaqbhat

Copy link
Copy Markdown

Summary

Prevents managed local MCP servers from being registered twice during OpenWork startup.

When OpenWork manages the OpenCode sidecar, the managed workspace MCP config is already injected through OPENCODE_CONFIG. Startup was also pushing that same workspace's runtime MCPs into the engine again, which can start local stdio MCP servers twice.

This skips that duplicate startup sync for the managed workspace while still syncing other workspaces.

Issue

Testing

  • pnpm --filter openwork-server exec bun test src/mcp.engine-sync.e2e.test.ts — passed, 21 tests
  • pnpm --filter openwork-server typecheck — passed
  • git diff --check — passed

Manual verification

I could not verify the Windows process-tree repro directly from macOS. The regression test verifies the root mechanism: the managed workspace's MCP is no longer POSTed to /mcp again at startup, while a second non-managed workspace still syncs normally.

Risk

Low — the skip only applies to the one workspace already covered by OPENCODE_CONFIG; every other workspace still goes through the normal sync path.

@vercel

vercel Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, v0 Jul 30, 2026 5:41am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
openwork-diagnostics Skipped Skipped Jul 30, 2026 5:41am

@vercel
vercel Bot temporarily deployed to Preview – openwork-diagnostics July 30, 2026 05:40 Inactive
@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

@Iflaqbhat is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Contributor screen: passed

Commit 0900f29de9 · run

No hidden characters, dependency, database or obfuscation concerns.

Nothing else runs yet. A maintainer reviews the changes then comments /test to start the AI screen, the tests and the Warden security review.

@OmarMcAdam

Copy link
Copy Markdown
Member

closed due to age, please reopen and tag me if still valid

@OmarMcAdam OmarMcAdam closed this Oct 28, 2026

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – openwork-landing — 0900f29d Deployed Jul 30, 2026 by vercel[bot]
Preview – openwork-diagnostics — 0900f29d Deployed Jul 30, 2026 by vercel[bot]
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.

[Bug]: Local MCP servers are started twice on launch

2 participants