Skip to main content
Defined in: client/client.ts:75

Properties

auth?

optional auth?: 
  | string
  | OAuth
  | BearerAuth
  | ClientCredentials;
Defined in: client/client.ts:80 Authentication to attach to HTTP requests. A plain string is treated as a Bearer token.

autoInitialize?

optional autoInitialize?: boolean;
Defined in: client/client.ts:92 When true (default), the MCP initialize handshake is performed automatically inside connect().

defaultOptions?

optional defaultOptions?: ClientDefaultOptions;
Defined in: client/client.ts:93

handlers?

optional handlers?: ClientHandlers;
Defined in: client/client.ts:81

roots?

optional roots?: RootsValue;
Defined in: client/client.ts:87 Filesystem roots to advertise to the server. Accepts a static array of strings / Root objects, or an async callback invoked on each roots/list request (useful for dynamic root sets).