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

Function createStructuredErrorOutput

src/utils/structured-error.ts:13–25  ·  view source on GitHub ↗
(params: StructuredErrorParams)

Source from the content-addressed store, hash-verified

11}
12
13export function createStructuredErrorOutput(params: StructuredErrorParams): StructuredToolOutput {
14 return {
15 schema: STRUCTURED_ERROR_SCHEMA,
16 schemaVersion: STRUCTURED_ERROR_SCHEMA_VERSION,
17 result: {
18 kind: 'error',
19 didError: true,
20 error: params.message,
21 category: params.category,
22 code: params.code,
23 },
24 };
25}
26
27export function setStructuredErrorOutput(
28 ctx: Pick<ToolHandlerContext, 'structuredOutput'>,

Callers 6

writeJsonOutputFunction · 0.90
registerToolSubcommandFunction · 0.90
emitExplicitRuntimeErrorFunction · 0.90
setStructuredErrorOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected