MCPcopy
hub / github.com/claude-code-best/claude-code / hasEmbeddedSearchTools

Function hasEmbeddedSearchTools

src/utils/embeddedTools.ts:15–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 * Set as a build-time define in scripts/build-with-plugins.ts for ant-native builds.
14 */
15export function hasEmbeddedSearchTools(): boolean {
16 if (!isEnvTruthy(process.env.EMBEDDED_SEARCH_TOOLS)) return false
17 const e = process.env.CLAUDE_CODE_ENTRYPOINT
18 return (
19 e !== 'sdk-ts' && e !== 'sdk-py' && e !== 'sdk-cli' && e !== 'local-agent'
20 )
21}
22
23/**
24 * Path to the bun binary that contains the embedded search tools.

Callers 11

getPromptFunction · 0.85
getPlanV2SystemPromptFunction · 0.85
getExploreSystemPromptFunction · 0.85
getSimplePromptFunction · 0.85
getAllBaseToolsFunction · 0.85
getReadOnlyToolNamesFunction · 0.85

Calls 1

isEnvTruthyFunction · 0.70

Tested by

no test coverage detected