skedyul 0.1.48 → 0.1.49
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 +4 -2
- package/package.json +1 -1
package/dist/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1768789857887
|
package/dist/server.js
CHANGED
|
@@ -1096,11 +1096,12 @@ function createServerlessInstance(config, tools, callTool, state, mcpServer, reg
|
|
|
1096
1096
|
else if (rpcMethod === 'tools/call') {
|
|
1097
1097
|
const toolName = params?.name;
|
|
1098
1098
|
// Support both formats:
|
|
1099
|
-
// 1. Skedyul format: { inputs: {...}, env: {...} }
|
|
1099
|
+
// 1. Skedyul format: { inputs: {...}, context: {...}, env: {...} }
|
|
1100
1100
|
// 2. Standard MCP format: { ...directArgs }
|
|
1101
1101
|
const rawArgs = (params?.arguments ?? {});
|
|
1102
|
-
const hasSkedyulFormat = 'inputs' in rawArgs || 'env' in rawArgs;
|
|
1102
|
+
const hasSkedyulFormat = 'inputs' in rawArgs || 'env' in rawArgs || 'context' in rawArgs;
|
|
1103
1103
|
const toolInputs = hasSkedyulFormat ? (rawArgs.inputs ?? {}) : rawArgs;
|
|
1104
|
+
const toolContext = hasSkedyulFormat ? rawArgs.context : undefined;
|
|
1104
1105
|
const toolEnv = hasSkedyulFormat ? rawArgs.env : undefined;
|
|
1105
1106
|
// Find tool by name (check both registry key and tool.name)
|
|
1106
1107
|
let toolKey = null;
|
|
@@ -1131,6 +1132,7 @@ function createServerlessInstance(config, tools, callTool, state, mcpServer, reg
|
|
|
1131
1132
|
: toolInputs;
|
|
1132
1133
|
const toolResult = await callTool(toolKey, {
|
|
1133
1134
|
inputs: validatedInputs,
|
|
1135
|
+
context: toolContext,
|
|
1134
1136
|
env: toolEnv,
|
|
1135
1137
|
});
|
|
1136
1138
|
// Transform internal format to MCP protocol format
|