claude: Don't quote executable path in mcp configuration (#34805)

This was generating an invalid string for the configuration, removing
the extra quotes makes it work. This affected the versions of Zed that
have a space in their name.

Release Notes:

- N/A
This commit is contained in:
Ben Brandt 2025-07-21 11:53:05 +02:00 committed by GitHub
parent caa4b529e4
commit 57ab09c2da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,9 +69,6 @@ impl ClaudeMcpServer {
}
pub fn server_config(&self) -> Result<McpServerConfig> {
#[cfg(not(target_os = "windows"))]
let zed_path = util::get_shell_safe_zed_path()?;
#[cfg(target_os = "windows")]
let zed_path = std::env::current_exe()
.context("finding current executable path for use in mcp_server")?
.to_string_lossy()