Fix relative stdio MCP cwd fallback (#19031)

This commit is contained in:
Matthew Zeng
2026-04-22 17:52:17 -07:00
committed by GitHub
parent 3cc3763e6c
commit 8f0a92c1e5
7 changed files with 107 additions and 22 deletions

View File

@@ -80,7 +80,7 @@ async fn drop_kills_wrapper_process_group() -> Result<()> {
)])),
&[],
/*cwd*/ None,
Arc::new(LocalStdioServerLauncher),
Arc::new(LocalStdioServerLauncher::new(std::env::current_dir()?)),
)
.await?;

View File

@@ -63,7 +63,7 @@ async fn rmcp_client_can_list_and_read_resources() -> anyhow::Result<()> {
/*env*/ None,
&[],
/*cwd*/ None,
Arc::new(LocalStdioServerLauncher),
Arc::new(LocalStdioServerLauncher::new(std::env::current_dir()?)),
)
.await?;