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

Function finalizeBridgeToolExecution

src/mcp/tools/xcode-ide/shared.ts:71–92  ·  view source on GitHub ↗
(
  ctx: ToolHandlerContext,
  executionContext: BridgeToolExecutionContext,
  result: ToolDomainResult,
  schema: string,
  schemaVersion: string,
)

Source from the content-addressed store, hash-verified

69}
70
71export function finalizeBridgeToolExecution(
72 ctx: ToolHandlerContext,
73 executionContext: BridgeToolExecutionContext,
74 result: ToolDomainResult,
75 schema: string,
76 schemaVersion: string,
77): void {
78 ctx.structuredOutput = {
79 result,
80 schema,
81 schemaVersion,
82 };
83
84 for (const image of executionContext.getBridgeImages()) {
85 ctx.attach(image);
86 }
87
88 const nextStepParams = executionContext.getNextStepParams();
89 if (nextStepParams) {
90 ctx.nextStepParams = nextStepParams;
91 }
92}
93
94export function toBridgeStatusDomainResult(
95 bridgeResult: BridgeToolResult,

Callers 5

xcodeIdeCallToolLogicFunction · 0.90
xcodeIdeListToolsLogicFunction · 0.90

Calls 3

getBridgeImagesMethod · 0.80
getNextStepParamsMethod · 0.80
attachMethod · 0.65

Tested by

no test coverage detected