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

Method constructor

packages/core/src/test-utils/tools.ts:74–84  ·  view source on GitHub ↗
(
    name = 'mock-tool',
    displayName?: string,
    description = 'A mock tool for testing.',
    params: Schema = {
      type: Type.OBJECT,
      properties: { param: { type: Type.STRING } },
    },
  )

Source from the content-addressed store, hash-verified

72 shouldConfirm = false;
73
74 constructor(
75 name = 'mock-tool',
76 displayName?: string,
77 description = 'A mock tool for testing.',
78 params: Schema = {
79 type: Type.OBJECT,
80 properties: { param: { type: Type.STRING } },
81 },
82 ) {
83 super(name, displayName ?? name, description, Kind.Other, params);
84 }
85
86 protected createInvocation(params: {
87 [key: string]: unknown;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected