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

Function artifactNotFoundResult

packages/hosts/mcp/src/tool-server.ts:1233–1242  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

1231};
1232
1233const artifactNotFoundResult = (id: string): McpToolResult => ({
1234 content: [
1235 {
1236 type: "text",
1237 text: `No artifact with id "${id}". Call list-artifacts to see what is saved.`,
1238 },
1239 ],
1240 structuredContent: { status: "error", error: "artifact_not_found", id },
1241 isError: true,
1242});
1243
1244const JsonObjectFromString = Schema.fromJsonString(Schema.Record(Schema.String, Schema.Unknown));
1245const decodeJsonObjectString = Schema.decodeUnknownOption(JsonObjectFromString);

Callers 1

showArtifactFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected