Skip to content

Conversation

@lucasfernog-crabnebula
Copy link
Contributor

Motivation and Context

we need to be able to set KillOnDrop and most importantly CreationFlags for the process spawned - we're now using process-wrap so we need to expose that interface

see https://docs.rs/process-wrap/latest/process_wrap/#killondrop-and-creationflags

How Has This Been Tested?

I'm working on an app that relies on CreationFlags - so i just tested it on Windows :)

Breaking Changes

TokioCommandWrap implements Fromtokio::process::Command so this is not a breaking change, but also downstream users have more control over flags such as KillOnDrop and CreationFlags

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

…lcontextprotocol#243

TokioCommandWrap implements From<tokio::process::Command> so this is not a breaking change, but also downstream users have more control over flags such as KillOnDrop and CreationFlags

see https://docs.rs/process-wrap/latest/process_wrap/#killondrop-and-creationflags
.stdin(std::process::Stdio::piped())
pub fn new(command: impl Into<TokioCommandWrap>) -> std::io::Result<Self> {
let mut command_wrap = command.into();
command_wrap
Copy link
Collaborator

@jokemanfire jokemanfire Jun 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

        let mut command_wrap = command.into();
        command_wrap
            .command_mut()
            .stdin(std::process::Stdio::piped())
            .stdout(std::process::Stdio::piped());

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed!

@jokemanfire jokemanfire merged commit db03f63 into modelcontextprotocol:main Jun 7, 2025
9 of 10 checks passed
@lucasfernog-crabnebula lucasfernog-crabnebula deleted the fix/creation-flags branch June 7, 2025 17:55
@lucasfernog-crabnebula lucasfernog-crabnebula restored the fix/creation-flags branch June 7, 2025 17:56
@github-actions github-actions bot mentioned this pull request Jul 2, 2025
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.

2 participants