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.
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>(); Copy
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>();
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.