File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @openai/agents-core ' : minor
3+ ---
4+
5+ Don't enable ` cacheToolsList ` per default for MCP servers
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export abstract class BaseMCPServerStdio implements MCPServer {
4545 constructor ( options : MCPServerStdioOptions ) {
4646 this . logger =
4747 options . logger ?? getLogger ( DEFAULT_STDIO_MCP_CLIENT_LOGGER_NAME ) ;
48- this . cacheToolsList = options . cacheToolsList ?? true ;
48+ this . cacheToolsList = options . cacheToolsList ?? false ;
4949 }
5050
5151 abstract get name ( ) : string ;
@@ -78,7 +78,7 @@ export abstract class BaseMCPServerStreamableHttp implements MCPServer {
7878 this . logger =
7979 options . logger ??
8080 getLogger ( DEFAULT_STREAMABLE_HTTP_MCP_CLIENT_LOGGER_NAME ) ;
81- this . cacheToolsList = options . cacheToolsList ?? true ;
81+ this . cacheToolsList = options . cacheToolsList ?? false ;
8282 }
8383
8484 abstract get name ( ) : string ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ class StubServer extends NodeMCPServerStdio {
99 constructor ( name : string , tools : any [ ] ) {
1010 super ( { command : 'noop' , name } ) ;
1111 this . toolList = tools ;
12+ this . cacheToolsList = true ;
1213 }
1314 async connect ( ) : Promise < void > { }
1415 async close ( ) : Promise < void > { }
You can’t perform that action at this time.
0 commit comments