Recipe config to limit tool availability (#4020)

This commit is contained in:
Jarrod Sibbison
2025-08-18 16:14:23 +10:00
committed by GitHub
parent c8d9578c3a
commit 43211803a9
13 changed files with 313 additions and 10 deletions
+6
View File
@@ -159,6 +159,7 @@ export type ExtendPromptResponse = {
* Represents the different types of MCP extensions that can be added to the manager
*/
export type ExtensionConfig = {
available_tools?: Array<string>;
/**
* Whether this extension is bundled with Goose
*/
@@ -175,6 +176,7 @@ export type ExtensionConfig = {
uri: string;
} | {
args: Array<string>;
available_tools?: Array<string>;
/**
* Whether this extension is bundled with Goose
*/
@@ -190,6 +192,7 @@ export type ExtensionConfig = {
timeout?: number | null;
type: 'stdio';
} | {
available_tools?: Array<string>;
/**
* Whether this extension is bundled with Goose
*/
@@ -203,6 +206,7 @@ export type ExtensionConfig = {
timeout?: number | null;
type: 'builtin';
} | {
available_tools?: Array<string>;
/**
* Whether this extension is bundled with Goose
*/
@@ -221,6 +225,7 @@ export type ExtensionConfig = {
type: 'streamable_http';
uri: string;
} | {
available_tools?: Array<string>;
/**
* Whether this extension is bundled with Goose
*/
@@ -239,6 +244,7 @@ export type ExtensionConfig = {
tools: Array<Tool>;
type: 'frontend';
} | {
available_tools?: Array<string>;
/**
* The Python code to execute
*/