HandlerFunction Type — mcp Architecture
Architecture documentation for the HandlerFunction type/interface in types.ts from the mcp codebase.
Entity Profile
Source Code
src/types.ts lines 19–23
export type HandlerFunction = (
client: ClientContext,
args: Record<string, unknown> | undefined,
defaultWorkdir?: string
) => Promise<ToolCallResult>;
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free