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

Function allText

src/test-utils/test-helpers.ts:18–27  ·  view source on GitHub ↗
(result: {
  content: ReadonlyArray<{ type: string; text?: string; [key: string]: unknown }>;
})

Source from the content-addressed store, hash-verified

16 * Extract and join all text content items from a tool response.
17 */
18export function allText(result: {
19 content: ReadonlyArray<{ type: string; text?: string; [key: string]: unknown }>;
20}): string {
21 return result.content
22 .filter(
23 (c): c is { type: 'text'; text: string } => c.type === 'text' && typeof c.text === 'string',
24 )
25 .map((c) => c.text)
26 .join('\n');
27}
28
29/**
30 * Assert that a tool response represents a pending xcodebuild result

Calls

no outgoing calls

Tested by

no test coverage detected