Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 10 additions & 0 deletions crates/goose-sdk-types/src/custom_requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ pub enum GooseExtension {
timeout: Option<u64>,
#[serde(default, skip_serializing_if = "Option::is_none")]
bundled: Option<bool>,
/// Tool allowlist for this extension. Omit this field to allow all tools.
#[serde(default, skip_serializing_if = "Option::is_none")]
available_tools: Option<Vec<String>>,
},
Platform {
name: String,
Expand All @@ -340,6 +343,9 @@ pub enum GooseExtension {
display_name: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
bundled: Option<bool>,
/// Tool allowlist for this extension. Omit this field to allow all tools.
#[serde(default, skip_serializing_if = "Option::is_none")]
available_tools: Option<Vec<String>>,
},
Mcp {
server: McpServer,
Expand All @@ -353,6 +359,9 @@ pub enum GooseExtension {
socket: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
bundled: Option<bool>,
/// Tool allowlist for this extension. Omit this field to allow all tools.
#[serde(default, skip_serializing_if = "Option::is_none")]
available_tools: Option<Vec<String>>,
},
}

Expand All @@ -364,6 +373,7 @@ impl Default for GooseExtension {
display_name: None,
timeout: None,
bundled: None,
available_tools: None,
}
}
}
Expand Down
13 changes: 13 additions & 0 deletions crates/goose-sdk-types/src/custom_requests/recipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ pub enum RecipeExtensionDto {
timeout: Option<u64>,
#[serde(default, skip_serializing_if = "Option::is_none")]
bundled: Option<bool>,
/// Tool allowlist for this extension. Omit this field to allow all tools.
#[serde(default, skip_serializing_if = "Option::is_none")]
available_tools: Option<Vec<String>>,
},
Platform {
name: String,
Expand All @@ -180,6 +183,9 @@ pub enum RecipeExtensionDto {
display_name: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
bundled: Option<bool>,
/// Tool allowlist for this extension. Omit this field to allow all tools.
#[serde(default, skip_serializing_if = "Option::is_none")]
available_tools: Option<Vec<String>>,
},
Stdio {
name: String,
Expand All @@ -198,6 +204,9 @@ pub enum RecipeExtensionDto {
cwd: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
bundled: Option<bool>,
/// Tool allowlist for this extension. Omit this field to allow all tools.
#[serde(default, skip_serializing_if = "Option::is_none")]
available_tools: Option<Vec<String>>,
},
StreamableHttp {
name: String,
Expand All @@ -216,6 +225,9 @@ pub enum RecipeExtensionDto {
socket: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
bundled: Option<bool>,
/// Tool allowlist for this extension. Omit this field to allow all tools.
#[serde(default, skip_serializing_if = "Option::is_none")]
available_tools: Option<Vec<String>>,
},
}

Expand All @@ -227,6 +239,7 @@ impl Default for RecipeExtensionDto {
display_name: None,
timeout: None,
bundled: None,
available_tools: None,
}
}
}
Expand Down
70 changes: 70 additions & 0 deletions crates/goose/acp-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@
"null"
]
},
"available_tools": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Tool allowlist for this extension. Omit this field to allow all tools."
},
"type": {
"type": "string",
"const": "builtin"
Expand Down Expand Up @@ -87,6 +97,16 @@
"null"
]
},
"available_tools": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Tool allowlist for this extension. Omit this field to allow all tools."
},
"type": {
"type": "string",
"const": "platform"
Expand Down Expand Up @@ -134,6 +154,16 @@
"null"
]
},
"available_tools": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Tool allowlist for this extension. Omit this field to allow all tools."
},
"type": {
"type": "string",
"const": "mcp"
Expand Down Expand Up @@ -3630,6 +3660,16 @@
"null"
]
},
"available_tools": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Tool allowlist for this extension. Omit this field to allow all tools."
},
"type": {
"type": "string",
"const": "builtin"
Expand Down Expand Up @@ -3664,6 +3704,16 @@
"null"
]
},
"available_tools": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Tool allowlist for this extension. Omit this field to allow all tools."
},
"type": {
"type": "string",
"const": "platform"
Expand Down Expand Up @@ -3726,6 +3776,16 @@
"null"
]
},
"available_tools": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Tool allowlist for this extension. Omit this field to allow all tools."
},
"type": {
"type": "string",
"const": "stdio"
Expand Down Expand Up @@ -3789,6 +3849,16 @@
"null"
]
},
"available_tools": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Tool allowlist for this extension. Omit this field to allow all tools."
},
"type": {
"type": "string",
"const": "streamable_http"
Expand Down
Loading
Loading