Who it is forA JavaScript developer who wants to try agents without leaving the TypeScript stack.
The problemMost agent frameworks are Python-first, which leaves TypeScript teams wiring things together themselves.
The outcomeA new Mastra project with a dev server and Mastra Studio at localhost:4111 for testing agents, workflows and tools.
What you need first
- Node.js and npm
- An API key for a provider such as OpenAI, Anthropic, Google or xAI
- Optional: storage for suspend and resume and memory
Steps
- Run
npm create mastra@latestand follow the prompts - Choose a project name and a provider such as openai, anthropic, google or xai
- Enter the project directory and start the dev server
- Open Mastra Studio at http://localhost:4111 to build, test and manage agents, workflows and tools
- Use the templates and course from the docs if you are new to agents
Prompt for your agent
Create a new Mastra project with npm create mastra@latest using <provider>, start the dev server, and build an agent in it that <describe job>. Test it in Mastra Studio and show me the result.
Caveat. Code in any ee/ directory is under the Mastra Enterprise License and needs a license for production use.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for mastra-ai/mastra and "Start a TypeScript agent project with Mastra Studio"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer