@mcp-use/cli 2.6.0-canary.7 → 2.6.0-canary.9

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 CHANGED
@@ -3429,6 +3429,14 @@ async function buildWidgets(projectPath) {
3429
3429
  console.log(source_default.gray(`Building ${entries.length} widget(s)...`));
3430
3430
  const react = (await import("@vitejs/plugin-react")).default;
3431
3431
  const tailwindcss = (await import("@tailwindcss/vite")).default;
3432
+ const packageJsonPath = import_node_path5.default.join(projectPath, "package.json");
3433
+ let favicon = "";
3434
+ try {
3435
+ const pkgContent = await fs9.readFile(packageJsonPath, "utf-8");
3436
+ const pkg = JSON.parse(pkgContent);
3437
+ favicon = pkg.mcpUse?.favicon || "";
3438
+ } catch {
3439
+ }
3432
3440
  const builtWidgets = [];
3433
3441
  for (const entry of entries) {
3434
3442
  const widgetName = entry.name;
@@ -3462,7 +3470,8 @@ if (container && Component) {
3462
3470
  <head>
3463
3471
  <meta charset="UTF-8" />
3464
3472
  <meta name="viewport" content="width=device-width,initial-scale=1" />
3465
- <title>${widgetName} Widget</title>
3473
+ <title>${widgetName} Widget</title>${favicon ? `
3474
+ <link rel="icon" href="/mcp-use/public/${favicon}" />` : ""}
3466
3475
  </head>
3467
3476
  <body>
3468
3477
  <div id="widget-root"></div>