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

Function fileResourceUri

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

Source from the content-addressed store, hash-verified

332const toolFileName = (file: ToolFileValue): string => file.name ?? "tool-output";
333
334const fileResourceUri = (file: ToolFileValue): string =>
335 `executor-file:///${encodeURIComponent(toolFileName(file))}`;
336
337const normalizedMimeType = (file: ToolFileValue): string =>
338 file.mimeType.split(";")[0]?.trim().toLowerCase() ?? "";

Callers 1

toolFileContentFunction · 0.85

Calls 1

toolFileNameFunction · 0.85

Tested by

no test coverage detected