Shadcn Hooks

useMcp

A hook to get the latest value of a variable

useMcp

npx shadcn@latest add "https://shadcn-hooks.vercel.app/r/use-mcp.json"
pnpm dlx shadcn@latest add "https://shadcn-hooks.vercel.app/r/use-mcp.json"
yarn dlx shadcn@latest add "https://shadcn-hooks.vercel.app/r/use-mcp.json"
bun x shadcn@latest add "https://shadcn-hooks.vercel.app/r/use-mcp.json"

Copy and paste the following code into your project.

npm install use-mcp
pnpm add use-mcp
yarn add use-mcp
bun add use-mcp

Last updated on

On this page