Skip to content

feat(mcp): add pause/resume controls#1571

Open
shizhigu wants to merge 4 commits intodifferent-ai:devfrom
shizhigu:codex/mcp-enable-disable
Open

feat(mcp): add pause/resume controls#1571
shizhigu wants to merge 4 commits intodifferent-ai:devfrom
shizhigu:codex/mcp-enable-disable

Conversation

@shizhigu
Copy link
Copy Markdown
Contributor

@shizhigu shizhigu commented Apr 26, 2026

Why

#1562 added the MCP enable/disable route. This keeps that user-facing flow, but covers the cases that matter once MCP config is shared: inherited global apps, no-op toggles, approval races, and desktop fallback. Users can pause an app without deleting its URL, headers, OAuth setup, or local config.

What changed

  • Add PATCH /workspace/:id/mcp/:name with { enabled: boolean } and keep the merged POST /enabled route on the same server path.
  • Use OpenCode's existing mcp.<name>.enabled flag for pause/resume.
  • Treat inherited global MCPs as workspace pause overrides, not removable project entries.
  • Add Settings -> Apps/MCP Pause and Resume actions with all locale keys.

Test plan

  • pnpm --filter openwork-server exec bun test src/mcp.remote-connect.e2e.test.ts src/mcp-routes.e2e.test.ts
  • bun test apps/app/src/app/mcp.test.ts apps/app/tests/connections-store-mcp-toggle.test.ts apps/app/tests/settings-route-permissions.test.ts
  • pnpm --filter openwork-server typecheck
  • pnpm --filter openwork-server build:bin
  • pnpm --filter @openwork/app typecheck
  • pnpm --filter @openwork/app build
  • git diff --check

Evidence

Enabled app with the Pause action:

Enabled app with Pause action

Paused app with the Resume action:

Paused app with Resume action

Notes

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 26, 2026

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

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, Comment, Open in v0 May 1, 2026 5:19pm

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 26, 2026

@shizhigu 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
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@venkateshamatam
Copy link
Copy Markdown
Contributor

nice one!! just made a PR for the same yesterday #1562

@shizhigu
Copy link
Copy Markdown
Contributor Author

nice one!! just made a PR for the same yesterday #1562

Thanks! Saw #1562 too. Mine goes a bit deeper. Happy to converge if the maintainers prefer one path!

@src-opn
Copy link
Copy Markdown
Collaborator

src-opn commented May 4, 2026

quite some conflicts here because we made some changes
can you clean them up, and instead of a button have a toggle for enabled/disabled

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants