@protobase/cli 0.40.4 → 0.40.5

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.
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.40.4";
2
+ var version = "0.40.5";
3
3
  //#endregion
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/cli",
3
- "version": "0.40.4",
3
+ "version": "0.40.5",
4
4
  "description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -36,11 +36,11 @@
36
36
  "@better-auth/core": "^1.7.12",
37
37
  "@hono/node-server": "^2.1.3",
38
38
  "@hono/vite-dev-server": "^0.26.1",
39
- "@protobase/layout": "0.40.4",
40
- "@protobase/query": "0.40.4",
41
- "@protobase/schema": "0.40.4",
42
- "@protobase/server": "0.40.4",
43
- "@protobase/ui": "0.40.4",
39
+ "@protobase/layout": "0.40.5",
40
+ "@protobase/query": "0.40.5",
41
+ "@protobase/schema": "0.40.5",
42
+ "@protobase/server": "0.40.5",
43
+ "@protobase/ui": "0.40.5",
44
44
  "@react-email/render": "^2.1.0",
45
45
  "@scalar/hono-api-reference": "^0.12.10",
46
46
  "@tailwindcss/vite": "^4.3.3",
@@ -67,6 +67,8 @@ The endpoint serves each request on its own, without an MCP session: a `GET` or
67
67
  - `mcpGate({ authenticate, resource, scope })`: the token check alone, answering 401 or 403 with a challenge that names the resource's metadata.
68
68
  - `mcpToolContext(...)`, `mcpRoutes(app, { path, handler })` and `sessionOf(authInfo)`: the tools' context as the app builds it, the routes with open CORS, and the session a request was admitted with.
69
69
 
70
+ To serve your own endpoint at `mcp.path` instead, pass `createAdmin` `options: { mcp: false }` and mount yours in front of `createAdmin`'s app. The OAuth provider and its discovery stay, `createAdmin` answers 404 at the path and under it, and its `authenticate` needs no `forAudience`.
71
+
70
72
  A tool of your own goes on the server `server` returns, with the context its tools get:
71
73
 
72
74
  ```ts