Home / Function/ client() — mcp Function Reference

client() — mcp Function Reference

Architecture documentation for the client() function in types.ts from the mcp codebase.

Entity Profile

Dependency Diagram

graph TD
  87f66fc4_8e2b_d13b_248c_c2f5b89e51f9["client()"]
  5c6acde2_5ba8_604f_70ae_120f7b72feaa["types.ts"]
  87f66fc4_8e2b_d13b_248c_c2f5b89e51f9 -->|defined in| 5c6acde2_5ba8_604f_70ae_120f7b72feaa
  style 87f66fc4_8e2b_d13b_248c_c2f5b89e51f9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/types.ts lines 19–23

export type HandlerFunction = (
  client: ClientContext,
  args: Record<string, unknown> | undefined,
  defaultWorkdir?: string
) => Promise<ToolCallResult>;

Domain

Subdomains

Defined In

Frequently Asked Questions

What does client() do?
client() is a function in the mcp codebase, defined in src/types.ts.
Where is client() defined?
client() is defined in src/types.ts at line 19.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free