MCP Apps Kit - v0.5.0
    Preparing search index...

    Type Alias ClientToolsFromCore<T>

    ClientToolsFromCore: {
        [K in keyof T]: {
            input: z.input<T[K]["input"]>;
            output: NonNullable<T[K]["output"]> extends z.ZodType
                ? z.infer<NonNullable<T[K]["output"]>>
                : unknown;
        }
    }

    Convert @mcp-apps-kit/core tool definitions (Zod-based) into the tool type shape expected by @mcp-apps-kit/ui.

    This is the recommended way to get end-to-end typing for UI clients without duplicating schemas.

    Type Parameters

    import type { ClientToolsFromCore } from "@mcp-apps-kit/core";
    import { createClient } from "@mcp-apps-kit/ui";

    type AppClientTools = ClientToolsFromCore<typeof app.tools>;
    const client = await createClient<AppClientTools>();