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

Function outputItemContent

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

isFileOutputItemFunction · 0.85
outputFileContentFunction · 0.85
isContentOutputItemFunction · 0.85

Tested by

no test coverage detected