MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / isToolAvailableForRuntime

Function isToolAvailableForRuntime

src/visibility/exposure.ts:50–55  ·  view source on GitHub ↗
(tool: ToolManifestEntry, runtime: RuntimeKind)

Source from the content-addressed store, hash-verified

48 * This checks the availability flag only, not predicates.
49 */
50export function isToolAvailableForRuntime(tool: ToolManifestEntry, runtime: RuntimeKind): boolean {
51 if (runtime === 'daemon') {
52 return true;
53 }
54 return tool.availability[runtime];
55}
56
57/**
58 * Check if a tool is exposed (visible) for the current runtime context.

Callers 3

exposure.test.tsFile · 0.90
isToolExposedForRuntimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected