@protobase/client 0.52.0 → 0.53.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.
@@ -36,7 +36,7 @@ export type SamlSignIn = {
36
36
  * `sendSignUpCode`); `socialProviders` the ids of the sign-in providers, for example
37
37
  * `github`; `platformSignIn` the one of them the platform adds; `samlProviders` the app's SAML identity providers; `staffSignIn` the operator provider's name when its staff
38
38
  * can sign in as people; `organizations` when the app has them; `anonymous` when visitors may browse what the project's
39
- * anonymous role reads without signing in; `mcp` when MCP clients can connect, so the account page lists them; `plugins`
39
+ * anonymous role reads without signing in; `mcp` when MCP clients can connect, with the `url` of the app's MCP endpoint, so the account page shows it and lists the clients; `plugins`
40
40
  * those the app loads before anyone signs in; `locale` the language the app sets for everyone, which the screens before
41
41
  * `/meta` are in.
42
42
  */
@@ -62,7 +62,9 @@ export type SetupStatus = {
62
62
  roles: RoleLabel[];
63
63
  };
64
64
  anonymous?: boolean;
65
- mcp?: boolean;
65
+ mcp?: {
66
+ url: string;
67
+ };
66
68
  plugins?: PluginRef[];
67
69
  locale?: Locale;
68
70
  };
package/dist/auth.js CHANGED
@@ -87,7 +87,7 @@ const createAuthSession = (options = {}) => {
87
87
  ...body.passkeyDomains && { passkeyDomains: body.passkeyDomains },
88
88
  ...body.organizations && { organizations: body.organizations },
89
89
  ...body.anonymous && { anonymous: true },
90
- ...body.mcp && { mcp: true },
90
+ ...body.mcp && { mcp: { url: body.mcp.url } },
91
91
  ...body.plugins && body.plugins.length > 0 && { plugins: body.plugins },
92
92
  ...isLocale(body.locale) && { locale: body.locale }
93
93
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/client",
3
- "version": "0.52.0",
3
+ "version": "0.53.0",
4
4
  "description": "Typed fetch client for the Protobase REST API.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -30,8 +30,8 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@better-auth/passkey": "^1.7.12",
33
- "@protobase/layout": "0.52.0",
34
- "@protobase/schema": "0.52.0",
33
+ "@protobase/layout": "0.53.0",
34
+ "@protobase/schema": "0.53.0",
35
35
  "@simplewebauthn/browser": "^13.3.0",
36
36
  "better-auth": "^1.7.12"
37
37
  }