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 CHANGED
@@ -1 +1 @@
1
- 1768795824511
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skedyul",
3
- "version": "0.1.51",
3
+ "version": "0.1.54",
4
4
  "description": "The Skedyul SDK for Node.js",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",