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

Function fileResourceUri

packages/hosts/mcp/src/tool-server.ts:295–296  ·  view source on GitHub ↗
(file: ToolFileValue)

Source from the content-addressed store, hash-verified

293const toolFileName = (file: ToolFileValue): string => file.name ?? "tool-output";
294
295const fileResourceUri = (file: ToolFileValue): string =>
296 `executor-file:///${encodeURIComponent(toolFileName(file))}`;
297
298const normalizedMimeType = (file: ToolFileValue): string =>
299 file.mimeType.split(";")[0]?.trim().toLowerCase() ?? "";

Callers 1

toolFileContentFunction · 0.85

Calls 1

toolFileNameFunction · 0.85

Tested by

no test coverage detected