MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / hasOffByDefaultConditions

Function hasOffByDefaultConditions

scripts/generate-docs.ts:88–99  ·  view source on GitHub ↗
(tool: ToolWithAnnotations)

Source from the content-addressed store, hash-verified

86}
87
88function hasOffByDefaultConditions(tool: ToolWithAnnotations): boolean {
89 for (const condition of tool.annotations?.conditions || []) {
90 if (condition === 'slim') {
91 continue;
92 }
93 const option = mcpOptions[condition];
94 if (!option || !('default' in option) || option.default !== true) {
95 return true;
96 }
97 }
98 return false;
99}
100
101function sortTools(a: ToolWithAnnotations, b: ToolWithAnnotations): number {
102 const aHasConditions = hasOffByDefaultConditions(a);

Callers 1

sortToolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected