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

Function withCanonicalWorkflow

src/cli/commands/tools.ts:53–64  ·  view source on GitHub ↗
(
  tool: ToolListItem,
  base: T,
)

Source from the content-addressed store, hash-verified

51}
52
53function withCanonicalWorkflow<T extends object>(
54 tool: ToolListItem,
55 base: T,
56): T & {
57 canonicalWorkflow?: string;
58} {
59 if (!tool.isCanonical && tool.originWorkflow) {
60 return { ...base, canonicalWorkflow: tool.originWorkflow };
61 }
62
63 return base;
64}
65
66function toFlatJsonTool(tool: ToolListItem): JsonToolWithWorkflow {
67 const base = {

Callers 2

toFlatJsonToolFunction · 0.85
toGroupedJsonToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected