MCPcopy Index your code
hub / github.com/anus-dev/ANUS / ServerTool

Interface ServerTool

packages/core/src/core/turn.ts:31–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30// Define a structure for tools passed to the server
31export interface ServerTool {
32 name: string;
33 schema: FunctionDeclaration;
34 // The execute method signature might differ slightly or be wrapped
35 execute(
36 params: Record<string, unknown>,
37 signal?: AbortSignal,
38 ): Promise<ToolResult>;
39 shouldConfirmExecute(
40 params: Record<string, unknown>,
41 abortSignal: AbortSignal,
42 ): Promise<ToolCallConfirmationDetails | false>;
43}
44
45export enum AnusEventType {
46 Content = 'content',

Callers 12

getEnvironmentContextFunction · 0.65
simulateExecutionFunction · 0.65
runToolMethod · 0.65
#resolvePromptMethod · 0.65
processMethod · 0.65
createMethod · 0.65
_scheduleMethod · 0.65
runToolMethod · 0.65
shouldConfirmExecuteMethod · 0.65

Implementers 11

WebFetchToolInvocationpackages/core/src/tools/web-fetch.ts
TestToolInvocationpackages/core/src/tools/tools.test.ts
EditToolInvocationpackages/core/src/tools/edit.ts
MemoryToolInvocationpackages/core/src/tools/memoryTool.ts
DiscoveredMCPToolInvocationpackages/core/src/tools/mcp-tool.ts
ShellToolInvocationpackages/core/src/tools/shell.ts
WriteFileToolInvocationpackages/core/src/tools/write-file.ts
MockToolInvocationpackages/core/src/test-utils/tools.ts
MockModifiableToolInvocationpackages/core/src/test-utils/tools.ts
MockEditToolInvocationpackages/core/src/core/coreToolSchedul
MockToolInvocationpackages/cli/src/ui/hooks/useToolSched

Calls

no outgoing calls

Tested by

no test coverage detected