mcpField

adapter-fastify

trpcDevelopment58 installs

About adapter-fastify

Mount tRPC as a Fastify plugin with fastifyTRPCPlugin from @trpc/server/adapters/fastify. Configure prefix, trpcOptions (router, createContext, onError). Enable WebSocket subscriptions with useWSS and @fastify/websocket. Set routerOptions.maxParamLength for batch requests. Requires Fastify v5+. FastifyTRPCPluginOptions for type-safe onError. CreateFastifyContextOptions provides req, res.

Install

Copy the command and run it in a terminal.

$npx skills add https://trpc/trpc --skill adapter-fastify

After installing, type/adapter-fastifyin Claude Code to confirm it loaded.

Comments

Markdown supported