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

Function toolErrorToDaemonResult

src/daemon/daemon-server.ts:78–89  ·  view source on GitHub ↗
(remoteTool: string, error: unknown)

Source from the content-addressed store, hash-verified

76}
77
78function toolErrorToDaemonResult(remoteTool: string, error: unknown): DaemonToolResult {
79 const message = error instanceof Error ? error.message : String(error);
80 return bridgeResultToDaemonResult(remoteTool, {
81 isError: true,
82 errorMessage: message,
83 payload: {
84 kind: 'call-result',
85 succeeded: false,
86 content: [{ type: 'text', text: message }],
87 },
88 });
89}
90
91/**
92 * Start the daemon server listening on a Unix domain socket.

Callers 1

startDaemonServerFunction · 0.85

Calls 1

Tested by

no test coverage detected