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

Function buildStructuredContent

src/utils/tool-registry.ts:27–45  ·  view source on GitHub ↗
(
  session: RenderSession,
)

Source from the content-addressed store, hash-verified

25type RenderSession = ReturnType<typeof createRenderSession>;
26
27function buildStructuredContent(
28 session: RenderSession,
29): StructuredOutputEnvelope<unknown> | undefined {
30 const structuredOutput = session.getStructuredOutput?.();
31 if (!structuredOutput) {
32 return undefined;
33 }
34
35 return toStructuredEnvelope(
36 structuredOutput.result,
37 structuredOutput.schema,
38 structuredOutput.schemaVersion,
39 {
40 nextSteps: session.getNextSteps?.(),
41 nextStepRuntime: 'mcp',
42 outputStyle: 'minimal',
43 },
44 );
45}
46
47function sessionToToolResponse(session: RenderSession): ToolResponse {
48 const text = session.finalize();

Callers 1

sessionToToolResponseFunction · 0.85

Calls 3

toStructuredEnvelopeFunction · 0.90
getStructuredOutputMethod · 0.80
getNextStepsMethod · 0.80

Tested by

no test coverage detected