sanzhar (@iboughtbed) 's Twitter Profile
sanzhar

@iboughtbed

16 y.o. swe / building prllxhq.com

ID: 1664993018384900097

linkhttps://sanzhar.xyz calendar_today03-06-2023 13:50:52

259 Tweet

428 Followers

390 Following

sanzhar (@iboughtbed) 's Twitter Profile Photo

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โ€ฆ

sanzhar (@iboughtbed) 's Twitter Profile Photo

After a quote from one person talking about that *some* apps are better off having human language as output instead of json, I thought about it. If this library would support somehow specifying specific output for MCPs, maybe transforming the output somehow, how would yall think

sanzhar (@iboughtbed) 's Twitter Profile Photo

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"

You can now transform the outputs of your <a href="/trpcio/">tRPC.io ๐Ÿง™โ€โ™‚๏ธ</a> 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"
sanzhar (@iboughtbed) 's Twitter Profile Photo

About 80% of my code is hand-written, and 20% is generate by AI and reviewed by me in Cursor. However, the amount of code I'm writing now is waaaaaaaay bigger and better, because Cursor makes me even faster when I have small tasks that can be automated.

sanzhar (@iboughtbed) 's Twitter Profile Photo

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 <a href="/better_auth/">Better Auth</a> 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.
sanzhar (@iboughtbed) 's Twitter Profile Photo

I love frontend too, but not like actually writing code for the design, it sucks and should be done by AI. Designing is cool tho, but I'm not that good at it. But backend it better

sanzhar (@iboughtbed) 's Twitter Profile Photo

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