Build a Node agent that calls your own tool
Run a Mastra agent locally that calls a tool you wrote, then reach it from Studio or over HTTP.
Install
npx shadcn add https://www.wirestack.site/r/mastra-agent-with-custom-tool.json.env.local.Your keys
0 of 1 ready
Create each key on its own page, paste it below, then copy the finished lines into your project's .env file. Your keys stay in this tab. They are never sent to Wirestack or saved; we only count that the panel was used.
- Google Gemini API keyGOOGLE_API_KEYGet key
Create a key in Google AI Studio. Mastra itself needs no key to run locally.
Free accounts can open one adapted integration a month. Sign in to try it.
Set it up by hand
No AI tool or account needed: follow the steps and copy the code into your project.



