Skip to content

Commit 8aad335

Browse files
authored
Fix: mcp start command not respecting tilde (#124)
1 parent f214ec7 commit 8aad335

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/chat-cli/src/mcp_client/client.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ impl Client<StdioTransport> {
162162
env,
163163
} = config;
164164
let child = {
165-
let mut command = tokio::process::Command::new(bin_path);
165+
let expanded_bin_path = shellexpand::tilde(&bin_path);
166+
let mut command = tokio::process::Command::new(expanded_bin_path.as_ref());
166167
command
167168
.stdin(Stdio::piped())
168169
.stdout(Stdio::piped())

0 commit comments

Comments
 (0)