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

Function mcpToolFailure

packages/plugins/mcp/src/sdk/plugin.ts:354–359  ·  view source on GitHub ↗
(code: string, message: string, details?: unknown)

Source from the content-addressed store, hash-verified

352const McpGetServerOutputStandardSchema = schemaToStaticToolSchema(McpGetServerOutputSchema);
353
354const mcpToolFailure = (code: string, message: string, details?: unknown) =>
355 ToolResult.fail({
356 code,
357 message,
358 ...(details === undefined ? {} : { details }),
359 });
360
361const mcpInvocationAuthFailure = (input: {
362 readonly status: 401 | 403;

Callers 1

plugin.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected