@wix/evalforge-evaluator 0.59.0 → 0.60.0
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/build/index.js
CHANGED
|
@@ -6369,7 +6369,15 @@ async function writeMcpToFilesystem(cwd, mcps) {
|
|
|
6369
6369
|
if (mcps.length === 0) return;
|
|
6370
6370
|
const mcpServers = {};
|
|
6371
6371
|
for (const mcp of mcps) {
|
|
6372
|
-
|
|
6372
|
+
const config = mcp.config;
|
|
6373
|
+
for (const [key, value] of Object.entries(config)) {
|
|
6374
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
6375
|
+
throw new Error(
|
|
6376
|
+
`MCP "${mcp.name}" has invalid config: value for key "${key}" must be an object (got ${typeof value}). Config must use keyed format, e.g. { "server-name": { "command": "npx", ... } }`
|
|
6377
|
+
);
|
|
6378
|
+
}
|
|
6379
|
+
mcpServers[key] = value;
|
|
6380
|
+
}
|
|
6373
6381
|
}
|
|
6374
6382
|
const content = JSON.stringify(
|
|
6375
6383
|
{ [import_evalforge_types2.MCP_SERVERS_JSON_KEY]: mcpServers },
|
|
@@ -6725,9 +6733,7 @@ async function executeWithClaudeCode(skills, scenario, options) {
|
|
|
6725
6733
|
})
|
|
6726
6734
|
);
|
|
6727
6735
|
let messageCount = 0;
|
|
6728
|
-
const canUseTool = async () => {
|
|
6729
|
-
return { behavior: "allow" };
|
|
6730
|
-
};
|
|
6736
|
+
const canUseTool = async (_toolName, input) => ({ behavior: "allow", updatedInput: input });
|
|
6731
6737
|
const baseAllowedTools = [
|
|
6732
6738
|
"Skill",
|
|
6733
6739
|
"Read",
|