@protobase/config 0.57.6 → 0.58.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.
package/dist/config.d.ts CHANGED
@@ -53,8 +53,11 @@ type ApiOptionKeys = Omit<AdminOptions, 'basePath' | 'roles' | 'writeHooks' | 'a
53
53
  /** The write hooks by name, run in this order inside each write's transaction; each is `hooks/<name>.ts`. */
54
54
  writeHooks?: string[];
55
55
  assistant?: Omit<AssistantOptions, 'tools' | 'fetch'> | false;
56
- /** The MCP endpoint's tools: `sql`, `writes`, or `false` for a host that serves its own (`AdminOptions['mcp']`); `auth.mcp` turns MCP on. */
57
- mcpEndpoint?: AdminOptions['mcp'];
56
+ /**
57
+ * The MCP endpoint's tools: `sql`, `writes`, or `false` for a host that serves its own (`AdminOptions['mcp']`);
58
+ * `auth.mcp` turns MCP on. The app's own tools are mcp/tools.ts's.
59
+ */
60
+ mcpEndpoint?: Omit<Exclude<AdminOptions['mcp'], false | undefined>, 'tools'> | false;
58
61
  /** The runtime updates endpoint behind the top bar's update button (`AdminOptions['runtime']`). */
59
62
  runtimeUpdates?: AdminOptions['runtime'];
60
63
  /** Other Protobase APIs whose resources the admin app draws as its own (`AdminOptions['sources']`). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/config",
3
- "version": "0.57.6",
3
+ "version": "0.58.1",
4
4
  "description": "defineConfig and the types of a Protobase project's protobase.config.ts, and the JSON Schema of protobase.config.json.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -31,6 +31,6 @@
31
31
  "access": "public"
32
32
  },
33
33
  "peerDependencies": {
34
- "@protobase/server": "0.57.6"
34
+ "@protobase/server": "0.58.1"
35
35
  }
36
36
  }
package/schema.json CHANGED
@@ -413,7 +413,7 @@
413
413
  ]
414
414
  },
415
415
  "mcpEndpoint": {
416
- "description": "The MCP endpoint's tools: `sql`, `writes`, or `false` for a host that serves its own (`AdminOptions['mcp']`); `auth.mcp` turns MCP on.",
416
+ "description": "The MCP endpoint's tools: `sql`, `writes`, or `false` for a host that serves its own (`AdminOptions['mcp']`);\n`auth.mcp` turns MCP on. The app's own tools are mcp/tools.ts's.",
417
417
  "anyOf": [
418
418
  {
419
419
  "const": false