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

Method constructor

packages/core/src/tools/tools.test.ts:44–47  ·  view source on GitHub ↗
(buildFn: (params: object) => TestToolInvocation)

Source from the content-addressed store, hash-verified

42 private readonly buildFn: (params: object) => TestToolInvocation;
43
44 constructor(buildFn: (params: object) => TestToolInvocation) {
45 super('test-tool', 'Test Tool', 'A tool for testing', Kind.Other, {});
46 this.buildFn = buildFn;
47 }
48
49 build(params: object): ToolInvocation<object, ToolResult> {
50 return this.buildFn(params);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected