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

Function toBridgeCallResultDomainResult

src/mcp/tools/xcode-ide/shared.ts:139–156  ·  view source on GitHub ↗
(
  bridgeResult: BridgeToolResult,
  remoteTool: string,
)

Source from the content-addressed store, hash-verified

137}
138
139export function toBridgeCallResultDomainResult(
140 bridgeResult: BridgeToolResult,
141 remoteTool: string,
142): XcodeBridgeCallResultDomainResult {
143 const payload = bridgeResult.payload?.kind === 'call-result' ? bridgeResult.payload : null;
144
145 return {
146 kind: 'xcode-bridge-call-result',
147 remoteTool,
148 didError: Boolean(bridgeResult.isError),
149 error: bridgeResult.isError
150 ? (bridgeResult.errorMessage ?? `Tool "${remoteTool}" failed`)
151 : null,
152 succeeded: payload?.succeeded ?? !Boolean(bridgeResult.isError),
153 content: payload?.content ?? [],
154 ...(payload?.artifacts ? { artifacts: payload.artifacts } : {}),
155 };
156}
157
158function createFallbackBridgeStatus(error: string | null): XcodeBridgeStatusInfo {
159 return {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected