
sanzhar
@iboughtbed
16 y.o. swe / building prllxhq.com
ID: 1664993018384900097
https://sanzhar.xyz 03-06-2023 13:50:52
259 Tweet
428 Followers
390 Following



I just created a library that turns your tRPC.io ๐งโโ๏ธ into MCP tools, server and handler. It also supports Vercel / mcp-adapter and Better Auth too. You can check and star the repo. Few lines of code, simply run "npm install trpc-to-mcp" and read README github.com/iboughtbed/trpโฆ





You can now transform the outputs of your tRPC.io ๐งโโ๏ธ trpc-to-mcp procedures with a helper function that allows you to create human-language output for LLMs for better context. Just import it from "trpc-to-mcp@latest"






hey Better Auth is there a way to have a database hook "after" for account deletion, or should I use simple hooks with "after" + createAuthMiddleware. if so, how to get the user from the context in hooks, I want to handle the account unlinking, cause we need it.



hey Better Auth i have a question that's been annoying me for 2 months, do all account-related procedures take `account. id` as accountId input or do they all take `account.accountId`, cause sometimes some have one, some other, and it's really confusing


