clay-server 2.27.0-beta.5 → 2.27.0-beta.6

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/lib/sdk-bridge.js CHANGED
@@ -2375,9 +2375,9 @@ function createSDKBridge(opts) {
2375
2375
  includePartialMessages: true,
2376
2376
  abortController: abortController,
2377
2377
  canUseTool: opts.canUseTool || function (toolName, input) {
2378
- var allowed = { Read: true, Glob: true, Grep: true, WebFetch: true, WebSearch: true };
2379
- if (allowed[toolName]) {
2380
- return Promise.resolve({ behavior: "allow", updatedInput: input });
2378
+ var whitelisted = checkToolWhitelist(toolName, input);
2379
+ if (whitelisted) {
2380
+ return Promise.resolve(whitelisted);
2381
2381
  }
2382
2382
  return Promise.resolve({
2383
2383
  behavior: "deny",
@@ -2386,7 +2386,7 @@ function createSDKBridge(opts) {
2386
2386
  },
2387
2387
  };
2388
2388
  if (opts.model) mentionQueryOptions.model = opts.model;
2389
- if (mcpServers) mentionQueryOptions.mcpServers = mcpServers;
2389
+ if (opts.includeMcpServers && mcpServers) mentionQueryOptions.mcpServers = mcpServers;
2390
2390
  query = sdk.query({
2391
2391
  prompt: mq,
2392
2392
  options: mentionQueryOptions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clay-server",
3
- "version": "2.27.0-beta.5",
3
+ "version": "2.27.0-beta.6",
4
4
  "description": "Self-hosted Claude Code in your browser. Multi-session, multi-user, push notifications.",
5
5
  "bin": {
6
6
  "clay-server": "./bin/cli.js",