@mcp-z/client
    Preparing search index...

    Type Alias ManagedClient

    ManagedClient: Omit<Client, "callTool" | "getPrompt" | "readResource"> & {
        nativeClient: Client;
        serverName: string;
        callTool(
            toolName: string,
            args?: ToolArguments,
            requestOptions?: RequestOptions,
        ): WrappedCallToolReturn;
        callTool(
            invocation: {},
            sessionId?:
                | ZodObject<{}, $loose>
                | ZodUnion<[ZodObject<{}, $loose>, ZodObject<{}, $loose>]>,
            requestOptions?: RequestOptions,
        ): WrappedCallToolReturn;
        callToolRaw(
            toolName: string,
            args?: ToolArguments,
            requestOptions?: RequestOptions,
        ): Promise;
        callToolRaw(
            invocation: {},
            sessionId?:
                | ZodObject<{}, $loose>
                | ZodUnion<[ZodObject<{}, $loose>, ZodObject<{}, $loose>]>,
            requestOptions?: RequestOptions,
        ): Promise;
        getPrompt(
            name: string,
            args?: PromptArguments,
            requestOptions?: RequestOptions,
        ): WrappedGetPromptReturn;
        getPrompt(
            invocation: {},
            requestOptions?: RequestOptions,
        ): WrappedGetPromptReturn;
        getPromptRaw(
            name: string,
            args?: PromptArguments,
            requestOptions?: RequestOptions,
        ): Promise;
        getPromptRaw(invocation: {}, requestOptions?: RequestOptions): Promise;
        readResource(
            uri: string,
            requestOptions?: RequestOptions,
        ): WrappedReadResourceReturn;
        readResource(
            request: {},
            requestOptions?: RequestOptions,
        ): WrappedReadResourceReturn;
        readResourceRaw(uri: string, requestOptions?: RequestOptions): Promise;
        readResourceRaw(request: {}, requestOptions?: RequestOptions): Promise;
    }

    Client returned by registry.connect() with convenience overloads for calling tools, reading resources, and getting prompts using simple arguments.

    Type Declaration

    • ReadonlynativeClient: Client

      Underlying MCP SDK client for advanced scenarios.

    • ReadonlyserverName: string

      Name of the server this client is connected to.

    • callTool: function
    • callToolRaw: function
      • Parameters

        • toolName: string
        • Optionalargs: ToolArguments
        • OptionalrequestOptions: RequestOptions

        Returns Promise

      • Parameters

        • invocation: {}
        • OptionalsessionId: ZodObject<{}, $loose> | ZodUnion<[ZodObject<{}, $loose>, ZodObject<{}, $loose>]>
        • OptionalrequestOptions: RequestOptions

        Returns Promise

    • getPrompt: function
    • getPromptRaw: function
      • Parameters

        • name: string
        • Optionalargs: PromptArguments
        • OptionalrequestOptions: RequestOptions

        Returns Promise

      • Parameters

        • invocation: {}
        • OptionalrequestOptions: RequestOptions

        Returns Promise

    • readResource: function
    • readResourceRaw: function
      • Parameters

        • uri: string
        • OptionalrequestOptions: RequestOptions

        Returns Promise

      • Parameters

        • request: {}
        • OptionalrequestOptions: RequestOptions

        Returns Promise