@lovable.dev/mcp-js 2.0.4 → 2.1.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.
Files changed (43) hide show
  1. package/dist/{authorize-oCEahmRv.d.cts → authorize-CzyL7nmF.d.cts} +1 -1
  2. package/dist/{authorize-B5VMSzcN.d.ts → authorize-Drz_eJ7O.d.ts} +1 -1
  3. package/dist/{base-DnCoJOZN.d.ts → base-COwtdWE8.d.ts} +1 -1
  4. package/dist/{base-DAkOPRay.d.cts → base-DD4MCXZ6.d.cts} +1 -1
  5. package/dist/cli/extract-manifest.cjs +1 -1
  6. package/dist/cli/extract-manifest.js +1 -1
  7. package/dist/{cors-C0JXMCfE.js → cors-BaRKDl4r.js} +1 -1
  8. package/dist/{cors-DKVbSs1E.cjs → cors-D-X0aP4O.cjs} +1 -1
  9. package/dist/index.d.cts +1 -1
  10. package/dist/index.d.ts +1 -1
  11. package/dist/{io-v7czkKcI.js → io-DG83CLKx.js} +1 -1
  12. package/dist/{io-qjQFeOKp.cjs → io-DZD6xmJQ.cjs} +1 -1
  13. package/dist/{io-D2PGAhYM.d.cts → io-Ds5MRSiK.d.cts} +1 -1
  14. package/dist/{io-BD2TuqtG.d.ts → io-pl5npWDw.d.ts} +1 -1
  15. package/dist/{mcp-CoxglQb6.cjs → mcp-Bx3LUn5O.cjs} +1 -1
  16. package/dist/{mcp-Bs-rssdi.js → mcp-DcmfehoI.js} +1 -1
  17. package/dist/{package-RbfLOg54.js → package-BNFIhH0F.js} +1 -1
  18. package/dist/{package-D1rphzeM.cjs → package-CFVl3oIe.cjs} +1 -1
  19. package/dist/protocols/mcp/index.cjs +1 -1
  20. package/dist/protocols/mcp/index.d.cts +3 -3
  21. package/dist/protocols/mcp/index.d.ts +3 -3
  22. package/dist/protocols/mcp/index.js +1 -1
  23. package/dist/protocols/oauth-metadata.cjs +1 -1
  24. package/dist/protocols/oauth-metadata.d.cts +3 -3
  25. package/dist/protocols/oauth-metadata.d.ts +3 -3
  26. package/dist/protocols/oauth-metadata.js +1 -1
  27. package/dist/stacks/supabase/index.cjs +2 -2
  28. package/dist/stacks/supabase/index.d.cts +1 -1
  29. package/dist/stacks/supabase/index.d.ts +1 -1
  30. package/dist/stacks/supabase/index.js +2 -2
  31. package/dist/stacks/supabase/vite.cjs +1 -1
  32. package/dist/stacks/supabase/vite.d.cts +1 -1
  33. package/dist/stacks/supabase/vite.d.ts +1 -1
  34. package/dist/stacks/supabase/vite.js +1 -1
  35. package/dist/stacks/tanstack/index.cjs +2 -2
  36. package/dist/stacks/tanstack/index.d.cts +2 -2
  37. package/dist/stacks/tanstack/index.d.ts +2 -2
  38. package/dist/stacks/tanstack/index.js +2 -2
  39. package/dist/stacks/tanstack/vite.d.cts +1 -1
  40. package/dist/stacks/tanstack/vite.d.ts +1 -1
  41. package/dist/{types-C6O4ciic.d.cts → types-B3_lX-L1.d.cts} +5 -0
  42. package/dist/{types-C6O4ciic.d.ts → types-B3_lX-L1.d.ts} +5 -0
  43. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import "./types-C6O4ciic.cjs";
1
+ import "./types-B3_lX-L1.cjs";
2
2
  //#region src/metrics/recorder.d.ts
3
3
  type ScheduleBackground = (task: Promise<unknown>) => void;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import "./types-C6O4ciic.js";
1
+ import "./types-B3_lX-L1.js";
2
2
  //#region src/metrics/recorder.d.ts
3
3
  type ScheduleBackground = (task: Promise<unknown>) => void;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { E as McpProtocolEra } from "./types-C6O4ciic.js";
1
+ import { E as McpProtocolEra } from "./types-B3_lX-L1.js";
2
2
  //#region src/metrics/impl/base.d.ts
3
3
  type InvocationOutcome = "ok" | "tool_error" | "handler_error" | "transport_error" | "auth_challenge" | "origin_rejected" | "auth_discovery_config_error" | "auth_discovery_unreachable" | "auth_jwks_config_error" | "auth_jwks_unreachable";
4
4
  /** One recorded MCP call. Carries no arguments or response payloads — only the
@@ -1,4 +1,4 @@
1
- import { E as McpProtocolEra } from "./types-C6O4ciic.cjs";
1
+ import { E as McpProtocolEra } from "./types-B3_lX-L1.cjs";
2
2
  //#region src/metrics/impl/base.d.ts
3
3
  type InvocationOutcome = "ok" | "tool_error" | "handler_error" | "transport_error" | "auth_challenge" | "origin_rejected" | "auth_discovery_config_error" | "auth_discovery_unreachable" | "auth_jwks_config_error" | "auth_jwks_unreachable";
4
4
  /** One recorded MCP call. Carries no arguments or response payloads — only the
@@ -4,7 +4,7 @@ const projectRoot = process.argv[2] ?? process.cwd();
4
4
  import("zod/v3").catch((err) => {
5
5
  const message = err instanceof Error ? err.message : String(err);
6
6
  throw new Error(`@lovable.dev/mcp-js requires zod ^3.25 or ^4.0 to extract MCP schemas. Verify the project's zod dependency and package resolution, then try again. Underlying error: ${message}`);
7
- }).then(() => Promise.resolve().then(() => require("../io-qjQFeOKp.cjs"))).then(({ runExtract }) => runExtract(projectRoot)).catch((err) => {
7
+ }).then(() => Promise.resolve().then(() => require("../io-DZD6xmJQ.cjs"))).then(({ runExtract }) => runExtract(projectRoot)).catch((err) => {
8
8
  console.error(err instanceof Error ? err.message : String(err));
9
9
  process.exit(1);
10
10
  });
@@ -4,7 +4,7 @@ const projectRoot = process.argv[2] ?? process.cwd();
4
4
  import("zod/v3").catch((err) => {
5
5
  const message = err instanceof Error ? err.message : String(err);
6
6
  throw new Error(`@lovable.dev/mcp-js requires zod ^3.25 or ^4.0 to extract MCP schemas. Verify the project's zod dependency and package resolution, then try again. Underlying error: ${message}`);
7
- }).then(() => import("../io-v7czkKcI.js")).then(({ runExtract }) => runExtract(projectRoot)).catch((err) => {
7
+ }).then(() => import("../io-DG83CLKx.js")).then(({ runExtract }) => runExtract(projectRoot)).catch((err) => {
8
8
  console.error(err instanceof Error ? err.message : String(err));
9
9
  process.exit(1);
10
10
  });
@@ -1,5 +1,5 @@
1
1
  import { i as log, n as applyLogLevelFromEnv, o as parseSafeUrl, r as describeError, s as trimTrailingSlash, t as LOG_LEVEL_ENV_VAR, u as resolveMetricsConfig } from "./logger-Ctv5xUSD.js";
2
- import { t as version } from "./package-RbfLOg54.js";
2
+ import { t as version } from "./package-BNFIhH0F.js";
3
3
  import "./metadata-path-CAkNcfyY.js";
4
4
  import { createLocalJWKSet, decodeProtectedHeader, errors, jwtVerify } from "jose";
5
5
  //#region src/core/http.ts
@@ -1,5 +1,5 @@
1
1
  const require_logger = require("./logger-CN1q-KNn.cjs");
2
- const require_package = require("./package-D1rphzeM.cjs");
2
+ const require_package = require("./package-CFVl3oIe.cjs");
3
3
  require("./metadata-path-zd7NSNoa.cjs");
4
4
  let jose = require("jose");
5
5
  //#region src/core/http.ts
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as McpAuthConfig, C as MetricsConfig, D as ProgressUpdate, E as McpProtocolEra, O as ToolContext, S as ZodSchema, T as McpClientInfo, _ as ToolContent, a as EmbeddedResource, b as ZodOutputSchema, c as JsonValue, d as McpDefinition, f as McpDefinitionInput, g as ToolAnnotations, h as TextContent, i as EmbeddedBlobResource, k as JwtClaims, l as JsonValueInput, m as ResourceLinkIcon, n as ContentAnnotations, o as EmbeddedTextResource, p as ResourceLink, r as ContentBlock, s as ImageContent, t as AudioContent, u as McpAllowedOrigins, v as ToolDefinition, w as MetricsOptions, x as ZodRawShape, y as ToolHandlerResult } from "./types-C6O4ciic.cjs";
1
+ import { A as McpAuthConfig, C as MetricsConfig, D as ProgressUpdate, E as McpProtocolEra, O as ToolContext, S as ZodSchema, T as McpClientInfo, _ as ToolContent, a as EmbeddedResource, b as ZodOutputSchema, c as JsonValue, d as McpDefinition, f as McpDefinitionInput, g as ToolAnnotations, h as TextContent, i as EmbeddedBlobResource, k as JwtClaims, l as JsonValueInput, m as ResourceLinkIcon, n as ContentAnnotations, o as EmbeddedTextResource, p as ResourceLink, r as ContentBlock, s as ImageContent, t as AudioContent, u as McpAllowedOrigins, v as ToolDefinition, w as MetricsOptions, x as ZodRawShape, y as ToolHandlerResult } from "./types-B3_lX-L1.cjs";
2
2
  //#region src/core/define.d.ts
3
3
  /**
4
4
  * Declare a single MCP tool. Import the result into your MCP definition's
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as McpAuthConfig, C as MetricsConfig, D as ProgressUpdate, E as McpProtocolEra, O as ToolContext, S as ZodSchema, T as McpClientInfo, _ as ToolContent, a as EmbeddedResource, b as ZodOutputSchema, c as JsonValue, d as McpDefinition, f as McpDefinitionInput, g as ToolAnnotations, h as TextContent, i as EmbeddedBlobResource, k as JwtClaims, l as JsonValueInput, m as ResourceLinkIcon, n as ContentAnnotations, o as EmbeddedTextResource, p as ResourceLink, r as ContentBlock, s as ImageContent, t as AudioContent, u as McpAllowedOrigins, v as ToolDefinition, w as MetricsOptions, x as ZodRawShape, y as ToolHandlerResult } from "./types-C6O4ciic.js";
1
+ import { A as McpAuthConfig, C as MetricsConfig, D as ProgressUpdate, E as McpProtocolEra, O as ToolContext, S as ZodSchema, T as McpClientInfo, _ as ToolContent, a as EmbeddedResource, b as ZodOutputSchema, c as JsonValue, d as McpDefinition, f as McpDefinitionInput, g as ToolAnnotations, h as TextContent, i as EmbeddedBlobResource, k as JwtClaims, l as JsonValueInput, m as ResourceLinkIcon, n as ContentAnnotations, o as EmbeddedTextResource, p as ResourceLink, r as ContentBlock, s as ImageContent, t as AudioContent, u as McpAllowedOrigins, v as ToolDefinition, w as MetricsOptions, x as ZodRawShape, y as ToolHandlerResult } from "./types-B3_lX-L1.js";
2
2
  //#region src/core/define.d.ts
3
3
  /**
4
4
  * Declare a single MCP tool. Import the result into your MCP definition's
@@ -1,5 +1,5 @@
1
1
  import { t as jsonSchemaFromDefinition } from "./schema-CW1jKvio.js";
2
- import { t as version } from "./package-RbfLOg54.js";
2
+ import { t as version } from "./package-BNFIhH0F.js";
3
3
  import { t as isFileMissing } from "./fs-errors-PA2t1TIp.js";
4
4
  import { lstatSync, mkdirSync, readFileSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
5
5
  import { dirname, resolve } from "node:path";
@@ -1,5 +1,5 @@
1
1
  const require_schema = require("./schema-D3vClxb7.cjs");
2
- const require_package = require("./package-D1rphzeM.cjs");
2
+ const require_package = require("./package-CFVl3oIe.cjs");
3
3
  const require_fs_errors = require("./fs-errors-CWNzOV75.cjs");
4
4
  let node_fs = require("node:fs");
5
5
  let node_path = require("node:path");
@@ -1,4 +1,4 @@
1
- import "./types-C6O4ciic.cjs";
1
+ import "./types-B3_lX-L1.cjs";
2
2
  //#region src/manifest/io.d.ts
3
3
  /**
4
4
  * Shape every MCP Vite plugin exposes on its `api` so `runExtract` can read
@@ -1,4 +1,4 @@
1
- import "./types-C6O4ciic.js";
1
+ import "./types-B3_lX-L1.js";
2
2
  //#region src/manifest/io.d.ts
3
3
  /**
4
4
  * Shape every MCP Vite plugin exposes on its `api` so `runExtract` can read
@@ -1,7 +1,7 @@
1
1
  const require_logger = require("./logger-CN1q-KNn.cjs");
2
2
  const require_schema = require("./schema-D3vClxb7.cjs");
3
3
  const require_errors = require("./errors-Cr95rSkB.cjs");
4
- const require_cors = require("./cors-DKVbSs1E.cjs");
4
+ const require_cors = require("./cors-D-X0aP4O.cjs");
5
5
  let _modelcontextprotocol_sdk_server_zod_compat_js = require("@modelcontextprotocol/sdk/server/zod-compat.js");
6
6
  let _modelcontextprotocol_server = require("@modelcontextprotocol/server");
7
7
  //#region src/core/content.ts
@@ -1,7 +1,7 @@
1
1
  import { i as log, r as describeError } from "./logger-Ctv5xUSD.js";
2
2
  import { n as schemaFromDefinition, t as jsonSchemaFromDefinition } from "./schema-CW1jKvio.js";
3
3
  import { i as ToolContext, n as errorSummary, r as resolveToolErrorMessage } from "./errors-Bwd1L0Rf.js";
4
- import { d as nowMs, i as normalizeHttpMethod, l as emitBeforeResponse, n as createRequestAuthorizer, p as finalizeWireResponse, t as evaluateCors, u as createNoopRecorder } from "./cors-C0JXMCfE.js";
4
+ import { d as nowMs, i as normalizeHttpMethod, l as emitBeforeResponse, n as createRequestAuthorizer, p as finalizeWireResponse, t as evaluateCors, u as createNoopRecorder } from "./cors-BaRKDl4r.js";
5
5
  import { getParseErrorMessage, safeParseAsync } from "@modelcontextprotocol/sdk/server/zod-compat.js";
6
6
  import { CLIENT_CAPABILITIES_META_KEY, CLIENT_INFO_META_KEY, McpServer, createMcpHandler } from "@modelcontextprotocol/server";
7
7
  //#region src/core/content.ts
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "2.0.4";
2
+ var version = "2.1.0";
3
3
  //#endregion
4
4
  export { version as t };
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "2.0.4";
2
+ var version = "2.1.0";
3
3
  //#endregion
4
4
  Object.defineProperty(exports, "version", {
5
5
  enumerable: true,
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_mcp = require("../../mcp-CoxglQb6.cjs");
2
+ const require_mcp = require("../../mcp-Bx3LUn5O.cjs");
3
3
  exports.createMcpProtocolHandler = require_mcp.createMcpProtocolHandler;
@@ -1,6 +1,6 @@
1
- import { d as McpDefinition } from "../../types-C6O4ciic.cjs";
2
- import { t as MetricsRecorder } from "../../base-DAkOPRay.cjs";
3
- import { n as ScheduleBackground, t as McpRuntimeOptions } from "../../authorize-oCEahmRv.cjs";
1
+ import { d as McpDefinition } from "../../types-B3_lX-L1.cjs";
2
+ import { t as MetricsRecorder } from "../../base-DD4MCXZ6.cjs";
3
+ import { n as ScheduleBackground, t as McpRuntimeOptions } from "../../authorize-CzyL7nmF.cjs";
4
4
  //#region src/protocols/mcp/protocol.d.ts
5
5
  type McpProtocolHandler = (request: Request, recorder?: MetricsRecorder, scheduleBackground?: ScheduleBackground) => Promise<Response>;
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { d as McpDefinition } from "../../types-C6O4ciic.js";
2
- import { t as MetricsRecorder } from "../../base-DnCoJOZN.js";
3
- import { n as ScheduleBackground, t as McpRuntimeOptions } from "../../authorize-B5VMSzcN.js";
1
+ import { d as McpDefinition } from "../../types-B3_lX-L1.js";
2
+ import { t as MetricsRecorder } from "../../base-COwtdWE8.js";
3
+ import { n as ScheduleBackground, t as McpRuntimeOptions } from "../../authorize-Drz_eJ7O.js";
4
4
  //#region src/protocols/mcp/protocol.d.ts
5
5
  type McpProtocolHandler = (request: Request, recorder?: MetricsRecorder, scheduleBackground?: ScheduleBackground) => Promise<Response>;
6
6
  /**
@@ -1,2 +1,2 @@
1
- import { t as createMcpProtocolHandler } from "../../mcp-Bs-rssdi.js";
1
+ import { t as createMcpProtocolHandler } from "../../mcp-DcmfehoI.js";
2
2
  export { createMcpProtocolHandler };
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_logger = require("../logger-CN1q-KNn.cjs");
3
- const require_cors = require("../cors-DKVbSs1E.cjs");
3
+ const require_cors = require("../cors-D-X0aP4O.cjs");
4
4
  //#region src/protocols/oauth-metadata.ts
5
5
  function notFound() {
6
6
  return new Response(JSON.stringify({ error: "not found" }), {
@@ -1,6 +1,6 @@
1
- import { d as McpDefinition } from "../types-C6O4ciic.cjs";
2
- import { t as MetricsRecorder } from "../base-DAkOPRay.cjs";
3
- import { n as ScheduleBackground, t as McpRuntimeOptions } from "../authorize-oCEahmRv.cjs";
1
+ import { d as McpDefinition } from "../types-B3_lX-L1.cjs";
2
+ import { t as MetricsRecorder } from "../base-DD4MCXZ6.cjs";
3
+ import { n as ScheduleBackground, t as McpRuntimeOptions } from "../authorize-CzyL7nmF.cjs";
4
4
  //#region src/protocols/oauth-metadata.d.ts
5
5
  type OAuthProtectedResourceMetadataHandler = (request: Request, recorder?: MetricsRecorder, scheduleBackground?: ScheduleBackground) => Promise<Response>;
6
6
  declare function createOAuthProtectedResourceMetadataHandler(mcp: McpDefinition, options?: McpRuntimeOptions): OAuthProtectedResourceMetadataHandler;
@@ -1,6 +1,6 @@
1
- import { d as McpDefinition } from "../types-C6O4ciic.js";
2
- import { t as MetricsRecorder } from "../base-DnCoJOZN.js";
3
- import { n as ScheduleBackground, t as McpRuntimeOptions } from "../authorize-B5VMSzcN.js";
1
+ import { d as McpDefinition } from "../types-B3_lX-L1.js";
2
+ import { t as MetricsRecorder } from "../base-COwtdWE8.js";
3
+ import { n as ScheduleBackground, t as McpRuntimeOptions } from "../authorize-Drz_eJ7O.js";
4
4
  //#region src/protocols/oauth-metadata.d.ts
5
5
  type OAuthProtectedResourceMetadataHandler = (request: Request, recorder?: MetricsRecorder, scheduleBackground?: ScheduleBackground) => Promise<Response>;
6
6
  declare function createOAuthProtectedResourceMetadataHandler(mcp: McpDefinition, options?: McpRuntimeOptions): OAuthProtectedResourceMetadataHandler;
@@ -1,5 +1,5 @@
1
1
  import { i as log, r as describeError } from "../logger-Ctv5xUSD.js";
2
- import { a as oauthConfigurationErrorResponse, f as JSON_HEADERS, i as normalizeHttpMethod, l as emitBeforeResponse, m as methodNotAllowed, p as finalizeWireResponse, r as getOAuthRuntime, s as resolveProtectedResource, t as evaluateCors, u as createNoopRecorder } from "../cors-C0JXMCfE.js";
2
+ import { a as oauthConfigurationErrorResponse, f as JSON_HEADERS, i as normalizeHttpMethod, l as emitBeforeResponse, m as methodNotAllowed, p as finalizeWireResponse, r as getOAuthRuntime, s as resolveProtectedResource, t as evaluateCors, u as createNoopRecorder } from "../cors-BaRKDl4r.js";
3
3
  //#region src/protocols/oauth-metadata.ts
4
4
  function notFound() {
5
5
  return new Response(JSON.stringify({ error: "not found" }), {
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_logger = require("../../logger-CN1q-KNn.cjs");
3
- const require_cors = require("../../cors-DKVbSs1E.cjs");
3
+ const require_cors = require("../../cors-D-X0aP4O.cjs");
4
4
  const require_metadata_path = require("../../metadata-path-zd7NSNoa.cjs");
5
- const require_mcp = require("../../mcp-CoxglQb6.cjs");
5
+ const require_mcp = require("../../mcp-Bx3LUn5O.cjs");
6
6
  const require_protocols_oauth_metadata = require("../../protocols/oauth-metadata.cjs");
7
7
  const require_forwarded = require("../../forwarded-B37IdmMX.cjs");
8
8
  const require_paths = require("../../paths-OP318a6c.cjs");
@@ -1,4 +1,4 @@
1
- import { d as McpDefinition } from "../../types-C6O4ciic.cjs";
1
+ import { d as McpDefinition } from "../../types-B3_lX-L1.cjs";
2
2
  //#region src/stacks/supabase/handler.d.ts
3
3
  type SupabaseHandler = (request: Request) => Promise<Response>;
4
4
  interface SupabaseHandlerOptions {
@@ -1,4 +1,4 @@
1
- import { d as McpDefinition } from "../../types-C6O4ciic.js";
1
+ import { d as McpDefinition } from "../../types-B3_lX-L1.js";
2
2
  //#region src/stacks/supabase/handler.d.ts
3
3
  type SupabaseHandler = (request: Request) => Promise<Response>;
4
4
  interface SupabaseHandlerOptions {
@@ -1,7 +1,7 @@
1
1
  import { s as trimTrailingSlash } from "../../logger-Ctv5xUSD.js";
2
- import { c as createRecorderForRuntime, o as assertResourcePathShape } from "../../cors-C0JXMCfE.js";
2
+ import { c as createRecorderForRuntime, o as assertResourcePathShape } from "../../cors-BaRKDl4r.js";
3
3
  import { t as OAUTH_PROTECTED_RESOURCE_METADATA_PATH } from "../../metadata-path-CAkNcfyY.js";
4
- import { t as createMcpProtocolHandler } from "../../mcp-Bs-rssdi.js";
4
+ import { t as createMcpProtocolHandler } from "../../mcp-DcmfehoI.js";
5
5
  import { createOAuthProtectedResourceMetadataHandler } from "../../protocols/oauth-metadata.js";
6
6
  import { t as applyForwardedOrigin } from "../../forwarded-BBXvFeh6.js";
7
7
  import { n as assertFunctionName, t as FUNCTIONS_MOUNT_PREFIX } from "../../paths-IS65L6TA.js";
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_package = require("../../package-D1rphzeM.cjs");
5
+ const require_package = require("../../package-CFVl3oIe.cjs");
6
6
  const require_fs_errors = require("../../fs-errors-CWNzOV75.cjs");
7
7
  const require_supabase_config = require("../../supabase-config-Dz7dnUv0.cjs");
8
8
  const require_paths = require("../../paths-OP318a6c.cjs");
@@ -1,4 +1,4 @@
1
- import { t as McpPluginApi } from "../../io-D2PGAhYM.cjs";
1
+ import { t as McpPluginApi } from "../../io-Ds5MRSiK.cjs";
2
2
  import { Plugin } from "vite";
3
3
  //#region src/stacks/supabase/vite.d.ts
4
4
  interface McpPluginOptions {
@@ -1,4 +1,4 @@
1
- import { t as McpPluginApi } from "../../io-BD2TuqtG.js";
1
+ import { t as McpPluginApi } from "../../io-pl5npWDw.js";
2
2
  import { Plugin } from "vite";
3
3
  //#region src/stacks/supabase/vite.d.ts
4
4
  interface McpPluginOptions {
@@ -1,4 +1,4 @@
1
- import { t as version } from "../../package-RbfLOg54.js";
1
+ import { t as version } from "../../package-BNFIhH0F.js";
2
2
  import { t as isFileMissing } from "../../fs-errors-PA2t1TIp.js";
3
3
  import { t as readSupabaseProjectRef } from "../../supabase-config-CakTU8YF.js";
4
4
  import { n as assertFunctionName, t as FUNCTIONS_MOUNT_PREFIX } from "../../paths-IS65L6TA.js";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_cors = require("../../cors-DKVbSs1E.cjs");
3
- const require_mcp = require("../../mcp-CoxglQb6.cjs");
2
+ const require_cors = require("../../cors-D-X0aP4O.cjs");
3
+ const require_mcp = require("../../mcp-Bx3LUn5O.cjs");
4
4
  const require_protocols_oauth_metadata = require("../../protocols/oauth-metadata.cjs");
5
5
  const require_forwarded = require("../../forwarded-B37IdmMX.cjs");
6
6
  //#region src/stacks/tanstack/handlers.ts
@@ -1,5 +1,5 @@
1
- import { d as McpDefinition } from "../../types-C6O4ciic.cjs";
2
- import { n as ScheduleBackground, t as McpRuntimeOptions } from "../../authorize-oCEahmRv.cjs";
1
+ import { d as McpDefinition } from "../../types-B3_lX-L1.cjs";
2
+ import { n as ScheduleBackground, t as McpRuntimeOptions } from "../../authorize-CzyL7nmF.cjs";
3
3
  //#region src/stacks/tanstack/handlers.d.ts
4
4
  interface TanStackRequest extends Request {
5
5
  waitUntil?: ScheduleBackground;
@@ -1,5 +1,5 @@
1
- import { d as McpDefinition } from "../../types-C6O4ciic.js";
2
- import { n as ScheduleBackground, t as McpRuntimeOptions } from "../../authorize-B5VMSzcN.js";
1
+ import { d as McpDefinition } from "../../types-B3_lX-L1.js";
2
+ import { n as ScheduleBackground, t as McpRuntimeOptions } from "../../authorize-Drz_eJ7O.js";
3
3
  //#region src/stacks/tanstack/handlers.d.ts
4
4
  interface TanStackRequest extends Request {
5
5
  waitUntil?: ScheduleBackground;
@@ -1,5 +1,5 @@
1
- import { c as createRecorderForRuntime } from "../../cors-C0JXMCfE.js";
2
- import { t as createMcpProtocolHandler } from "../../mcp-Bs-rssdi.js";
1
+ import { c as createRecorderForRuntime } from "../../cors-BaRKDl4r.js";
2
+ import { t as createMcpProtocolHandler } from "../../mcp-DcmfehoI.js";
3
3
  import { createOAuthProtectedResourceMetadataHandler } from "../../protocols/oauth-metadata.js";
4
4
  import { t as applyForwardedOrigin } from "../../forwarded-BBXvFeh6.js";
5
5
  //#region src/stacks/tanstack/handlers.ts
@@ -1,4 +1,4 @@
1
- import { t as McpPluginApi } from "../../io-D2PGAhYM.cjs";
1
+ import { t as McpPluginApi } from "../../io-Ds5MRSiK.cjs";
2
2
  import { Plugin } from "vite";
3
3
  //#region src/stacks/tanstack/vite.d.ts
4
4
  interface McpPluginOptions {
@@ -1,4 +1,4 @@
1
- import { t as McpPluginApi } from "../../io-BD2TuqtG.js";
1
+ import { t as McpPluginApi } from "../../io-pl5npWDw.js";
2
2
  import { Plugin } from "vite";
3
3
  //#region src/stacks/tanstack/vite.d.ts
4
4
  interface McpPluginOptions {
@@ -296,6 +296,11 @@ interface ToolAnnotations {
296
296
  idempotentHint?: boolean;
297
297
  /** Tool interacts with external/unbounded systems (DB, network, third-party APIs). */
298
298
  openWorldHint?: boolean;
299
+ /**
300
+ * Asks the Lovable agent to keep up to 50 KB of this tool's result in context instead of the default 5 KB.
301
+ * Honored for the app's published MCP server; meant for results the agent must read whole.
302
+ */
303
+ largeOutputHint?: boolean;
299
304
  }
300
305
  interface ToolHandlerResult {
301
306
  content?: ToolContent;
@@ -296,6 +296,11 @@ interface ToolAnnotations {
296
296
  idempotentHint?: boolean;
297
297
  /** Tool interacts with external/unbounded systems (DB, network, third-party APIs). */
298
298
  openWorldHint?: boolean;
299
+ /**
300
+ * Asks the Lovable agent to keep up to 50 KB of this tool's result in context instead of the default 5 KB.
301
+ * Honored for the app's published MCP server; meant for results the agent must read whole.
302
+ */
303
+ largeOutputHint?: boolean;
299
304
  }
300
305
  interface ToolHandlerResult {
301
306
  content?: ToolContent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovable.dev/mcp-js",
3
- "version": "2.0.4",
3
+ "version": "2.1.0",
4
4
  "engines": {
5
5
  "node": ">=20"
6
6
  },