skedyul 0.1.51 ā 0.1.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.build-stamp +1 -1
- package/dist/server.js +8 -1
- package/package.json +1 -1
package/dist/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1768800688032
|
package/dist/server.js
CHANGED
|
@@ -567,13 +567,20 @@ function createSkedyulServer(config, registry, webhookRegistry) {
|
|
|
567
567
|
inputSchema: wrappedInputSchema,
|
|
568
568
|
outputSchema: outputZodSchema,
|
|
569
569
|
}, async (args) => {
|
|
570
|
-
// Args are in Skedyul format: { inputs: {...}, env: {...} }
|
|
570
|
+
// Args are in Skedyul format: { inputs: {...}, context: {...}, env: {...} }
|
|
571
571
|
const rawArgs = args;
|
|
572
572
|
const toolInputs = (rawArgs.inputs ?? {});
|
|
573
|
+
const toolContext = rawArgs.context;
|
|
573
574
|
const toolEnv = rawArgs.env;
|
|
575
|
+
// Debug logging for MCP SDK tool calls
|
|
576
|
+
console.log('\nš MCP SDK registerTool handler:');
|
|
577
|
+
console.log(' Tool:', toolName);
|
|
578
|
+
console.log(' Raw args:', JSON.stringify(rawArgs, null, 2));
|
|
579
|
+
console.log(' Extracted context:', JSON.stringify(toolContext, null, 2));
|
|
574
580
|
const validatedInputs = inputZodSchema ? inputZodSchema.parse(toolInputs) : toolInputs;
|
|
575
581
|
const result = await callTool(toolKey, {
|
|
576
582
|
inputs: validatedInputs,
|
|
583
|
+
context: toolContext,
|
|
577
584
|
env: toolEnv,
|
|
578
585
|
});
|
|
579
586
|
// Handle error case
|