From 74ecb9fb615f03aa1305d3568f32ba4181b06878 Mon Sep 17 00:00:00 2001 From: Jiri Spilka Date: Tue, 30 Sep 2025 13:44:56 +0200 Subject: [PATCH] fix: comment out skyfire input schema modification --- src/mcp/server.ts | 46 ++++++++++++++++++++++------------------------ 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/src/mcp/server.ts b/src/mcp/server.ts index 152d761e..9c1e78fb 100644 --- a/src/mcp/server.ts +++ b/src/mcp/server.ts @@ -26,10 +26,8 @@ import log from '@apify/log'; import { ApifyClient } from '../apify-client.js'; import { - HelperTools, SERVER_NAME, SERVER_VERSION, - SKYFIRE_PAY_ID_PROPERTY_DESCRIPTION, SKYFIRE_README_CONTENT, SKYFIRE_TOOL_INSTRUCTIONS, } from '../const.js'; @@ -263,28 +261,28 @@ export class ActorsMcpServer { this.tools.set(wrap.tool.name, wrap); } // Handle Skyfire mode modifications once per tool upsert - if (this.options.skyfireMode) { - for (const wrap of tools) { - if (wrap.type === 'actor' - || (wrap.type === 'internal' && wrap.tool.name === HelperTools.ACTOR_CALL) - || (wrap.type === 'internal' && wrap.tool.name === HelperTools.ACTOR_OUTPUT_GET)) { - // Add Skyfire instructions to description if not already present - if (!wrap.tool.description.includes(SKYFIRE_TOOL_INSTRUCTIONS)) { - wrap.tool.description += `\n\n${SKYFIRE_TOOL_INSTRUCTIONS}`; - } - // Add skyfire-pay-id property if not present - if (wrap.tool.inputSchema && 'properties' in wrap.tool.inputSchema) { - const props = wrap.tool.inputSchema.properties as Record; - if (!props['skyfire-pay-id']) { - props['skyfire-pay-id'] = { - type: 'string', - description: SKYFIRE_PAY_ID_PROPERTY_DESCRIPTION, - }; - } - } - } - } - } + // if (this.options.skyfireMode) { + // for (const wrap of tools) { + // if (wrap.type === 'actor' + // || (wrap.type === 'internal' && wrap.tool.name === HelperTools.ACTOR_CALL) + // || (wrap.type === 'internal' && wrap.tool.name === HelperTools.ACTOR_OUTPUT_GET)) { + // // Add Skyfire instructions to description if not already present + // if (!wrap.tool.description.includes(SKYFIRE_TOOL_INSTRUCTIONS)) { + // wrap.tool.description += `\n\n${SKYFIRE_TOOL_INSTRUCTIONS}`; + // } + // // Add skyfire-pay-id property if not present + // if (wrap.tool.inputSchema && 'properties' in wrap.tool.inputSchema) { + // const props = wrap.tool.inputSchema.properties as Record; + // if (!props['skyfire-pay-id']) { + // props['skyfire-pay-id'] = { + // type: 'string', + // description: SKYFIRE_PAY_ID_PROPERTY_DESCRIPTION, + // }; + // } + // } + // } + // } + // } if (shouldNotifyToolsChangedHandler) this.notifyToolsChangedHandler(); return tools; }