Recipe config to limit tool availability (#4020)
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user