One tool registry for the page, the chat agent and MCP: zod input parsed once, run as the signed-in person, traced, with streamText tools and a stateless MCP endpoint from the same definitions.
pnpm dlx shadcn@latest add "https://ui.zyx.tw/r/agent-tools.json"