MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / outputItemContent

Function outputItemContent

packages/hosts/mcp/src/tool-server.ts:669–677  ·  view source on GitHub ↗
(item: ExecuteOutputItem)

Source from the content-addressed store, hash-verified

667 isRecord(item) && item.type === "content" && isMcpContentBlock(item.content);
668
669const outputItemContent = (item: ExecuteOutputItem): ContentBlock[] => {
670 if (isFileOutputItem(item)) {
671 return outputFileContent(item.file);
672 }
673 if (isContentOutputItem(item)) {
674 return [item.content];
675 }
676 return [{ type: "text", text: "Invalid execution output item omitted." }];
677};
678
679const toMcpOutputResult = (
680 result: FormattedExecuteInput,

Callers

nothing calls this directly

Calls 3

isFileOutputItemFunction · 0.85
outputFileContentFunction · 0.85
isContentOutputItemFunction · 0.85

Tested by

no test coverage detected