Apply recent changes
This commit is contained in:
@@ -17,7 +17,19 @@ pub struct RemoteMcpClient;
|
||||
|
||||
impl RemoteMcpClient {
|
||||
pub fn new() -> Result<Self> {
|
||||
Ok(Self)
|
||||
// Attempt to spawn the MCP server binary located at ./target/debug/owlen-mcp-server
|
||||
// The server runs over STDIO and will be managed by the client instance.
|
||||
// For now we just verify that the binary exists; the actual process handling
|
||||
// is performed lazily in the async methods.
|
||||
let path = "./target/debug/owlen-mcp-server";
|
||||
if std::path::Path::new(path).exists() {
|
||||
Ok(Self)
|
||||
} else {
|
||||
Err(Error::NotImplemented(format!(
|
||||
"Remote MCP server binary not found at {}",
|
||||
path
|
||||
)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user