MCPcopy Create free account
hub / github.com/anus-dev/ANUS / constructor

Method constructor

packages/core/src/tools/mcp-tool.ts:62–72  ·  view source on GitHub ↗
(
    private readonly mcpTool: CallableTool,
    readonly serverName: string,
    readonly serverToolName: string,
    readonly displayName: string,
    readonly timeout?: number,
    readonly trust?: boolean,
    params: ToolParams = {},
  )

Source from the content-addressed store, hash-verified

60 private static readonly allowlist: Set<string> = new Set();
61
62 constructor(
63 private readonly mcpTool: CallableTool,
64 readonly serverName: string,
65 readonly serverToolName: string,
66 readonly displayName: string,
67 readonly timeout?: number,
68 readonly trust?: boolean,
69 params: ToolParams = {},
70 ) {
71 super(params);
72 }
73
74 override async shouldConfirmExecute(
75 _abortSignal: AbortSignal,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected