-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Combine named agents and MCP support
Co-authored-by: Zaki Ali <[email protected]> Co-authored-by: Salman Mohammed <[email protected]> Co-authored-by: Kalvin Chau <[email protected]>
- Loading branch information
Showing
52 changed files
with
1,190 additions
and
3,941 deletions.
There are no files selected for viewing
990 changes: 477 additions & 513 deletions
990
crates/goose/src/developer.rs → crates/developer/src/lib.rs
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
pub mod agent_version; | ||
pub mod configure; | ||
pub mod server; | ||
pub mod session; | ||
pub mod version; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use anyhow::Result; | ||
use developer::DeveloperRouter; | ||
use mcp_server::router::RouterService; | ||
use mcp_server::{ByteTransport, Server}; | ||
use tokio::io::{stdin, stdout}; | ||
|
||
pub async fn run_server(name: &str) -> Result<()> { | ||
tracing::info!("Starting MCP server"); | ||
|
||
let router = match name { | ||
"developer" => Some(RouterService(DeveloperRouter::new())), | ||
_ => None, | ||
}; | ||
|
||
// Create and run the server | ||
let server = Server::new(router.unwrap_or_else(|| panic!("Unknown server requested {}", name))); | ||
let transport = ByteTransport::new(stdin(), stdout()); | ||
|
||
tracing::info!("Server initialized and ready to handle requests"); | ||
Ok(server.run(transport).await?) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.