Optionaloptions: CreateClientOptionsOptional client configuration (forceAdapter, autoResize)
Fully typed AppsClient
// server.ts
import { createApp, defineTool } from "@mcp-apps-kit/core";
const app = createApp({
tools: { greet: defineTool({ ... }) }
});
export { app };
// ui.tsx
import { createTypedClient } from "@mcp-apps-kit/ui";
import { app } from "./server";
const client = await createTypedClient(app);
client.tools.callGreet({ name: "Alice" }); // Fully typed!
Create a typed client from an App instance.
Convenience function that automatically extracts client types from your App instance, eliminating manual type exports.