Update to new schema

This commit is contained in:
Agus Zubiaga 2025-07-28 18:02:21 -03:00
parent a55bd49c8d
commit 0f395df9a8
5 changed files with 17 additions and 22 deletions

View file

@ -37,7 +37,7 @@ impl ZedMcpServer {
Ok(Self { server: mcp_server })
}
pub fn server_config(&self) -> Result<acp::McpServerConfig> {
pub fn server_config(&self) -> Result<acp::McpServer> {
#[cfg(not(test))]
let zed_path = anyhow::Context::context(
std::env::current_exe(),
@ -47,13 +47,14 @@ impl ZedMcpServer {
#[cfg(test)]
let zed_path = crate::e2e_tests::get_zed_path();
Ok(acp::McpServerConfig {
Ok(acp::McpServer {
name: SERVER_NAME.into(),
command: zed_path,
args: vec![
"--nc".into(),
self.server.socket_path().display().to_string(),
],
env: None,
env: vec![],
})
}