@lovable.dev/mcp-js 0.22.0-rc.0 → 0.22.1-rc.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.
- package/dist/{chunk-KYZVRIEA.js → chunk-CTLKUVDN.js} +1 -1
- package/dist/{chunk-PM4LYSXH.js → chunk-H5JJY7K2.js} +1 -1
- package/dist/{chunk-V57YXRAR.js → chunk-HUUO4LBH.js} +1 -1
- package/dist/{chunk-4BAHMNLD.js → chunk-JQJOZJFB.js} +1 -1
- package/dist/{chunk-S3OANL46.js → chunk-LR6BL2RE.js} +1 -1
- package/dist/{chunk-BE6FQG4R.js → chunk-OGUEUQT6.js} +1 -1
- package/dist/cli/extract-manifest.cjs +1 -1
- package/dist/cli/extract-manifest.js +3 -3
- package/dist/protocols/mcp/index.js +3 -3
- package/dist/protocols/oauth-metadata.js +3 -3
- package/dist/protocols/rest/index.js +4 -4
- package/dist/stacks/supabase/index.cjs +1 -1
- package/dist/stacks/supabase/index.js +6 -6
- package/dist/stacks/supabase/vite.cjs +1 -1
- package/dist/stacks/supabase/vite.js +1 -1
- package/dist/stacks/tanstack/index.cjs +1 -1
- package/dist/stacks/tanstack/index.js +6 -6
- package/package.json +66 -25
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
methodNotAllowed,
|
|
14
14
|
nowMs,
|
|
15
15
|
withCors
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OGUEUQT6.js";
|
|
17
17
|
|
|
18
18
|
// src/protocols/rest/invoke-tool.ts
|
|
19
19
|
import { getParseErrorMessage, objectFromShape, safeParseAsync } from "@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-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-CTLKUVDN.js";
|
|
5
|
+
import "../chunk-OGUEUQT6.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-
|
|
13
|
+
} from "../chunk-H5JJY7K2.js";
|
|
14
14
|
|
|
15
15
|
// src/manifest/io.ts
|
|
16
16
|
import { randomUUID } from "crypto";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createMcpProtocolHandler
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-LR6BL2RE.js";
|
|
4
4
|
import "../../chunk-6QFZYYUV.js";
|
|
5
5
|
import "../../chunk-MA5H6PSF.js";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-OGUEUQT6.js";
|
|
7
7
|
import "../../chunk-H37EB22A.js";
|
|
8
8
|
import "../../chunk-6DXGZZA4.js";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-H5JJY7K2.js";
|
|
10
10
|
export {
|
|
11
11
|
createMcpProtocolHandler
|
|
12
12
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createOAuthProtectedResourceMetadataHandler
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-HUUO4LBH.js";
|
|
4
|
+
import "../chunk-OGUEUQT6.js";
|
|
5
5
|
import "../chunk-H37EB22A.js";
|
|
6
6
|
import "../chunk-6DXGZZA4.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-H5JJY7K2.js";
|
|
8
8
|
export {
|
|
9
9
|
createOAuthProtectedResourceMetadataHandler
|
|
10
10
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createInvokeToolHandler
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-JQJOZJFB.js";
|
|
4
4
|
import {
|
|
5
5
|
createListToolsHandler
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-CTLKUVDN.js";
|
|
7
7
|
import "../../chunk-6QFZYYUV.js";
|
|
8
8
|
import "../../chunk-MA5H6PSF.js";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-OGUEUQT6.js";
|
|
10
10
|
import "../../chunk-H37EB22A.js";
|
|
11
11
|
import "../../chunk-6DXGZZA4.js";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-H5JJY7K2.js";
|
|
13
13
|
export {
|
|
14
14
|
createInvokeToolHandler,
|
|
15
15
|
createListToolsHandler
|
|
@@ -3,22 +3,22 @@ import {
|
|
|
3
3
|
} from "../../chunk-UQK5UO6C.js";
|
|
4
4
|
import {
|
|
5
5
|
createMcpProtocolHandler
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-LR6BL2RE.js";
|
|
7
7
|
import {
|
|
8
8
|
createOAuthProtectedResourceMetadataHandler
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-HUUO4LBH.js";
|
|
10
10
|
import {
|
|
11
11
|
createInvokeToolHandler
|
|
12
|
-
} from "../../chunk-
|
|
12
|
+
} from "../../chunk-JQJOZJFB.js";
|
|
13
13
|
import {
|
|
14
14
|
createListToolsHandler
|
|
15
|
-
} from "../../chunk-
|
|
15
|
+
} from "../../chunk-CTLKUVDN.js";
|
|
16
16
|
import "../../chunk-6QFZYYUV.js";
|
|
17
17
|
import "../../chunk-MA5H6PSF.js";
|
|
18
18
|
import {
|
|
19
19
|
assertResourcePathShape,
|
|
20
20
|
createRecorderForRuntime
|
|
21
|
-
} from "../../chunk-
|
|
21
|
+
} from "../../chunk-OGUEUQT6.js";
|
|
22
22
|
import {
|
|
23
23
|
trimTrailingSlash
|
|
24
24
|
} from "../../chunk-H37EB22A.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
FUNCTIONS_MOUNT_PREFIX,
|
|
30
30
|
assertFunctionName
|
|
31
31
|
} from "../../chunk-XQWJN6DC.js";
|
|
32
|
-
import "../../chunk-
|
|
32
|
+
import "../../chunk-H5JJY7K2.js";
|
|
33
33
|
|
|
34
34
|
// src/stacks/supabase/handler.ts
|
|
35
35
|
function deriveResourcePath(options) {
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
} from "../../chunk-UQK5UO6C.js";
|
|
4
4
|
import {
|
|
5
5
|
createMcpProtocolHandler
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-LR6BL2RE.js";
|
|
7
7
|
import {
|
|
8
8
|
createOAuthProtectedResourceMetadataHandler
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-HUUO4LBH.js";
|
|
10
10
|
import {
|
|
11
11
|
createInvokeToolHandler
|
|
12
|
-
} from "../../chunk-
|
|
12
|
+
} from "../../chunk-JQJOZJFB.js";
|
|
13
13
|
import {
|
|
14
14
|
createListToolsHandler
|
|
15
|
-
} from "../../chunk-
|
|
15
|
+
} from "../../chunk-CTLKUVDN.js";
|
|
16
16
|
import "../../chunk-6QFZYYUV.js";
|
|
17
17
|
import "../../chunk-MA5H6PSF.js";
|
|
18
18
|
import {
|
|
19
19
|
createRecorderForRuntime
|
|
20
|
-
} from "../../chunk-
|
|
20
|
+
} from "../../chunk-OGUEUQT6.js";
|
|
21
21
|
import "../../chunk-H37EB22A.js";
|
|
22
22
|
import "../../chunk-6DXGZZA4.js";
|
|
23
|
-
import "../../chunk-
|
|
23
|
+
import "../../chunk-H5JJY7K2.js";
|
|
24
24
|
|
|
25
25
|
// src/stacks/tanstack/handlers.ts
|
|
26
26
|
var STACK = "tanstack";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovable.dev/mcp-js",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.1-rc.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": {
|
|
@@ -20,44 +20,84 @@
|
|
|
20
20
|
"types": "./dist/index.d.ts",
|
|
21
21
|
"exports": {
|
|
22
22
|
".": {
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
"import": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"default": "./dist/index.js"
|
|
26
|
+
},
|
|
27
|
+
"require": {
|
|
28
|
+
"types": "./dist/index.d.cts",
|
|
29
|
+
"default": "./dist/index.cjs"
|
|
30
|
+
}
|
|
26
31
|
},
|
|
27
32
|
"./protocols/mcp": {
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
"import": {
|
|
34
|
+
"types": "./dist/protocols/mcp/index.d.ts",
|
|
35
|
+
"default": "./dist/protocols/mcp/index.js"
|
|
36
|
+
},
|
|
37
|
+
"require": {
|
|
38
|
+
"types": "./dist/protocols/mcp/index.d.cts",
|
|
39
|
+
"default": "./dist/protocols/mcp/index.cjs"
|
|
40
|
+
}
|
|
31
41
|
},
|
|
32
42
|
"./protocols/oauth-metadata": {
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
43
|
+
"import": {
|
|
44
|
+
"types": "./dist/protocols/oauth-metadata.d.ts",
|
|
45
|
+
"default": "./dist/protocols/oauth-metadata.js"
|
|
46
|
+
},
|
|
47
|
+
"require": {
|
|
48
|
+
"types": "./dist/protocols/oauth-metadata.d.cts",
|
|
49
|
+
"default": "./dist/protocols/oauth-metadata.cjs"
|
|
50
|
+
}
|
|
36
51
|
},
|
|
37
52
|
"./protocols/rest": {
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
53
|
+
"import": {
|
|
54
|
+
"types": "./dist/protocols/rest/index.d.ts",
|
|
55
|
+
"default": "./dist/protocols/rest/index.js"
|
|
56
|
+
},
|
|
57
|
+
"require": {
|
|
58
|
+
"types": "./dist/protocols/rest/index.d.cts",
|
|
59
|
+
"default": "./dist/protocols/rest/index.cjs"
|
|
60
|
+
}
|
|
41
61
|
},
|
|
42
62
|
"./stacks/tanstack": {
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
63
|
+
"import": {
|
|
64
|
+
"types": "./dist/stacks/tanstack/index.d.ts",
|
|
65
|
+
"default": "./dist/stacks/tanstack/index.js"
|
|
66
|
+
},
|
|
67
|
+
"require": {
|
|
68
|
+
"types": "./dist/stacks/tanstack/index.d.cts",
|
|
69
|
+
"default": "./dist/stacks/tanstack/index.cjs"
|
|
70
|
+
}
|
|
46
71
|
},
|
|
47
72
|
"./stacks/tanstack/vite": {
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
73
|
+
"import": {
|
|
74
|
+
"types": "./dist/stacks/tanstack/vite.d.ts",
|
|
75
|
+
"default": "./dist/stacks/tanstack/vite.js"
|
|
76
|
+
},
|
|
77
|
+
"require": {
|
|
78
|
+
"types": "./dist/stacks/tanstack/vite.d.cts",
|
|
79
|
+
"default": "./dist/stacks/tanstack/vite.cjs"
|
|
80
|
+
}
|
|
51
81
|
},
|
|
52
82
|
"./stacks/supabase": {
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
83
|
+
"import": {
|
|
84
|
+
"types": "./dist/stacks/supabase/index.d.ts",
|
|
85
|
+
"default": "./dist/stacks/supabase/index.js"
|
|
86
|
+
},
|
|
87
|
+
"require": {
|
|
88
|
+
"types": "./dist/stacks/supabase/index.d.cts",
|
|
89
|
+
"default": "./dist/stacks/supabase/index.cjs"
|
|
90
|
+
}
|
|
56
91
|
},
|
|
57
92
|
"./stacks/supabase/vite": {
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
93
|
+
"import": {
|
|
94
|
+
"types": "./dist/stacks/supabase/vite.d.ts",
|
|
95
|
+
"default": "./dist/stacks/supabase/vite.js"
|
|
96
|
+
},
|
|
97
|
+
"require": {
|
|
98
|
+
"types": "./dist/stacks/supabase/vite.d.cts",
|
|
99
|
+
"default": "./dist/stacks/supabase/vite.cjs"
|
|
100
|
+
}
|
|
61
101
|
}
|
|
62
102
|
},
|
|
63
103
|
"bin": {
|
|
@@ -94,6 +134,7 @@
|
|
|
94
134
|
},
|
|
95
135
|
"scripts": {
|
|
96
136
|
"build": "tsup src/index.ts src/protocols/mcp/index.ts src/protocols/oauth-metadata.ts src/protocols/rest/index.ts src/stacks/tanstack/index.ts src/stacks/tanstack/vite.ts src/stacks/supabase/index.ts src/stacks/supabase/vite.ts src/cli/extract-manifest.ts --format cjs,esm --dts --outDir dist",
|
|
137
|
+
"check:package": "tmp=$(mktemp -d) && pnpm pack --out \"$tmp/pkg.tgz\" && tar -xzf \"$tmp/pkg.tgz\" -C \"$tmp\" && publint \"$tmp/package\" --strict && attw \"$tmp/pkg.tgz\"",
|
|
97
138
|
"dev": "tsup src/index.ts src/protocols/mcp/index.ts src/protocols/oauth-metadata.ts src/protocols/rest/index.ts src/stacks/tanstack/index.ts src/stacks/tanstack/vite.ts src/stacks/supabase/index.ts src/stacks/supabase/vite.ts src/cli/extract-manifest.ts --format cjs,esm --dts --watch",
|
|
98
139
|
"typecheck": "tsgo --noEmit",
|
|
99
140
|
"format": "oxfmt --write src/ tests/",
|