Skip to content

fix(mcp): Isolate MCP server processes from terminal signals#554

Merged
JeanMertz merged 1 commit intomainfrom
prr121
Apr 15, 2026
Merged

fix(mcp): Isolate MCP server processes from terminal signals#554
JeanMertz merged 1 commit intomainfrom
prr121

Conversation

@JeanMertz
Copy link
Copy Markdown
Collaborator

Place each stdio MCP server in its own process group on Unix so that Ctrl+C (SIGINT) sent to the terminal does not propagate to the child process. JP manages the server lifecycle through the MCP protocol and kill-on-drop, so letting Unix signals reach the server causes it to be torn down unexpectedly while JP is still running.

The change is guarded by #[cfg(unix)] so Windows builds are unaffected.

Place each stdio MCP server in its own process group on Unix so that
Ctrl+C (SIGINT) sent to the terminal does not propagate to the child
process. JP manages the server lifecycle through the MCP protocol and
kill-on-drop, so letting Unix signals reach the server causes it to be
torn down unexpectedly while JP is still running.

The change is guarded by `#[cfg(unix)]` so Windows builds are
unaffected.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit c9920ab into main Apr 15, 2026
13 checks passed
@JeanMertz JeanMertz deleted the prr121 branch April 15, 2026 11:28
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.

1 participant