Skip to content

Commit

Permalink
Kalvin/mcp gdrive (#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalvinnchau authored and acekyd committed Jan 21, 2025
1 parent e931318 commit 78fc44b
Show file tree
Hide file tree
Showing 5 changed files with 603 additions and 2 deletions.
7 changes: 6 additions & 1 deletion crates/goose-cli/src/commands/mcp.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use anyhow::Result;
use goose_mcp::{
Developer2Router, DeveloperRouter, JetBrainsRouter, MemoryRouter, NonDeveloperRouter,
Developer2Router, DeveloperRouter, GoogleDriveRouter, JetBrainsRouter, MemoryRouter,
NonDeveloperRouter,
};
use mcp_server::router::RouterService;
use mcp_server::{BoundedService, ByteTransport, Server};
Expand All @@ -17,6 +18,10 @@ pub async fn run_server(name: &str) -> Result<()> {
"developer2" => Some(Box::new(RouterService(Developer2Router::new()))),
"nondeveloper" => Some(Box::new(RouterService(NonDeveloperRouter::new()))),
"jetbrains" => Some(Box::new(RouterService(JetBrainsRouter::new()))),
"google_drive" => {
let router = GoogleDriveRouter::new().await;
Some(Box::new(RouterService(router)))
}
"memory" => Some(Box::new(RouterService(MemoryRouter::new()))),
_ => None,
};
Expand Down
4 changes: 4 additions & 0 deletions crates/goose-mcp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ chrono = { version = "0.4.38", features = ["serde"] }
dirs = "5.0.1"
tempfile = "3.8"
include_dir = "0.7.4"
google-drive3 = "6.0.0"
webbrowser = "0.8"
http-body-util = "0.1.2"
regex = "1.11.1"

[dev-dependencies]
sysinfo = "0.32.1"
Loading

0 comments on commit 78fc44b

Please sign in to comment.