MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / isToolExposedForRuntime

Function isToolExposedForRuntime

src/visibility/exposure.ts:61–69  ·  view source on GitHub ↗
(tool: ToolManifestEntry, ctx: PredicateContext)

Source from the content-addressed store, hash-verified

59 * Checks both availability flag and all predicates.
60 */
61export function isToolExposedForRuntime(tool: ToolManifestEntry, ctx: PredicateContext): boolean {
62 // Check availability flag first
63 if (!isToolAvailableForRuntime(tool, ctx.runtime)) {
64 return false;
65 }
66
67 // Then check predicates
68 return evalPredicates(tool.predicates, ctx);
69}
70
71/**
72 * Check if a tool within a workflow is exposed.

Callers 6

shouldExposeToolFunction · 0.90
buildToolListFunction · 0.90
exposure.test.tsFile · 0.90
isToolInWorkflowExposedFunction · 0.85
filterExposedToolsFunction · 0.85

Calls 2

evalPredicatesFunction · 0.90

Tested by

no test coverage detected