@@ -39,10 +39,9 @@ import { callActorGetDataset, defaultTools, getActorsAsTools, toolCategories } f
3939import { decodeDotPropertyNames } from '../tools/utils.js' ;
4040import type { ActorMcpTool , ActorTool , HelperTool , ToolEntry } from '../types.js' ;
4141import { buildActorResponseContent } from '../utils/actor-response.js' ;
42- import { cloneToolEntry } from '../utils/tools.js' ;
4342import { buildMCPResponse } from '../utils/mcp.js' ;
4443import { createProgressTracker } from '../utils/progress.js' ;
45- import { getToolPublicFieldOnly } from '../utils/tools.js' ;
44+ import { cloneToolEntry , getToolPublicFieldOnly } from '../utils/tools.js' ;
4645import { connectMCPClient } from './client.js' ;
4746import { EXTERNAL_TOOL_CALL_TIMEOUT_MSEC , LOG_LEVEL_MAP } from './const.js' ;
4847import { processParamsGetTools } from './utils.js' ;
@@ -269,10 +268,9 @@ export class ActorsMcpServer {
269268 if ( wrap . type === 'actor'
270269 || ( wrap . type === 'internal' && wrap . tool . name === HelperTools . ACTOR_CALL )
271270 || ( wrap . type === 'internal' && wrap . tool . name === HelperTools . ACTOR_OUTPUT_GET ) ) {
272-
273271 // Clone the tool before modifying it to avoid affecting shared objects
274272 const clonedWrap = cloneToolEntry ( wrap ) ;
275-
273+
276274 // Add Skyfire instructions to description if not already present
277275 if ( ! clonedWrap . tool . description . includes ( SKYFIRE_TOOL_INSTRUCTIONS ) ) {
278276 clonedWrap . tool . description += `\n\n${ SKYFIRE_TOOL_INSTRUCTIONS } ` ;
@@ -287,7 +285,7 @@ export class ActorsMcpServer {
287285 } ;
288286 }
289287 }
290-
288+
291289 // Store the cloned and modified tool
292290 this . tools . set ( clonedWrap . tool . name , clonedWrap ) ;
293291 } else {
0 commit comments