Skip to content

Commit 4f00241

Browse files
fix(mcp): fix query options parsing
1 parent b63fda2 commit 4f00241

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/mcp-server/src/options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,12 @@ export function parseQueryOptions(defaultOptions: McpOptions, query: unknown): M
367367
}
368368

369369
let dynamicTools: boolean | undefined =
370-
queryOptions.no_tools && !queryOptions.no_tools?.includes('dynamic') ? false
370+
queryOptions.no_tools && queryOptions.no_tools?.includes('dynamic') ? false
371371
: queryOptions.tools?.includes('dynamic') ? true
372372
: defaultOptions.includeDynamicTools;
373373

374374
let allTools: boolean | undefined =
375-
queryOptions.no_tools && !queryOptions.no_tools?.includes('all') ? false
375+
queryOptions.no_tools && queryOptions.no_tools?.includes('all') ? false
376376
: queryOptions.tools?.includes('all') ? true
377377
: defaultOptions.includeAllTools;
378378

0 commit comments

Comments
 (0)