@lovable.dev/mcp-js 0.19.0 → 0.20.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.
@@ -6,7 +6,7 @@ import {
6
6
  headResponse,
7
7
  methodNotAllowed,
8
8
  withCors
9
- } from "./chunk-5FX6IIQ6.js";
9
+ } from "./chunk-EPEEEI3C.js";
10
10
 
11
11
  // src/protocols/rest/list-tools.ts
12
12
  import { objectFromShape } from "@modelcontextprotocol/sdk/server/zod-compat.js";
@@ -7,7 +7,7 @@ import {
7
7
  oauthConfigurationErrorResponse,
8
8
  resolveProtectedResource,
9
9
  withCors
10
- } from "./chunk-5FX6IIQ6.js";
10
+ } from "./chunk-EPEEEI3C.js";
11
11
  import {
12
12
  describeError,
13
13
  log
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-6DXGZZA4.js";
14
14
  import {
15
15
  version
16
- } from "./chunk-CDZ7MBXC.js";
16
+ } from "./chunk-FTTVLHNN.js";
17
17
 
18
18
  // src/core/http.ts
19
19
  var JSON_HEADERS = { "Content-Type": "application/json" };
@@ -132,7 +132,7 @@ var BaseMetricRecorder = class {
132
132
  this.config = config;
133
133
  this.server = server;
134
134
  this.deps = deps;
135
- this.doFetch = deps.fetch ?? globalThis.fetch;
135
+ this.doFetch = deps.fetch ?? (typeof globalThis.fetch === "function" ? globalThis.fetch.bind(globalThis) : void 0);
136
136
  this.usesLovableEndpoint = config.endpoint === DEFAULT_METRICS_ENDPOINT;
137
137
  const headers = {};
138
138
  if (!this.usesLovableEndpoint) {
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.19.0";
2
+ var version = "0.20.0";
3
3
 
4
4
  export {
5
5
  version
@@ -10,7 +10,7 @@ import {
10
10
  methodNotAllowed,
11
11
  nowMs,
12
12
  withCors
13
- } from "./chunk-5FX6IIQ6.js";
13
+ } from "./chunk-EPEEEI3C.js";
14
14
 
15
15
  // src/protocols/rest/invoke-tool.ts
16
16
  import { getParseErrorMessage, objectFromShape, safeParseAsync } from "@modelcontextprotocol/sdk/server/zod-compat.js";
@@ -7,7 +7,7 @@ import {
7
7
  createRequestAuthorizer,
8
8
  nowMs,
9
9
  withCors
10
- } from "./chunk-5FX6IIQ6.js";
10
+ } from "./chunk-EPEEEI3C.js";
11
11
  import {
12
12
  describeError,
13
13
  log
@@ -13,7 +13,7 @@ function isFileMissing(err) {
13
13
  }
14
14
 
15
15
  // package.json
16
- var version = "0.19.0";
16
+ var version = "0.20.0";
17
17
 
18
18
  // src/protocols/rest/list-tools.ts
19
19
  var import_zod_compat = require("@modelcontextprotocol/sdk/server/zod-compat.js");
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  buildMcpListing
4
- } from "../chunk-OMWXY6WY.js";
5
- import "../chunk-5FX6IIQ6.js";
4
+ } from "../chunk-7JJEPFSO.js";
5
+ import "../chunk-EPEEEI3C.js";
6
6
  import "../chunk-H37EB22A.js";
7
7
  import "../chunk-6DXGZZA4.js";
8
8
  import {
@@ -10,7 +10,7 @@ import {
10
10
  } from "../chunk-Y3ZFPEQH.js";
11
11
  import {
12
12
  version
13
- } from "../chunk-CDZ7MBXC.js";
13
+ } from "../chunk-FTTVLHNN.js";
14
14
 
15
15
  // src/manifest/io.ts
16
16
  import { randomUUID } from "crypto";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  createMcpProtocolHandler
3
- } from "../../chunk-CLXKPZZE.js";
3
+ } from "../../chunk-WW7NRRCJ.js";
4
4
  import "../../chunk-MA5H6PSF.js";
5
- import "../../chunk-5FX6IIQ6.js";
5
+ import "../../chunk-EPEEEI3C.js";
6
6
  import "../../chunk-H37EB22A.js";
7
7
  import "../../chunk-6DXGZZA4.js";
8
- import "../../chunk-CDZ7MBXC.js";
8
+ import "../../chunk-FTTVLHNN.js";
9
9
  export {
10
10
  createMcpProtocolHandler
11
11
  };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createOAuthProtectedResourceMetadataHandler
3
- } from "../chunk-UEOBGHXF.js";
4
- import "../chunk-5FX6IIQ6.js";
3
+ } from "../chunk-DUNDNXK5.js";
4
+ import "../chunk-EPEEEI3C.js";
5
5
  import "../chunk-H37EB22A.js";
6
6
  import "../chunk-6DXGZZA4.js";
7
- import "../chunk-CDZ7MBXC.js";
7
+ import "../chunk-FTTVLHNN.js";
8
8
  export {
9
9
  createOAuthProtectedResourceMetadataHandler
10
10
  };
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  createInvokeToolHandler
3
- } from "../../chunk-57ZH2WW5.js";
3
+ } from "../../chunk-WKIXRW46.js";
4
4
  import {
5
5
  createListToolsHandler
6
- } from "../../chunk-OMWXY6WY.js";
6
+ } from "../../chunk-7JJEPFSO.js";
7
7
  import "../../chunk-MA5H6PSF.js";
8
- import "../../chunk-5FX6IIQ6.js";
8
+ import "../../chunk-EPEEEI3C.js";
9
9
  import "../../chunk-H37EB22A.js";
10
10
  import "../../chunk-6DXGZZA4.js";
11
- import "../../chunk-CDZ7MBXC.js";
11
+ import "../../chunk-FTTVLHNN.js";
12
12
  export {
13
13
  createInvokeToolHandler,
14
14
  createListToolsHandler
@@ -174,7 +174,7 @@ function describeError(err) {
174
174
  }
175
175
 
176
176
  // package.json
177
- var version = "0.19.0";
177
+ var version = "0.20.0";
178
178
 
179
179
  // src/metrics/otlp.ts
180
180
  var SCOPE_NAME = "@lovable.dev/mcp-js";
@@ -257,7 +257,7 @@ var BaseMetricRecorder = class {
257
257
  this.config = config;
258
258
  this.server = server;
259
259
  this.deps = deps;
260
- this.doFetch = deps.fetch ?? globalThis.fetch;
260
+ this.doFetch = deps.fetch ?? (typeof globalThis.fetch === "function" ? globalThis.fetch.bind(globalThis) : void 0);
261
261
  this.usesLovableEndpoint = config.endpoint === DEFAULT_METRICS_ENDPOINT;
262
262
  const headers = {};
263
263
  if (!this.usesLovableEndpoint) {
@@ -3,21 +3,21 @@ import {
3
3
  } from "../../chunk-UQK5UO6C.js";
4
4
  import {
5
5
  createMcpProtocolHandler
6
- } from "../../chunk-CLXKPZZE.js";
6
+ } from "../../chunk-WW7NRRCJ.js";
7
7
  import {
8
8
  createOAuthProtectedResourceMetadataHandler
9
- } from "../../chunk-UEOBGHXF.js";
9
+ } from "../../chunk-DUNDNXK5.js";
10
10
  import {
11
11
  createInvokeToolHandler
12
- } from "../../chunk-57ZH2WW5.js";
12
+ } from "../../chunk-WKIXRW46.js";
13
13
  import {
14
14
  createListToolsHandler
15
- } from "../../chunk-OMWXY6WY.js";
15
+ } from "../../chunk-7JJEPFSO.js";
16
16
  import "../../chunk-MA5H6PSF.js";
17
17
  import {
18
18
  assertResourcePathShape,
19
19
  createRecorderForRuntime
20
- } from "../../chunk-5FX6IIQ6.js";
20
+ } from "../../chunk-EPEEEI3C.js";
21
21
  import {
22
22
  trimTrailingSlash
23
23
  } from "../../chunk-H37EB22A.js";
@@ -28,7 +28,7 @@ import {
28
28
  FUNCTIONS_MOUNT_PREFIX,
29
29
  assertFunctionName
30
30
  } from "../../chunk-XQWJN6DC.js";
31
- import "../../chunk-CDZ7MBXC.js";
31
+ import "../../chunk-FTTVLHNN.js";
32
32
 
33
33
  // src/stacks/supabase/handler.ts
34
34
  function deriveResourcePath(options) {
@@ -33,7 +33,7 @@ var import_node_fs = require("fs");
33
33
  var import_node_path = require("path");
34
34
 
35
35
  // package.json
36
- var version = "0.19.0";
36
+ var version = "0.20.0";
37
37
 
38
38
  // src/core/fs-errors.ts
39
39
  function isFileMissing(err) {
@@ -7,7 +7,7 @@ import {
7
7
  } from "../../chunk-XQWJN6DC.js";
8
8
  import {
9
9
  version
10
- } from "../../chunk-CDZ7MBXC.js";
10
+ } from "../../chunk-FTTVLHNN.js";
11
11
 
12
12
  // src/stacks/supabase/vite.ts
13
13
  import { resolve as resolve2, sep as sep2 } from "path";
@@ -129,7 +129,7 @@ function describeError(err) {
129
129
  }
130
130
 
131
131
  // package.json
132
- var version = "0.19.0";
132
+ var version = "0.20.0";
133
133
 
134
134
  // src/metrics/otlp.ts
135
135
  var SCOPE_NAME = "@lovable.dev/mcp-js";
@@ -212,7 +212,7 @@ var BaseMetricRecorder = class {
212
212
  this.config = config;
213
213
  this.server = server;
214
214
  this.deps = deps;
215
- this.doFetch = deps.fetch ?? globalThis.fetch;
215
+ this.doFetch = deps.fetch ?? (typeof globalThis.fetch === "function" ? globalThis.fetch.bind(globalThis) : void 0);
216
216
  this.usesLovableEndpoint = config.endpoint === DEFAULT_METRICS_ENDPOINT;
217
217
  const headers = {};
218
218
  if (!this.usesLovableEndpoint) {
@@ -3,23 +3,23 @@ import {
3
3
  } from "../../chunk-UQK5UO6C.js";
4
4
  import {
5
5
  createMcpProtocolHandler
6
- } from "../../chunk-CLXKPZZE.js";
6
+ } from "../../chunk-WW7NRRCJ.js";
7
7
  import {
8
8
  createOAuthProtectedResourceMetadataHandler
9
- } from "../../chunk-UEOBGHXF.js";
9
+ } from "../../chunk-DUNDNXK5.js";
10
10
  import {
11
11
  createInvokeToolHandler
12
- } from "../../chunk-57ZH2WW5.js";
12
+ } from "../../chunk-WKIXRW46.js";
13
13
  import {
14
14
  createListToolsHandler
15
- } from "../../chunk-OMWXY6WY.js";
15
+ } from "../../chunk-7JJEPFSO.js";
16
16
  import "../../chunk-MA5H6PSF.js";
17
17
  import {
18
18
  createRecorderForRuntime
19
- } from "../../chunk-5FX6IIQ6.js";
19
+ } from "../../chunk-EPEEEI3C.js";
20
20
  import "../../chunk-H37EB22A.js";
21
21
  import "../../chunk-6DXGZZA4.js";
22
- import "../../chunk-CDZ7MBXC.js";
22
+ import "../../chunk-FTTVLHNN.js";
23
23
 
24
24
  // src/stacks/tanstack/handlers.ts
25
25
  var STACK = "tanstack";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovable.dev/mcp-js",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "Author MCP servers for Lovable apps. Declare tools with defineTool, register them in defineMcp, and a framework adapter (TanStack or Supabase Edge Functions) emits the route(s) at build time.",
5
5
  "type": "module",
6
6
  "repository": {