@beeper/desktop-mcp 4.2.1 → 4.2.3

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/src/options.ts CHANGED
@@ -284,8 +284,10 @@ const coerceArray = <T extends z.ZodTypeAny>(zodType: T) =>
284
284
  );
285
285
 
286
286
  const QueryOptions = z.object({
287
- tools: coerceArray(z.enum(['dynamic', 'all', 'docs'])).describe('Use dynamic tools or all tools'),
288
- no_tools: coerceArray(z.enum(['dynamic', 'all', 'docs'])).describe('Do not use dynamic tools or all tools'),
287
+ tools: coerceArray(z.enum(['dynamic', 'all', 'code', 'docs'])).describe('Specify which MCP tools to use'),
288
+ no_tools: coerceArray(z.enum(['dynamic', 'all', 'code', 'docs'])).describe(
289
+ 'Specify which MCP tools to not use.',
290
+ ),
289
291
  tool: coerceArray(z.string()).describe('Include tools matching the specified names'),
290
292
  resource: coerceArray(z.string()).describe('Include tools matching the specified resources'),
291
293
  operation: coerceArray(z.enum(['read', 'write'])).describe(
@@ -385,11 +387,16 @@ export function parseQueryOptions(defaultOptions: McpOptions, query: unknown): M
385
387
  : queryOptions.tools?.includes('docs') ? true
386
388
  : defaultOptions.includeDocsTools;
387
389
 
390
+ let codeTools: boolean | undefined =
391
+ queryOptions.no_tools && queryOptions.no_tools?.includes('code') ? false
392
+ : queryOptions.tools?.includes('code') && defaultOptions.includeCodeTools ? true
393
+ : defaultOptions.includeCodeTools;
394
+
388
395
  return {
389
396
  client: queryOptions.client ?? defaultOptions.client,
390
397
  includeDynamicTools: dynamicTools,
391
398
  includeAllTools: allTools,
392
- includeCodeTools: undefined,
399
+ includeCodeTools: codeTools,
393
400
  includeDocsTools: docsTools,
394
401
  filters,
395
402
  capabilities: clientCapabilities,
package/src/server.ts CHANGED
@@ -34,7 +34,7 @@ export const newMcpServer = () =>
34
34
  new McpServer(
35
35
  {
36
36
  name: 'beeper_desktop_api_api',
37
- version: '4.2.1',
37
+ version: '4.2.3',
38
38
  },
39
39
  {
40
40
  capabilities: { tools: {}, logging: {} },