feat(app-server) FindFilesStream

This commit is contained in:
Dylan Hurd
2026-01-30 00:21:21 -07:00
parent d550fbf41a
commit 95bda92f33
7 changed files with 767 additions and 0 deletions

View File

@@ -599,6 +599,23 @@ impl McpProcess {
self.send_request("fuzzyFileSearch", Some(params)).await
}
/// Send a `findFilesStream` JSON-RPC request.
pub async fn send_find_files_stream_request(
&mut self,
query: &str,
roots: Vec<String>,
cancellation_token: Option<String>,
) -> anyhow::Result<i64> {
let mut params = serde_json::json!({
"query": query,
"roots": roots,
});
if let Some(token) = cancellation_token {
params["cancellationToken"] = serde_json::json!(token);
}
self.send_request("findFilesStream", Some(params)).await
}
async fn send_request(
&mut self,
method: &str,