mcp-use 1.2.5-canary.1 → 1.2.5-canary.3

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.
@@ -1054,7 +1054,7 @@ var McpServer = class {
1054
1054
  async readBuildManifest() {
1055
1055
  try {
1056
1056
  const manifestPath = pathHelpers.join(
1057
- getCwd(),
1057
+ isDeno ? "." : getCwd(),
1058
1058
  "dist",
1059
1059
  "mcp-use.json"
1060
1060
  );
@@ -1396,14 +1396,14 @@ if (container && Component) {
1396
1396
  async mountWidgetsProduction(options) {
1397
1397
  const baseRoute = options?.baseRoute || "/mcp-use/widgets";
1398
1398
  const widgetsDir = pathHelpers.join(
1399
- getCwd(),
1399
+ isDeno ? "." : getCwd(),
1400
1400
  "dist",
1401
1401
  "resources",
1402
1402
  "widgets"
1403
1403
  );
1404
1404
  console.log("widgetsDir", widgetsDir);
1405
1405
  this.setupWidgetRoutes();
1406
- const manifestPath = pathHelpers.join(getCwd(), "dist", "mcp-use.json");
1406
+ const manifestPath = "./dist/mcp-use.json";
1407
1407
  let widgets = [];
1408
1408
  try {
1409
1409
  const manifestContent = await fsHelpers.readFileSync(manifestPath, "utf8");
@@ -1016,7 +1016,7 @@ var McpServer = class {
1016
1016
  async readBuildManifest() {
1017
1017
  try {
1018
1018
  const manifestPath = pathHelpers.join(
1019
- getCwd(),
1019
+ isDeno ? "." : getCwd(),
1020
1020
  "dist",
1021
1021
  "mcp-use.json"
1022
1022
  );
@@ -1358,14 +1358,14 @@ if (container && Component) {
1358
1358
  async mountWidgetsProduction(options) {
1359
1359
  const baseRoute = options?.baseRoute || "/mcp-use/widgets";
1360
1360
  const widgetsDir = pathHelpers.join(
1361
- getCwd(),
1361
+ isDeno ? "." : getCwd(),
1362
1362
  "dist",
1363
1363
  "resources",
1364
1364
  "widgets"
1365
1365
  );
1366
1366
  console.log("widgetsDir", widgetsDir);
1367
1367
  this.setupWidgetRoutes();
1368
- const manifestPath = pathHelpers.join(getCwd(), "dist", "mcp-use.json");
1368
+ const manifestPath = "./dist/mcp-use.json";
1369
1369
  let widgets = [];
1370
1370
  try {
1371
1371
  const manifestContent = await fsHelpers.readFileSync(manifestPath, "utf8");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mcp-use",
3
3
  "type": "module",
4
- "version": "1.2.5-canary.1",
4
+ "version": "1.2.5-canary.3",
5
5
  "packageManager": "pnpm@10.6.1",
6
6
  "description": "Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents and Clients + MCP Servers with support for MCP-UI.",
7
7
  "author": "mcp-use, Inc.",