create-disposabl-app 0.9.1 → 0.10.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/disposabl.js +1 -1
- package/dist/index.js +1 -1
- package/dist/templates/default/.github/workflows/pipeline.yml +1 -1
- package/dist/templates/default/bun.lock +72 -178
- package/dist/templates/default/package.json +1 -2
- package/dist/templates/default/packages/backend/README.md +3 -1
- package/dist/templates/default/packages/backend/convex/_generated/api.d.ts +6 -0
- package/dist/templates/default/packages/backend/convex/_generated/server.d.ts +0 -2
- package/dist/templates/default/packages/backend/convex/auth.config.ts +2 -10
- package/dist/templates/default/packages/backend/convex/convex.config.ts +3 -14
- package/dist/templates/default/packages/backend/convex/mcpEnterprise/README.md +42 -0
- package/dist/templates/default/packages/backend/convex/mcpEnterprise/internal.ts +153 -0
- package/dist/templates/default/packages/backend/convex/mcpEnterprise/provision.ts +102 -0
- package/dist/templates/default/packages/backend/convex/mcpEnterprise/validator.ts +35 -0
- package/dist/templates/default/packages/backend/convex/schema.ts +18 -0
- package/dist/templates/default/packages/backend/package.json +0 -1
- package/dist/templates/default/packages/disposabl-kit/package.json +4 -2
- package/dist/templates/default/packages/disposabl-kit/server/http.ts +19 -12
- package/dist/templates/default/packages/disposabl-kit/server/lib/functions.ts +12 -0
- package/dist/templates/default/packages/disposabl-kit/server/mcp/enterprise.ts +267 -0
- package/dist/templates/default/packages/disposabl-kit/server/mcp/identity.ts +33 -0
- package/dist/templates/default/vendor/README.md +30 -0
- package/dist/templates/default/vendor/convex-auth-6c0ebf3f.tgz +0 -0
- package/package.json +1 -1
- package/dist/templates/default/patches/@convex-dev%2Fauth@2.0.0-beta.0.patch +0 -310
package/dist/disposabl.js
CHANGED
|
@@ -255,7 +255,7 @@ Sign in to Expo if needed and choose Delete project. Then rerun this command to
|
|
|
255
255
|
// ../cli/package.json
|
|
256
256
|
var package_default = {
|
|
257
257
|
name: "@disposabl/cli",
|
|
258
|
-
version: "0.
|
|
258
|
+
version: "0.10.0",
|
|
259
259
|
type: "module",
|
|
260
260
|
description: "Command-line access to your Disposabl app",
|
|
261
261
|
license: "MIT",
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
|
8
8
|
import { Command, CommanderError } from "commander";
|
|
9
9
|
import * as p2 from "@clack/prompts";
|
|
10
10
|
// package.json
|
|
11
|
-
var version = "0.
|
|
11
|
+
var version = "0.10.0";
|
|
12
12
|
|
|
13
13
|
// ../disposabl-kit/platforms.ts
|
|
14
14
|
var platforms = [
|
|
@@ -108,7 +108,7 @@ jobs:
|
|
|
108
108
|
export AUTH_TARGET=--prod
|
|
109
109
|
target=()
|
|
110
110
|
if [[ "$CHANNEL" != production ]]; then export AUTH_TARGET="--preview-name $CHANNEL"; target=(--preview-name "$CHANNEL"); fi
|
|
111
|
-
bun x --no-install convex deploy --yes "${target[@]}" --cmd-url-env-var-name CONVEX_URL --cmd 'for name in CONVEX_URL CONVEX_SITE_URL; do value=$(printenv "$name"); test -n "$value" || exit 1; for prefix in "" VITE_ EXPO_PUBLIC_; do export "$prefix$name=$value"; printf "%s=%s\n" "$prefix$name" "$value" | tee -a "$GITHUB_ENV" >> "$GITHUB_OUTPUT"; done; done; bun
|
|
111
|
+
bun x --no-install convex deploy --yes "${target[@]}" --cmd-url-env-var-name CONVEX_URL --cmd 'for name in CONVEX_URL CONVEX_SITE_URL; do value=$(printenv "$name"); test -n "$value" || exit 1; for prefix in "" VITE_ EXPO_PUBLIC_; do export "$prefix$name=$value"; printf "%s=%s\n" "$prefix$name" "$value" | tee -a "$GITHUB_ENV" >> "$GITHUB_OUTPUT"; done; done; bun run --cwd ../.. build --filter=@disposabl/web'
|
|
112
112
|
bun x --no-install static-hosting upload $AUTH_TARGET --no-spa --dist ../../apps/web/dist/client
|
|
113
113
|
- name: Report web result
|
|
114
114
|
if: always()
|
|
@@ -191,6 +191,7 @@
|
|
|
191
191
|
"date-fns": "^4.4.0",
|
|
192
192
|
"embla-carousel-react": "^8.6.0",
|
|
193
193
|
"input-otp": "^1.5.0",
|
|
194
|
+
"jose": "^6.2.15",
|
|
194
195
|
"lucide-react": "catalog:",
|
|
195
196
|
"react": "catalog:",
|
|
196
197
|
"react-day-picker": "^10.0.2",
|
|
@@ -244,11 +245,10 @@
|
|
|
244
245
|
}
|
|
245
246
|
},
|
|
246
247
|
"patchedDependencies": {
|
|
247
|
-
"@convex-dev/auth@2.0.0-beta.0": "patches/@convex-dev%2Fauth@2.0.0-beta.0.patch",
|
|
248
248
|
"@convex-dev/static-hosting@0.2.1": "patches/@convex-dev%2Fstatic-hosting@0.2.1.patch"
|
|
249
249
|
},
|
|
250
250
|
"catalog": {
|
|
251
|
-
"@convex-dev/auth": "
|
|
251
|
+
"@convex-dev/auth": "file:vendor/convex-auth-6c0ebf3f.tgz",
|
|
252
252
|
"@convex-dev/mcp": "0.1.0-alpha.7",
|
|
253
253
|
"@convex-dev/static-hosting": "0.2.1",
|
|
254
254
|
"convex": "^1.49.0",
|
|
@@ -1369,8 +1369,7 @@
|
|
|
1369
1369
|
"sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ=="
|
|
1370
1370
|
],
|
|
1371
1371
|
"@convex-dev/auth": [
|
|
1372
|
-
"@convex-dev/auth@
|
|
1373
|
-
"",
|
|
1372
|
+
"@convex-dev/auth@vendor/convex-auth-6c0ebf3f.tgz",
|
|
1374
1373
|
{
|
|
1375
1374
|
"dependencies": {
|
|
1376
1375
|
"@babel/code-frame": "^7.29.7",
|
|
@@ -1382,12 +1381,11 @@
|
|
|
1382
1381
|
"chalk": "^5.6.2",
|
|
1383
1382
|
"commander": "^14.0.2",
|
|
1384
1383
|
"cookie": "1.1.1",
|
|
1385
|
-
"jose": "^5.2.2"
|
|
1386
|
-
"ora": "^9.4.1"
|
|
1384
|
+
"jose": "^5.2.2"
|
|
1387
1385
|
},
|
|
1388
1386
|
"peerDependencies": {
|
|
1389
1387
|
"@convex-dev/resend": "^0.2.8",
|
|
1390
|
-
"convex": "^1.
|
|
1388
|
+
"convex": "^1.48.0",
|
|
1391
1389
|
"next": "^16.0.0",
|
|
1392
1390
|
"react": "^18.0.0 || ^19.0.0"
|
|
1393
1391
|
},
|
|
@@ -1396,14 +1394,15 @@
|
|
|
1396
1394
|
"next",
|
|
1397
1395
|
"react"
|
|
1398
1396
|
],
|
|
1397
|
+
"hasInstallScript": true,
|
|
1399
1398
|
"bin": {
|
|
1400
|
-
"auth": "dist/cli/init.js"
|
|
1399
|
+
"@convex-dev/auth": "./dist/cli/init.js"
|
|
1401
1400
|
}
|
|
1402
1401
|
},
|
|
1403
|
-
"sha512-
|
|
1402
|
+
"sha512-XC5LGf24VHvG/qOAPQ2g0B/82Hj6MOKOjC48HiiWf5kxZlW8DXIIzlB23NTgeEZKBL7pemMwjJSASDrYZrgNew=="
|
|
1404
1403
|
],
|
|
1405
1404
|
"@convex-dev/batch-worker": [
|
|
1406
|
-
"@convex-dev/batch-worker@0.3.
|
|
1405
|
+
"@convex-dev/batch-worker@0.3.6",
|
|
1407
1406
|
"",
|
|
1408
1407
|
{
|
|
1409
1408
|
"dependencies": {
|
|
@@ -1413,7 +1412,7 @@
|
|
|
1413
1412
|
"convex": "^1.43.0"
|
|
1414
1413
|
}
|
|
1415
1414
|
},
|
|
1416
|
-
"sha512-
|
|
1415
|
+
"sha512-tR+9DaHR3jG3oqkIFX0ok/6944h7UHEQgT6HTmiuxU+lERYuYMsxA2IWwFD5yTFbCpO3YJhqXU4QdGY90sgUqQ=="
|
|
1417
1416
|
],
|
|
1418
1417
|
"@convex-dev/eslint-plugin": [
|
|
1419
1418
|
"@convex-dev/eslint-plugin@5.0.1",
|
|
@@ -9134,10 +9133,10 @@
|
|
|
9134
9133
|
"sha512-9KDcoEVwyUXrjcJNvHD0NFc/hiwe/WPVYIleQh2O1N2Zro5gWJZ/K+3DGn8w8P/F6FxOgzyC5bxDyHIgCSPhGg=="
|
|
9135
9134
|
],
|
|
9136
9135
|
"cli-spinners": [
|
|
9137
|
-
"cli-spinners@
|
|
9136
|
+
"cli-spinners@2.9.2",
|
|
9138
9137
|
"",
|
|
9139
9138
|
{},
|
|
9140
|
-
"sha512-
|
|
9139
|
+
"sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg=="
|
|
9141
9140
|
],
|
|
9142
9141
|
"cli-table3": [
|
|
9143
9142
|
"cli-table3@0.6.5",
|
|
@@ -13633,10 +13632,10 @@
|
|
|
13633
13632
|
"sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ=="
|
|
13634
13633
|
],
|
|
13635
13634
|
"jose": [
|
|
13636
|
-
"jose@
|
|
13635
|
+
"jose@6.2.15",
|
|
13637
13636
|
"",
|
|
13638
13637
|
{},
|
|
13639
|
-
"sha512-
|
|
13638
|
+
"sha512-qdF6ewcZARtef63fJ9AKKZPgxw+t7USH6HLXYcD4CrdmSvDp79rpJSPFEKc90QBeGS63u1KQtN2MZQHC0yDIzA=="
|
|
13640
13639
|
],
|
|
13641
13640
|
"js-tokens": [
|
|
13642
13641
|
"js-tokens@4.0.0",
|
|
@@ -14061,15 +14060,15 @@
|
|
|
14061
14060
|
"sha512-e/zcLx6CSbmaEgFHCA7BnoQKyCtKMxnuWrJygbwPs/AIn+IMKl66L8/s+wBUn5LRw2pZx3bUHibiV1b6aTWIww=="
|
|
14062
14061
|
],
|
|
14063
14062
|
"log-symbols": [
|
|
14064
|
-
"log-symbols@
|
|
14063
|
+
"log-symbols@6.0.0",
|
|
14065
14064
|
"",
|
|
14066
14065
|
{
|
|
14067
14066
|
"dependencies": {
|
|
14068
|
-
"
|
|
14069
|
-
"
|
|
14067
|
+
"chalk": "^5.3.0",
|
|
14068
|
+
"is-unicode-supported": "^1.3.0"
|
|
14070
14069
|
}
|
|
14071
14070
|
},
|
|
14072
|
-
"sha512-
|
|
14071
|
+
"sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw=="
|
|
14073
14072
|
],
|
|
14074
14073
|
"log-update": [
|
|
14075
14074
|
"log-update@8.0.0",
|
|
@@ -15947,21 +15946,22 @@
|
|
|
15947
15946
|
"sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g=="
|
|
15948
15947
|
],
|
|
15949
15948
|
"ora": [
|
|
15950
|
-
"ora@
|
|
15949
|
+
"ora@8.2.0",
|
|
15951
15950
|
"",
|
|
15952
15951
|
{
|
|
15953
15952
|
"dependencies": {
|
|
15954
|
-
"chalk": "^5.
|
|
15953
|
+
"chalk": "^5.3.0",
|
|
15955
15954
|
"cli-cursor": "^5.0.0",
|
|
15956
|
-
"cli-spinners": "^
|
|
15955
|
+
"cli-spinners": "^2.9.2",
|
|
15957
15956
|
"is-interactive": "^2.0.0",
|
|
15958
|
-
"is-unicode-supported": "^2.
|
|
15959
|
-
"log-symbols": "^
|
|
15960
|
-
"stdin-discarder": "^0.
|
|
15961
|
-
"string-width": "^
|
|
15957
|
+
"is-unicode-supported": "^2.0.0",
|
|
15958
|
+
"log-symbols": "^6.0.0",
|
|
15959
|
+
"stdin-discarder": "^0.2.2",
|
|
15960
|
+
"string-width": "^7.2.0",
|
|
15961
|
+
"strip-ansi": "^7.1.0"
|
|
15962
15962
|
}
|
|
15963
15963
|
},
|
|
15964
|
-
"sha512-
|
|
15964
|
+
"sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw=="
|
|
15965
15965
|
],
|
|
15966
15966
|
"os-paths": [
|
|
15967
15967
|
"os-paths@4.4.0",
|
|
@@ -18353,10 +18353,10 @@
|
|
|
18353
18353
|
"sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw=="
|
|
18354
18354
|
],
|
|
18355
18355
|
"stdin-discarder": [
|
|
18356
|
-
"stdin-discarder@0.
|
|
18356
|
+
"stdin-discarder@0.2.2",
|
|
18357
18357
|
"",
|
|
18358
18358
|
{},
|
|
18359
|
-
"sha512-
|
|
18359
|
+
"sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ=="
|
|
18360
18360
|
],
|
|
18361
18361
|
"stop-iteration-iterator": [
|
|
18362
18362
|
"stop-iteration-iterator@1.1.0",
|
|
@@ -20309,6 +20309,12 @@
|
|
|
20309
20309
|
{},
|
|
20310
20310
|
"sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw=="
|
|
20311
20311
|
],
|
|
20312
|
+
"@convex-dev/auth/jose": [
|
|
20313
|
+
"jose@5.10.0",
|
|
20314
|
+
"",
|
|
20315
|
+
{},
|
|
20316
|
+
"sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg=="
|
|
20317
|
+
],
|
|
20312
20318
|
"@convex-dev/eslint-plugin/@typescript-eslint/parser": [
|
|
20313
20319
|
"@typescript-eslint/parser@8.58.2",
|
|
20314
20320
|
"",
|
|
@@ -20355,19 +20361,6 @@
|
|
|
20355
20361
|
},
|
|
20356
20362
|
"sha512-IXIEGbZBANC5B23pGmIui7p49kSiltNWyJ7wX7nFmkR396X/Oj9ebgScgxSJMAW7DkhpUtt1NAnQHhjB0v6a/A=="
|
|
20357
20363
|
],
|
|
20358
|
-
"@convex-dev/workpool/@convex-dev/batch-worker": [
|
|
20359
|
-
"@convex-dev/batch-worker@0.3.6",
|
|
20360
|
-
"",
|
|
20361
|
-
{
|
|
20362
|
-
"dependencies": {
|
|
20363
|
-
"convex-helpers": "^0.1.127"
|
|
20364
|
-
},
|
|
20365
|
-
"peerDependencies": {
|
|
20366
|
-
"convex": "^1.43.0"
|
|
20367
|
-
}
|
|
20368
|
-
},
|
|
20369
|
-
"sha512-tR+9DaHR3jG3oqkIFX0ok/6944h7UHEQgT6HTmiuxU+lERYuYMsxA2IWwFD5yTFbCpO3YJhqXU4QdGY90sgUqQ=="
|
|
20370
|
-
],
|
|
20371
20364
|
"@disposabl/backend/typescript": [
|
|
20372
20365
|
"@typescript/typescript6@6.0.2",
|
|
20373
20366
|
"",
|
|
@@ -21037,12 +21030,6 @@
|
|
|
21037
21030
|
},
|
|
21038
21031
|
"sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA=="
|
|
21039
21032
|
],
|
|
21040
|
-
"@modelcontextprotocol/sdk/jose": [
|
|
21041
|
-
"jose@6.2.15",
|
|
21042
|
-
"",
|
|
21043
|
-
{},
|
|
21044
|
-
"sha512-qdF6ewcZARtef63fJ9AKKZPgxw+t7USH6HLXYcD4CrdmSvDp79rpJSPFEKc90QBeGS63u1KQtN2MZQHC0yDIzA=="
|
|
21045
|
-
],
|
|
21046
21033
|
"@octokit/core/@octokit/request-error": [
|
|
21047
21034
|
"@octokit/request-error@7.1.2",
|
|
21048
21035
|
"",
|
|
@@ -21341,24 +21328,6 @@
|
|
|
21341
21328
|
},
|
|
21342
21329
|
"sha512-+i4L0zUGgRcEnhsxueVrP7iBGxBx5iD0WOTYg1MwFEu2ZyCmH5Ov2V1cul2Ht5UchRQQgftCf4be/RxspuW6QQ=="
|
|
21343
21330
|
],
|
|
21344
|
-
"@shadcn/registry/ora": [
|
|
21345
|
-
"ora@8.2.0",
|
|
21346
|
-
"",
|
|
21347
|
-
{
|
|
21348
|
-
"dependencies": {
|
|
21349
|
-
"chalk": "^5.3.0",
|
|
21350
|
-
"cli-cursor": "^5.0.0",
|
|
21351
|
-
"cli-spinners": "^2.9.2",
|
|
21352
|
-
"is-interactive": "^2.0.0",
|
|
21353
|
-
"is-unicode-supported": "^2.0.0",
|
|
21354
|
-
"log-symbols": "^6.0.0",
|
|
21355
|
-
"stdin-discarder": "^0.2.2",
|
|
21356
|
-
"string-width": "^7.2.0",
|
|
21357
|
-
"strip-ansi": "^7.1.0"
|
|
21358
|
-
}
|
|
21359
|
-
},
|
|
21360
|
-
"sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw=="
|
|
21361
|
-
],
|
|
21362
21331
|
"@stylistic/eslint-plugin/@typescript-eslint/types": [
|
|
21363
21332
|
"@typescript-eslint/types@8.72.1",
|
|
21364
21333
|
"",
|
|
@@ -21715,6 +21684,12 @@
|
|
|
21715
21684
|
},
|
|
21716
21685
|
"sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg=="
|
|
21717
21686
|
],
|
|
21687
|
+
"@vercel/oidc/jose": [
|
|
21688
|
+
"jose@5.10.0",
|
|
21689
|
+
"",
|
|
21690
|
+
{},
|
|
21691
|
+
"sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg=="
|
|
21692
|
+
],
|
|
21718
21693
|
"accepts/mime-types": [
|
|
21719
21694
|
"mime-types@3.0.2",
|
|
21720
21695
|
"",
|
|
@@ -22771,6 +22746,12 @@
|
|
|
22771
22746
|
},
|
|
22772
22747
|
"sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw=="
|
|
22773
22748
|
],
|
|
22749
|
+
"log-symbols/is-unicode-supported": [
|
|
22750
|
+
"is-unicode-supported@1.3.0",
|
|
22751
|
+
"",
|
|
22752
|
+
{},
|
|
22753
|
+
"sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ=="
|
|
22754
|
+
],
|
|
22774
22755
|
"log-update/slice-ansi": [
|
|
22775
22756
|
"slice-ansi@9.0.1",
|
|
22776
22757
|
"",
|
|
@@ -24552,6 +24533,18 @@
|
|
|
24552
24533
|
{},
|
|
24553
24534
|
"sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ=="
|
|
24554
24535
|
],
|
|
24536
|
+
"ora/string-width": [
|
|
24537
|
+
"string-width@7.2.0",
|
|
24538
|
+
"",
|
|
24539
|
+
{
|
|
24540
|
+
"dependencies": {
|
|
24541
|
+
"emoji-regex": "^10.3.0",
|
|
24542
|
+
"get-east-asian-width": "^1.0.0",
|
|
24543
|
+
"strip-ansi": "^7.1.0"
|
|
24544
|
+
}
|
|
24545
|
+
},
|
|
24546
|
+
"sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ=="
|
|
24547
|
+
],
|
|
24555
24548
|
"oxc-parser/@oxc-project/types": [
|
|
24556
24549
|
"@oxc-project/types@0.120.0",
|
|
24557
24550
|
"",
|
|
@@ -24846,24 +24839,6 @@
|
|
|
24846
24839
|
{},
|
|
24847
24840
|
"sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw=="
|
|
24848
24841
|
],
|
|
24849
|
-
"shadcn/ora": [
|
|
24850
|
-
"ora@8.2.0",
|
|
24851
|
-
"",
|
|
24852
|
-
{
|
|
24853
|
-
"dependencies": {
|
|
24854
|
-
"chalk": "^5.3.0",
|
|
24855
|
-
"cli-cursor": "^5.0.0",
|
|
24856
|
-
"cli-spinners": "^2.9.2",
|
|
24857
|
-
"is-interactive": "^2.0.0",
|
|
24858
|
-
"is-unicode-supported": "^2.0.0",
|
|
24859
|
-
"log-symbols": "^6.0.0",
|
|
24860
|
-
"stdin-discarder": "^0.2.2",
|
|
24861
|
-
"string-width": "^7.2.0",
|
|
24862
|
-
"strip-ansi": "^7.1.0"
|
|
24863
|
-
}
|
|
24864
|
-
},
|
|
24865
|
-
"sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw=="
|
|
24866
|
-
],
|
|
24867
24842
|
"signale/chalk": [
|
|
24868
24843
|
"chalk@2.4.2",
|
|
24869
24844
|
"",
|
|
@@ -25127,6 +25102,19 @@
|
|
|
25127
25102
|
},
|
|
25128
25103
|
"sha512-f1WO2Lx8a9t8DARmcWAUPJbu0G20bJlj8L4z72K00TMeJAoyLr/tHhI/pzYBLrR4dXWkcxO1cWYZEOX8DKHTqA=="
|
|
25129
25104
|
],
|
|
25105
|
+
"@convex-dev/mcp/@convex-dev/rate-limiter/@convex-dev/batch-worker": [
|
|
25106
|
+
"@convex-dev/batch-worker@0.3.5",
|
|
25107
|
+
"",
|
|
25108
|
+
{
|
|
25109
|
+
"dependencies": {
|
|
25110
|
+
"convex-helpers": "^0.1.127"
|
|
25111
|
+
},
|
|
25112
|
+
"peerDependencies": {
|
|
25113
|
+
"convex": "^1.43.0"
|
|
25114
|
+
}
|
|
25115
|
+
},
|
|
25116
|
+
"sha512-kTxLGy1TXRN6WLcENcoRWWnvPshv1sIZp2EpPqGqCB4FxDI7m8tEHUr+jCLdhGtSZT1UHkWtb1w8YYuEzTxHWQ=="
|
|
25117
|
+
],
|
|
25130
25118
|
"@disposabl/disposabl-kit/@types/node/undici-types": [
|
|
25131
25119
|
"undici-types@6.21.0",
|
|
25132
25120
|
"",
|
|
@@ -25461,12 +25449,6 @@
|
|
|
25461
25449
|
},
|
|
25462
25450
|
"sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw=="
|
|
25463
25451
|
],
|
|
25464
|
-
"@expo/cli/ora/cli-spinners": [
|
|
25465
|
-
"cli-spinners@2.9.2",
|
|
25466
|
-
"",
|
|
25467
|
-
{},
|
|
25468
|
-
"sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg=="
|
|
25469
|
-
],
|
|
25470
25452
|
"@expo/cli/ora/log-symbols": [
|
|
25471
25453
|
"log-symbols@2.2.0",
|
|
25472
25454
|
"",
|
|
@@ -25641,12 +25623,6 @@
|
|
|
25641
25623
|
},
|
|
25642
25624
|
"sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw=="
|
|
25643
25625
|
],
|
|
25644
|
-
"@expo/package-manager/ora/cli-spinners": [
|
|
25645
|
-
"cli-spinners@2.9.2",
|
|
25646
|
-
"",
|
|
25647
|
-
{},
|
|
25648
|
-
"sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg=="
|
|
25649
|
-
],
|
|
25650
25626
|
"@expo/package-manager/ora/log-symbols": [
|
|
25651
25627
|
"log-symbols@2.2.0",
|
|
25652
25628
|
"",
|
|
@@ -25994,41 +25970,6 @@
|
|
|
25994
25970
|
},
|
|
25995
25971
|
"sha512-9viLL4/n1BJUCT1NXVTdS1jtm80yDEgR5T4yCelII49Mbj0v1rZdKqj7zCiYdbB0CuCgdrvHcNogAKTFPBocFA=="
|
|
25996
25972
|
],
|
|
25997
|
-
"@shadcn/registry/ora/cli-spinners": [
|
|
25998
|
-
"cli-spinners@2.9.2",
|
|
25999
|
-
"",
|
|
26000
|
-
{},
|
|
26001
|
-
"sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg=="
|
|
26002
|
-
],
|
|
26003
|
-
"@shadcn/registry/ora/log-symbols": [
|
|
26004
|
-
"log-symbols@6.0.0",
|
|
26005
|
-
"",
|
|
26006
|
-
{
|
|
26007
|
-
"dependencies": {
|
|
26008
|
-
"chalk": "^5.3.0",
|
|
26009
|
-
"is-unicode-supported": "^1.3.0"
|
|
26010
|
-
}
|
|
26011
|
-
},
|
|
26012
|
-
"sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw=="
|
|
26013
|
-
],
|
|
26014
|
-
"@shadcn/registry/ora/stdin-discarder": [
|
|
26015
|
-
"stdin-discarder@0.2.2",
|
|
26016
|
-
"",
|
|
26017
|
-
{},
|
|
26018
|
-
"sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ=="
|
|
26019
|
-
],
|
|
26020
|
-
"@shadcn/registry/ora/string-width": [
|
|
26021
|
-
"string-width@7.2.0",
|
|
26022
|
-
"",
|
|
26023
|
-
{
|
|
26024
|
-
"dependencies": {
|
|
26025
|
-
"emoji-regex": "^10.3.0",
|
|
26026
|
-
"get-east-asian-width": "^1.0.0",
|
|
26027
|
-
"strip-ansi": "^7.1.0"
|
|
26028
|
-
}
|
|
26029
|
-
},
|
|
26030
|
-
"sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ=="
|
|
26031
|
-
],
|
|
26032
25973
|
"@tailwindcss/node/lightningcss/lightningcss-android-arm64": [
|
|
26033
25974
|
"lightningcss-android-arm64@1.32.0",
|
|
26034
25975
|
"",
|
|
@@ -27594,41 +27535,6 @@
|
|
|
27594
27535
|
{},
|
|
27595
27536
|
"sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="
|
|
27596
27537
|
],
|
|
27597
|
-
"shadcn/ora/cli-spinners": [
|
|
27598
|
-
"cli-spinners@2.9.2",
|
|
27599
|
-
"",
|
|
27600
|
-
{},
|
|
27601
|
-
"sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg=="
|
|
27602
|
-
],
|
|
27603
|
-
"shadcn/ora/log-symbols": [
|
|
27604
|
-
"log-symbols@6.0.0",
|
|
27605
|
-
"",
|
|
27606
|
-
{
|
|
27607
|
-
"dependencies": {
|
|
27608
|
-
"chalk": "^5.3.0",
|
|
27609
|
-
"is-unicode-supported": "^1.3.0"
|
|
27610
|
-
}
|
|
27611
|
-
},
|
|
27612
|
-
"sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw=="
|
|
27613
|
-
],
|
|
27614
|
-
"shadcn/ora/stdin-discarder": [
|
|
27615
|
-
"stdin-discarder@0.2.2",
|
|
27616
|
-
"",
|
|
27617
|
-
{},
|
|
27618
|
-
"sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ=="
|
|
27619
|
-
],
|
|
27620
|
-
"shadcn/ora/string-width": [
|
|
27621
|
-
"string-width@7.2.0",
|
|
27622
|
-
"",
|
|
27623
|
-
{
|
|
27624
|
-
"dependencies": {
|
|
27625
|
-
"emoji-regex": "^10.3.0",
|
|
27626
|
-
"get-east-asian-width": "^1.0.0",
|
|
27627
|
-
"strip-ansi": "^7.1.0"
|
|
27628
|
-
}
|
|
27629
|
-
},
|
|
27630
|
-
"sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ=="
|
|
27631
|
-
],
|
|
27632
27538
|
"signale/chalk/ansi-styles": [
|
|
27633
27539
|
"ansi-styles@3.2.1",
|
|
27634
27540
|
"",
|
|
@@ -28088,12 +27994,6 @@
|
|
|
28088
27994
|
{},
|
|
28089
27995
|
"sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ=="
|
|
28090
27996
|
],
|
|
28091
|
-
"@shadcn/registry/ora/log-symbols/is-unicode-supported": [
|
|
28092
|
-
"is-unicode-supported@1.3.0",
|
|
28093
|
-
"",
|
|
28094
|
-
{},
|
|
28095
|
-
"sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ=="
|
|
28096
|
-
],
|
|
28097
27997
|
"@ts-morph/common/minimatch/brace-expansion/balanced-match": [
|
|
28098
27998
|
"balanced-match@4.0.4",
|
|
28099
27999
|
"",
|
|
@@ -28426,12 +28326,6 @@
|
|
|
28426
28326
|
{},
|
|
28427
28327
|
"sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw=="
|
|
28428
28328
|
],
|
|
28429
|
-
"shadcn/ora/log-symbols/is-unicode-supported": [
|
|
28430
|
-
"is-unicode-supported@1.3.0",
|
|
28431
|
-
"",
|
|
28432
|
-
{},
|
|
28433
|
-
"sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ=="
|
|
28434
|
-
],
|
|
28435
28329
|
"signale/chalk/ansi-styles/color-convert": [
|
|
28436
28330
|
"color-convert@1.9.3",
|
|
28437
28331
|
"",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"packages/*"
|
|
28
28
|
],
|
|
29
29
|
"catalog": {
|
|
30
|
-
"@convex-dev/auth": "
|
|
30
|
+
"@convex-dev/auth": "file:vendor/convex-auth-6c0ebf3f.tgz",
|
|
31
31
|
"convex": "^1.49.0",
|
|
32
32
|
"lucide-react": "^1.61.0",
|
|
33
33
|
"react": "^19.3.1",
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
"@convex-dev/static-hosting": "0.2.1"
|
|
37
37
|
},
|
|
38
38
|
"patchedDependencies": {
|
|
39
|
-
"@convex-dev/auth@2.0.0-beta.0": "patches/@convex-dev%2Fauth@2.0.0-beta.0.patch",
|
|
40
39
|
"@convex-dev/static-hosting@0.2.1": "patches/@convex-dev%2Fstatic-hosting@0.2.1.patch"
|
|
41
40
|
}
|
|
42
41
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Backend
|
|
2
2
|
|
|
3
|
-
Fresh apps start with
|
|
3
|
+
Fresh apps start with a `users` table and organization/member records for optional Claude auto-connect. Authentication, API/MCP access, and static hosting use the shared kit and Convex components. Add your app's tables to `convex/schema.ts` and its operations in feature folders.
|
|
4
|
+
|
|
5
|
+
See `convex/mcpEnterprise/README.md` for Claude organization setup and `../../vendor/README.md` for the pinned Convex Auth source.
|
|
4
6
|
|
|
5
7
|
Run `bun run dev` at the workspace root. Run `bun run generate` after changing operations to regenerate the API/MCP contract and selected SDK.
|
|
6
8
|
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
import type * as auth from "../auth.js";
|
|
12
12
|
import type * as http from "../http.js";
|
|
13
13
|
import type * as mcp from "../mcp.js";
|
|
14
|
+
import type * as mcpEnterprise_internal from "../mcpEnterprise/internal.js";
|
|
15
|
+
import type * as mcpEnterprise_provision from "../mcpEnterprise/provision.js";
|
|
16
|
+
import type * as mcpEnterprise_validator from "../mcpEnterprise/validator.js";
|
|
14
17
|
import type * as users_index from "../users/index.js";
|
|
15
18
|
import type * as users_internal from "../users/internal.js";
|
|
16
19
|
|
|
@@ -24,6 +27,9 @@ declare const fullApi: ApiFromModules<{
|
|
|
24
27
|
auth: typeof auth;
|
|
25
28
|
http: typeof http;
|
|
26
29
|
mcp: typeof mcp;
|
|
30
|
+
"mcpEnterprise/internal": typeof mcpEnterprise_internal;
|
|
31
|
+
"mcpEnterprise/provision": typeof mcpEnterprise_provision;
|
|
32
|
+
"mcpEnterprise/validator": typeof mcpEnterprise_validator;
|
|
27
33
|
"users/index": typeof users_index;
|
|
28
34
|
"users/internal": typeof users_internal;
|
|
29
35
|
}>;
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import type { AuthConfig } from "convex/server";
|
|
2
|
-
import {
|
|
2
|
+
import { convexAuthProvider } from "@convex-dev/auth/server";
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
|
-
providers: [
|
|
6
|
-
{
|
|
7
|
-
type: "customJwt",
|
|
8
|
-
applicationID: "convex",
|
|
9
|
-
issuer: env.CONVEX_SITE_URL,
|
|
10
|
-
jwks: `${env.CONVEX_SITE_URL}/auth/.well-known/jwks.json`,
|
|
11
|
-
algorithm: "RS256",
|
|
12
|
-
},
|
|
13
|
-
],
|
|
5
|
+
providers: [convexAuthProvider()],
|
|
14
6
|
} satisfies AuthConfig;
|
|
@@ -4,22 +4,11 @@ import auth from "@convex-dev/auth/convex.config.js";
|
|
|
4
4
|
import mcp from "@convex-dev/mcp/convex.config.js";
|
|
5
5
|
import staticHosting from "@convex-dev/static-hosting/convex.config";
|
|
6
6
|
import { defineApp } from "convex/server";
|
|
7
|
-
import { v } from "convex/values";
|
|
8
7
|
|
|
9
|
-
const app = defineApp(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
AUTH_JWKS: v.string(),
|
|
13
|
-
},
|
|
14
|
-
});
|
|
8
|
+
const app = defineApp();
|
|
9
|
+
|
|
10
|
+
app.use(auth);
|
|
15
11
|
|
|
16
|
-
app.use(auth, {
|
|
17
|
-
httpPrefix: "/auth",
|
|
18
|
-
env: {
|
|
19
|
-
AUTH_PRIVATE_KEY: app.env.AUTH_PRIVATE_KEY,
|
|
20
|
-
AUTH_JWKS: app.env.AUTH_JWKS,
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
12
|
app.use(passwordProvider);
|
|
24
13
|
app.use(username);
|
|
25
14
|
app.use(staticHosting);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Claude auto-connect
|
|
2
|
+
|
|
3
|
+
When MCP is enabled, the shared server supports Claude-issued enterprise-managed authorization. Generated apps include it. Each customer organization has its own trusted Claude issuer and member mappings. No organization is trusted by default.
|
|
4
|
+
|
|
5
|
+
**Status:** organization provisioning is administrator-only. Customer-facing enrollment is not included, and a successful exchange with a real Claude Team/Enterprise organization still needs verification. Disposabl currently uses username/password sign-in, so it has no verified email or organization membership source to connect automatically. Do not announce auto-connect as available until those are wired and Claude's connection test passes.
|
|
6
|
+
|
|
7
|
+
## Set up an organization
|
|
8
|
+
|
|
9
|
+
These internal operations are available to deployment administrators. They are absent from public APIs and MCP tools. A customer-facing setup screen must first check the signed-in user's administrator role in the selected organization. A personal Disposabl account does not authorize managing other users.
|
|
10
|
+
|
|
11
|
+
1. In Claude, open Organization settings → Connectors → your connector → Managed authorization. Choose Claude-issued and copy the organization's issuer URL.
|
|
12
|
+
2. Call `mcpEnterprise/provision:configure` with your app's stable `tenantId`, that exact `issuer`, `enabled: true`, and allowed `scopes`. The starter has no named tool scopes, so use `[]`.
|
|
13
|
+
3. For each existing member, call `mcpEnterprise/provision:addMember` with the returned `organizationId`, their existing app `userId`, and `verifiedEmail`. Obtain the email and membership from a verified sign-in or directory integration. Never copy an email from a client form into this function.
|
|
14
|
+
4. In Claude, leave Tenant ID empty. The issuer identifies the organization. Run Test connection, then enable the connector for the desired roles.
|
|
15
|
+
5. Confirm a real tool request as two members and as a member of another organization before rolling out.
|
|
16
|
+
|
|
17
|
+
An unknown email does not create an account. The first successful grant binds the Claude subject to an existing member. Later grants use that stable subject; a different subject cannot reuse the email to take over the membership.
|
|
18
|
+
|
|
19
|
+
## Google sign-in
|
|
20
|
+
|
|
21
|
+
Convex Auth's Google method returns `profile.email` and `profile.emailVerified` from Google's validated ID token. Only use the email when `emailVerified === true`.
|
|
22
|
+
|
|
23
|
+
Google proves the app account's email. Your app's organization model decides whether that account is a member. Claude proves the member is signed into the configured Claude organization. All three checks are needed.
|
|
24
|
+
|
|
25
|
+
Wire membership provisioning from a trusted Google `createUser` or `onSignIn` callback after resolving app membership. Account creation alone must not enroll someone in every organization with a matching domain. Existing username accounts need a verified account-linking flow; do not silently merge them by username or an unverified email.
|
|
26
|
+
|
|
27
|
+
## Disable access
|
|
28
|
+
|
|
29
|
+
- `configure` with `enabled: false` immediately invalidates the organization's tokens. Every configuration update also invalidates prior tokens.
|
|
30
|
+
- `removeMember` immediately invalidates that member's tokens. Re-adding a member creates a new binding, so old tokens stay invalid.
|
|
31
|
+
- Removing a user from Claude prevents new assertions. Issued tokens last at most five minutes. Remove the app membership too when someone leaves.
|
|
32
|
+
- OAuth token revocation is supported. Managed access has no refresh token.
|
|
33
|
+
|
|
34
|
+
## Protocol and isolation
|
|
35
|
+
|
|
36
|
+
Discovery advertises the JWT bearer grant and ID-JAG profile. The server accepts Claude's published public client `https://claude.ai/oauth/mcp-oauth-client-metadata`. It validates the signature, issuer, JWT type, algorithm, audience, client ID, expiry, and optional resource and tenant claims. Unsupported authorization details are rejected.
|
|
37
|
+
|
|
38
|
+
Discovery and key fetches stay on `https://identity.anthropic.com`, reject redirects, and limit response size. Unknown issuers are rejected before any network request. Assertions are single-use. Tokens are stored as hashes and only work at this app's MCP endpoint. Every request checks membership and organization state. Browser OAuth, device flow, and API keys remain available. API-only apps use the original authorization server.
|
|
39
|
+
|
|
40
|
+
The adapter wraps the pinned MCP package's routes using Convex's HTTP action invocation method. Recheck that boundary when upgrading either package. No code is patched in `node_modules`.
|
|
41
|
+
|
|
42
|
+
References: [Claude setup](https://support.claude.com/en/articles/15537633-auto-connect-your-organization-s-apps-to-claude), [MCP enterprise-managed authorization](https://modelcontextprotocol.io/extensions/auth/enterprise-managed-authorization).
|