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

Function isToolInWorkflowExposed

src/visibility/exposure.ts:75–87  ·  view source on GitHub ↗
(
  tool: ToolManifestEntry,
  workflow: WorkflowManifestEntry,
  ctx: PredicateContext,
)

Source from the content-addressed store, hash-verified

73 * Both the workflow and tool must be enabled for the tool to be exposed.
74 */
75export function isToolInWorkflowExposed(
76 tool: ToolManifestEntry,
77 workflow: WorkflowManifestEntry,
78 ctx: PredicateContext,
79): boolean {
80 // Workflow must be enabled
81 if (!isWorkflowEnabledForRuntime(workflow, ctx)) {
82 return false;
83 }
84
85 // Tool must be exposed
86 return isToolExposedForRuntime(tool, ctx);
87}
88
89/**
90 * Filter tools based on exposure rules.

Callers 1

exposure.test.tsFile · 0.90

Calls 2

isToolExposedForRuntimeFunction · 0.85

Tested by

no test coverage detected