GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — local MCP server child processes become orphaned on restart · Issue #30073 · anomalyco/opencode

local MCP server child processes become orphaned on restart #30073

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
local MCP server child processes become orphaned on restart#30073
Copy link
Assignees
StarpTech

Description

@waterundman
waterundman
opened on May 31, 2026
Issue body actions

Description

When opencode is restarted (e.g., during an update), its child MCP server
processes (configured as "local" type in opencode.json) are not always
killed. Over multiple restarts, orphan processes accumulate.

Steps to reproduce:

  1. Configure a local MCP server (e.g., blender-mcp)
  2. Restart opencode several times (e.g., via updates)
  3. Observe that old MCP processes remain running: Get-Process blender-mcp
    shows multiple instances with different start times

Expected: MCP child processes are terminated when opencode exits.
Actual: Orphan processes are left running, potentially causing port conflicts
and resource leaks.

Suggested fix: On Windows, use a Job Object to bind child process lifetime
to the parent. On Unix, use process groups.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions
    assigned
    StarpTech
    on May 31, 2026
  2. github-actions commented on May 31, 2026

    @github-actions
    github-actionsBot
    on May 31, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • Local stdio MCP servers leak processes on disconnect / replace / rollback #26714: Local stdio MCP servers leak processes on disconnect / replace / rollback — same core problem of MCP child processes becoming orphaned, with detailed analysis of the affected code paths
    • Bug: Shared OpenCode host keeps per-directory MCP child processes alive on Windows after switching routed directories/worktrees #21557: Shared OpenCode host keeps per-directory MCP child processes alive on Windows after switching routed directories/worktrees — related issue specifically on Windows
  3. github-actions commented on Jul 31, 2026

    @github-actions
    github-actionsBot
    on Jul 31, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  4. github-actions
    closed this as not plannedon Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @StarpTech
    StarpTech

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.