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

Function isResourceAvailableForRuntime

src/visibility/exposure.ts:133–141  ·  view source on GitHub ↗
(
  resource: ResourceManifestEntry,
  runtime: RuntimeKind,
)

Source from the content-addressed store, hash-verified

131 * Check if a resource is available for the current runtime.
132 */
133export function isResourceAvailableForRuntime(
134 resource: ResourceManifestEntry,
135 runtime: RuntimeKind,
136): boolean {
137 if (runtime !== 'mcp') {
138 return false;
139 }
140 return resource.availability.mcp;
141}
142
143/**
144 * Check if a resource is exposed (visible) for the current runtime context.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected