Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
c8ee88a
feat(skills): support MCP-served Agent Skills per the skills-over-MCP…
olaservo Apr 22, 2026
6f27e35
test(skills): e2e MCP skill discovery+load against github-mcp-server
olaservo Apr 22, 2026
9de258d
feat(skills): emit Supporting Files block for MCP load_skill
olaservo Apr 24, 2026
3f30413
chore(skills): cargo fmt + missing `mut` after rebase
olaservo May 10, 2026
d0c2fdc
refactor(skills): derive skill root from url, drop McpSkillEntry.base…
olaservo May 10, 2026
8193301
feat(skills): parse mcp-resource-template entries from skill://index.…
olaservo May 10, 2026
8301f8c
feat(skills): load_skill_template tool with MCP completion validation
olaservo May 10, 2026
64455b5
feat(skills): invalidate MCP skills cache on resources/list_changed
olaservo May 10, 2026
cd347be
refactor(skills): unify FS and MCP load_skill output framing
olaservo May 10, 2026
7bb0b72
docs(skills): refresh e2e test doc comment for r2 behaviors
olaservo May 10, 2026
692ce2c
test(skills): update e2e assertions for current reference server
olaservo May 10, 2026
bc63575
feat(skills): $schema check + spawn list_changed watcher on repopulate
olaservo May 12, 2026
dd9ae67
fix(skills): thread session_id through UI slash-command fetches
olaservo May 17, 2026
6680130
fix(skills): self-review cleanups before SEP-peer review (B1, B2, B3,…
olaservo May 18, 2026
0339ce4
fix(skills): match FS framing on MCP supporting-file load
olaservo May 18, 2026
eb1a5b4
chore(skills): drop e2e harness file and unrelated gitignore entry
olaservo May 19, 2026
4b276a1
fix(skills): add use_login_shell_path to new test ctx constructions
olaservo May 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/goose-cli/src/scenario_tests/scenario_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ where
Arc::new(mock_client),
None,
None,
None,
)
.await;

Expand Down
25 changes: 25 additions & 0 deletions crates/goose-server/src/routes/config_management.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ pub struct SlashCommand {
pub command: String,
pub help: String,
pub command_type: CommandType,
/// For MCP-sourced skills, the name of the originating MCP extension
/// (e.g. "github"). `None` for filesystem skills and non-skill commands.
#[serde(skip_serializing_if = "Option::is_none")]
pub origin: Option<String>,
}
#[derive(Serialize, ToSchema)]
pub struct SlashCommandsResponse {
Expand Down Expand Up @@ -402,6 +406,9 @@ pub async fn get_provider_models(
pub struct SlashCommandsQuery {
/// Optional working directory to discover local skills from
pub working_dir: Option<String>,
/// Optional session id; when provided, the endpoint also includes
/// MCP-served skills from the corresponding agent's connected extensions.
pub session_id: Option<String>,
}

#[utoipa::path(
Expand All @@ -413,6 +420,7 @@ pub struct SlashCommandsQuery {
)
)]
pub async fn get_slash_commands(
axum::extract::State(state): axum::extract::State<Arc<AppState>>,
axum::extract::Query(query): axum::extract::Query<SlashCommandsQuery>,
) -> Result<Json<SlashCommandsResponse>, ErrorResponse> {
let mut commands: Vec<_> = slash_commands::list_commands()
Expand All @@ -421,6 +429,7 @@ pub async fn get_slash_commands(
command: command.command.clone(),
help: command.recipe_path.clone(),
command_type: CommandType::Recipe,
origin: None,
})
.collect();

Expand All @@ -429,6 +438,7 @@ pub async fn get_slash_commands(
command: cmd_def.name.to_string(),
help: cmd_def.description.to_string(),
command_type: CommandType::Builtin,
origin: None,
});
}

Expand All @@ -438,6 +448,7 @@ pub async fn get_slash_commands(
command: source.name,
help: source.description,
command_type: CommandType::Skill,
origin: None,
});
}

Expand All @@ -456,10 +467,24 @@ pub async fn get_slash_commands(
command: source.name,
help: source.description,
command_type: CommandType::Agent,
origin: None,
});
}
}

if let Some(session_id) = query.session_id.as_deref() {
if let Ok(agent) = state.get_agent(session_id.to_string()).await {
for entry in agent.extension_manager.aggregated_mcp_skills().await {
commands.push(SlashCommand {
command: entry.name,
help: entry.description,
command_type: CommandType::Skill,
origin: Some(entry.server),
});
}
}
}

Ok(Json(SlashCommandsResponse { commands }))
}

Expand Down
11 changes: 10 additions & 1 deletion crates/goose/src/acp/fs.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::acp::tools::AcpAwareToolMeta;
use crate::agents::mcp_client::{Error as McpError, McpClientTrait};
use crate::agents::platform_extensions::developer::edit::{
resolve_path, string_replace, FileEditParams, FileReadParams, FileWriteParams,
reject_uri_path, resolve_path, string_replace, FileEditParams, FileReadParams, FileWriteParams,
};
use crate::agents::platform_extensions::developer::shell::{ShellParams, OUTPUT_LIMIT_BYTES};
use crate::agents::platform_extensions::developer::DeveloperClient;
Expand Down Expand Up @@ -131,6 +131,9 @@ impl AcpTools {
Ok(p) => p,
Err(e) => return Ok(error_result(e)),
};
if let Some(err) = reject_uri_path(&params.path) {
return Ok(err);
}
let path = resolve_path(&params.path, ctx.working_dir.as_deref());
self.update_tool_call(
ctx,
Expand All @@ -156,6 +159,9 @@ impl AcpTools {
Ok(p) => p,
Err(e) => return Ok(error_result(e)),
};
if let Some(err) = reject_uri_path(&params.path) {
return Ok(err);
}
let path = resolve_path(&params.path, ctx.working_dir.as_deref());
self.update_tool_call(
ctx,
Expand Down Expand Up @@ -193,6 +199,9 @@ impl AcpTools {
Ok(p) => p,
Err(e) => return Ok(error_result(e)),
};
if let Some(err) = reject_uri_path(&params.path) {
return Ok(err);
}
let path = resolve_path(&params.path, ctx.working_dir.as_deref());
self.update_tool_call(
ctx,
Expand Down
2 changes: 1 addition & 1 deletion crates/goose/src/acp/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ impl GooseAcpAgent {
let info = client.get_info().cloned();
agent
.extension_manager
.add_client("developer".into(), config, client, info, None)
.add_client("developer".into(), config, client, info, None, None)
.await;
}

Expand Down
2 changes: 1 addition & 1 deletion crates/goose/src/agents/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2143,7 +2143,7 @@ impl Agent {
.await?;
let extensions_info = self
.extension_manager
.get_extensions_info(&session.working_dir)
.get_extensions_info(session_id, &session.working_dir)
.await;
tracing::debug!("Retrieved {} extensions info", extensions_info.len());
let (extension_count, tool_count) = self
Expand Down
Loading
Loading