feat(code-mode): use server names for MCP extensions (#6284)

Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Adrian Cole
2025-12-30 13:08:38 +08:00
committed by GitHub
parent 454e98bb74
commit d1f95757cf
19 changed files with 2142 additions and 1662 deletions
+14 -4
View File
@@ -450,7 +450,17 @@ enum Command {
/// Run goose as an ACP (Agent Client Protocol) agent
#[command(about = "Run goose as an ACP agent server on stdio")]
Acp {},
Acp {
/// Add builtin extensions by name
#[arg(
long = "with-builtin",
value_name = "NAME",
help = "Add builtin extensions by name (e.g., 'developer' or multiple: 'developer,github')",
long_help = "Add one or more builtin extensions that are bundled with goose by specifying their names, comma-separated",
value_delimiter = ','
)]
builtins: Vec<String>,
},
/// Start or resume interactive chat sessions
#[command(
@@ -961,7 +971,7 @@ pub async fn cli() -> anyhow::Result<()> {
Some(Command::Configure {}) => "configure",
Some(Command::Info { .. }) => "info",
Some(Command::Mcp { .. }) => "mcp",
Some(Command::Acp {}) => "acp",
Some(Command::Acp { .. }) => "acp",
Some(Command::Session { .. }) => "session",
Some(Command::Project {}) => "project",
Some(Command::Projects) => "projects",
@@ -995,8 +1005,8 @@ pub async fn cli() -> anyhow::Result<()> {
McpCommand::Developer => serve(DeveloperServer::new()).await?,
}
}
Some(Command::Acp {}) => {
run_acp_agent().await?;
Some(Command::Acp { builtins }) => {
run_acp_agent(builtins).await?;
}
Some(Command::Session {
command,