@lovable.dev/mcp-js 0.9.0 → 0.9.1

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.
@@ -5,7 +5,7 @@ import {
5
5
  headResponse,
6
6
  methodNotAllowed,
7
7
  withCors
8
- } from "./chunk-FQLM4JDU.js";
8
+ } from "./chunk-YQBOGY7D.js";
9
9
 
10
10
  // src/protocols/rest/list-tools.ts
11
11
  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-FQLM4JDU.js";
10
+ } from "./chunk-YQBOGY7D.js";
11
11
  import {
12
12
  describeError,
13
13
  log
@@ -8,7 +8,7 @@ import {
8
8
  createRequestAuthorizer,
9
9
  methodNotAllowed,
10
10
  withCors
11
- } from "./chunk-FQLM4JDU.js";
11
+ } from "./chunk-YQBOGY7D.js";
12
12
 
13
13
  // src/protocols/rest/invoke-tool.ts
14
14
  import { getParseErrorMessage, objectFromShape, safeParseAsync } from "@modelcontextprotocol/sdk/server/zod-compat.js";
@@ -5,7 +5,7 @@ import {
5
5
  corsPreflightResponse,
6
6
  createRequestAuthorizer,
7
7
  withCors
8
- } from "./chunk-FQLM4JDU.js";
8
+ } from "./chunk-YQBOGY7D.js";
9
9
  import {
10
10
  describeError,
11
11
  log
@@ -225,6 +225,7 @@ async function fetchVerificationKeySet(jwksUri) {
225
225
  async function verifyJwtClaims(token, keySet, issuer, audience, auth) {
226
226
  try {
227
227
  const { payload } = await jwtVerify(token, keySet, {
228
+ typ: "at+jwt",
228
229
  // `issuer` is trimmed of any trailing slash; accept both forms so a token whose
229
230
  // `iss` carries the slash the AS publishes still verifies.
230
231
  issuer: [issuer, `${issuer}/`],
@@ -316,6 +316,7 @@ async function fetchVerificationKeySet(jwksUri) {
316
316
  async function verifyJwtClaims(token, keySet, issuer, audience, auth) {
317
317
  try {
318
318
  const { payload } = await (0, import_jose.jwtVerify)(token, keySet, {
319
+ typ: "at+jwt",
319
320
  // `issuer` is trimmed of any trailing slash; accept both forms so a token whose
320
321
  // `iss` carries the slash the AS publishes still verifies.
321
322
  issuer: [issuer, `${issuer}/`],
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  createMcpProtocolHandler
3
- } from "../../chunk-CJMHLE7F.js";
3
+ } from "../../chunk-OXSSMKQE.js";
4
4
  import "../../chunk-MA5H6PSF.js";
5
- import "../../chunk-FQLM4JDU.js";
5
+ import "../../chunk-YQBOGY7D.js";
6
6
  import "../../chunk-QC3DXQTH.js";
7
7
  import "../../chunk-6DXGZZA4.js";
8
8
  export {
@@ -318,6 +318,7 @@ async function fetchVerificationKeySet(jwksUri) {
318
318
  async function verifyJwtClaims(token, keySet, issuer, audience, auth) {
319
319
  try {
320
320
  const { payload } = await (0, import_jose.jwtVerify)(token, keySet, {
321
+ typ: "at+jwt",
321
322
  // `issuer` is trimmed of any trailing slash; accept both forms so a token whose
322
323
  // `iss` carries the slash the AS publishes still verifies.
323
324
  issuer: [issuer, `${issuer}/`],
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createOAuthProtectedResourceMetadataHandler
3
- } from "../chunk-3GQXQBYQ.js";
4
- import "../chunk-FQLM4JDU.js";
3
+ } from "../chunk-4JO3BZQG.js";
4
+ import "../chunk-YQBOGY7D.js";
5
5
  import "../chunk-QC3DXQTH.js";
6
6
  import "../chunk-6DXGZZA4.js";
7
7
  export {
@@ -326,6 +326,7 @@ async function fetchVerificationKeySet(jwksUri) {
326
326
  async function verifyJwtClaims(token, keySet, issuer, audience, auth) {
327
327
  try {
328
328
  const { payload } = await (0, import_jose.jwtVerify)(token, keySet, {
329
+ typ: "at+jwt",
329
330
  // `issuer` is trimmed of any trailing slash; accept both forms so a token whose
330
331
  // `iss` carries the slash the AS publishes still verifies.
331
332
  issuer: [issuer, `${issuer}/`],
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  createInvokeToolHandler
3
- } from "../../chunk-SBKIKJNB.js";
3
+ } from "../../chunk-6N7B7NZY.js";
4
4
  import "../../chunk-MA5H6PSF.js";
5
5
  import {
6
6
  createListToolsHandler
7
- } from "../../chunk-BG3HOZXZ.js";
8
- import "../../chunk-FQLM4JDU.js";
7
+ } from "../../chunk-2RGXCDBU.js";
8
+ import "../../chunk-YQBOGY7D.js";
9
9
  import "../../chunk-QC3DXQTH.js";
10
10
  import "../../chunk-6DXGZZA4.js";
11
11
  export {
@@ -8,7 +8,7 @@ var import_node_path = require("path");
8
8
  var import_vite2 = require("vite");
9
9
 
10
10
  // package.json
11
- var version = "0.9.0";
11
+ var version = "0.9.1";
12
12
 
13
13
  // src/protocols/rest/list-tools.ts
14
14
  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-BG3HOZXZ.js";
5
- import "../../../chunk-FQLM4JDU.js";
4
+ } from "../../../chunk-2RGXCDBU.js";
5
+ import "../../../chunk-YQBOGY7D.js";
6
6
  import "../../../chunk-QC3DXQTH.js";
7
7
  import {
8
8
  isFileMissing
@@ -16,7 +16,7 @@ import { dirname, resolve } from "path";
16
16
  import { resolveConfig } from "vite";
17
17
 
18
18
  // package.json
19
- var version = "0.9.0";
19
+ var version = "0.9.1";
20
20
 
21
21
  // src/stacks/tanstack/extract-manifest.ts
22
22
  var MANIFEST_VERSION = 1;
@@ -328,6 +328,7 @@ async function fetchVerificationKeySet(jwksUri) {
328
328
  async function verifyJwtClaims(token, keySet, issuer, audience, auth) {
329
329
  try {
330
330
  const { payload } = await (0, import_jose.jwtVerify)(token, keySet, {
331
+ typ: "at+jwt",
331
332
  // `issuer` is trimmed of any trailing slash; accept both forms so a token whose
332
333
  // `iss` carries the slash the AS publishes still verifies.
333
334
  issuer: [issuer, `${issuer}/`],
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  createMcpProtocolHandler
3
- } from "../../chunk-CJMHLE7F.js";
3
+ } from "../../chunk-OXSSMKQE.js";
4
4
  import {
5
5
  createOAuthProtectedResourceMetadataHandler
6
- } from "../../chunk-3GQXQBYQ.js";
6
+ } from "../../chunk-4JO3BZQG.js";
7
7
  import {
8
8
  createInvokeToolHandler
9
- } from "../../chunk-SBKIKJNB.js";
9
+ } from "../../chunk-6N7B7NZY.js";
10
10
  import "../../chunk-MA5H6PSF.js";
11
11
  import {
12
12
  createListToolsHandler
13
- } from "../../chunk-BG3HOZXZ.js";
14
- import "../../chunk-FQLM4JDU.js";
13
+ } from "../../chunk-2RGXCDBU.js";
14
+ import "../../chunk-YQBOGY7D.js";
15
15
  import "../../chunk-QC3DXQTH.js";
16
16
  import "../../chunk-6DXGZZA4.js";
17
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovable.dev/mcp-js",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Author MCP servers for Lovable apps. Declare tools with defineTool, register them in defineMcp, and the framework adapter (TanStack today, Supabase Edge Functions next) emits the route(s) at build time.",
5
5
  "type": "module",
6
6
  "repository": {