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

Function renderRejectedResult

packages/hosts/mcp/src/tool-server.ts:838–842  ·  view source on GitHub ↗
(reason: string)

Source from the content-addressed store, hash-verified

836// artifact was saved and can be reopened later.
837
838const renderRejectedResult = (reason: string): McpToolResult => ({
839 content: [{ type: "text", text: `create-artifact rejected: ${reason}` }],
840 structuredContent: { status: "error", error: reason },
841 isError: true,
842});
843
844/** `execute-action` was handed something other than a single proxy-shaped tool
845 * call. Names the contract rather than just refusing, since the reader is

Callers 1

createArtifactFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected