Skip to content

Commit

Permalink
post pull fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kvadratni committed Jan 7, 2025
1 parent 5ce5ba1 commit 47ee30e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 72 deletions.
8 changes: 4 additions & 4 deletions crates/goose-mcp/src/jetbrains/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,16 @@ impl JetBrainsProxy {
}

let tools_response: Value = response.json().await?;
let tools = tools_response["tools"]
let tools = tools_response
.as_array()
.ok_or_else(|| anyhow!("Invalid tools response format"))?
.iter()
.filter_map(|t| {
if let (Some(name), Some(description)) = (t["name"].as_str(), t["description"].as_str()) {
if let (Some(name), Some(description), Some(input_schema)) = (t["name"].as_str(), t["description"].as_str(), t["input_schema"].as_str()) {
Some(Tool {
name: name.to_string(),
description: description.to_string(),
input_schema: serde_json::json!({}),
input_schema: serde_json::json!(input_schema),
})
} else {
None
Expand Down Expand Up @@ -225,4 +225,4 @@ impl Clone for JetBrainsProxy {
client: Client::new(),
}
}
}
}
1 change: 0 additions & 1 deletion crates/goose-server/src/commands/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
pub mod agent;
pub mod mcp;
pub mod router_enum;
67 changes: 0 additions & 67 deletions crates/goose-server/src/commands/router_enum.rs

This file was deleted.

0 comments on commit 47ee30e

Please sign in to comment.