[PR #6219] feat(mcp): add restart all MCP servers functionality #11784

Closed
opened 2026-02-16 18:16:43 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6219

State: closed
Merged: No


Summary

  • Add ability to restart all MCP servers without restarting opencode
  • Useful for developers working on MCP servers who need to quickly reconnect after code changes

Changes

  • Add MCP.restartAll() function to disconnect and reconnect all connected/failed servers
  • Add POST /mcp/restart API endpoint
  • Add r keybind in MCP dialog to restart all servers
  • Add /restart-mcp slash command
  • Add "Restart MCPs" to command palette
  • Regenerate SDK with new endpoint

Usage

  1. Open MCP dialog with /mcp, then press r to restart all
  2. Use /restart-mcp slash command
  3. Use command palette → "Restart MCPs"
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6219 **State:** closed **Merged:** No --- ## Summary - Add ability to restart all MCP servers without restarting opencode - Useful for developers working on MCP servers who need to quickly reconnect after code changes ## Changes - Add `MCP.restartAll()` function to disconnect and reconnect all connected/failed servers - Add `POST /mcp/restart` API endpoint - Add `r` keybind in MCP dialog to restart all servers - Add `/restart-mcp` slash command - Add "Restart MCPs" to command palette - Regenerate SDK with new endpoint ## Usage 1. Open MCP dialog with `/mcp`, then press `r` to restart all 2. Use `/restart-mcp` slash command 3. Use command palette → "Restart MCPs"
yindo added the pull-request label 2026-02-16 18:16:43 -05:00
yindo closed this issue 2026-02-16 18:16:43 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11784