@mcp-use/cli 2.6.0-canary.16 → 2.6.0-canary.18
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/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -3589,11 +3589,15 @@ export default PostHog;
|
|
|
3589
3589
|
try {
|
|
3590
3590
|
const mod = await metadataServer.ssrLoadModule(entryPath);
|
|
3591
3591
|
if (mod.widgetMetadata) {
|
|
3592
|
+
const schemaField = mod.widgetMetadata.inputs || mod.widgetMetadata.props;
|
|
3592
3593
|
widgetMetadata = {
|
|
3593
3594
|
...mod.widgetMetadata,
|
|
3594
3595
|
title: mod.widgetMetadata.title || widgetName,
|
|
3595
3596
|
description: mod.widgetMetadata.description,
|
|
3596
|
-
|
|
3597
|
+
// Pass the full Zod schema object directly (don't extract .shape)
|
|
3598
|
+
// The SDK's normalizeObjectSchema() can handle both complete Zod schemas
|
|
3599
|
+
// and raw shapes, so we preserve the full schema here
|
|
3600
|
+
inputs: schemaField || {}
|
|
3597
3601
|
};
|
|
3598
3602
|
}
|
|
3599
3603
|
await new Promise((resolve) => setTimeout(resolve, 50));
|