Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active September 23, 2025 16:41
Show Gist options
  • Select an option

  • Save wilmoore/643e703e4c6dba8402febf248242e6eb to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/643e703e4c6dba8402febf248242e6eb to your computer and use it in GitHub Desktop.
AI :: Agent :: Framework :: mastra :: Training :: Mastra 101

AI :: Agent :: Framework :: mastra :: Training :: Mastra 101

⪼ Made with 💜 by Polyglot.

related

Learn how to build agents

  • Explained by Shane Thomas CPO of Mastra
  • Led by an MCP Agent
  • 4 Lessons and more soon
  • 12 Hours to compete
  • Interactive progress

In this hands-on course, you'll learn to develop and deploy AI agents using Mastra, including how to equip them with tools, memory, and MCP. But here's the twist: you're not just learning about agents, you're learning from one.

This course is delivered entirely inside your agentic code editor, where your code agent guides you step-by-step, writes code with you, and helps you build real, working agents from the ground up.

Begin Mastra 101

  1. Choose your editor and paste the command to install the mcp server automatically
  2. If you already have a Mastra project follow the instructions
  3. Type in Start Mastra Course in your editor to start the course
Cursor

Edit .cursor/mcp.json in your project root, or ~/.cursor/mcp.json for global configuration

npx create-mastra@latest --default -m cursor
{
  "mcpServers": {
    "mastra": {
      "command": "npx",
      "args": ["-y", "@mastra/mcp-docs-server"]
    }
  }
}
Windsurf

Edit ~/.codeium/windsurf/mcp_config.json (only supports global configuration)

npx create-mastra@latest --default -m windsurf
{
  "mcpServers": {
    "mastra": {
      "command": "npx",
      "args": ["-y", "@mastra/mcp-docs-server"]
    }
  }
}
VSCode

Edit ~/.vscode/mcp.json in your project root. Add the following configuration

npx create-mastra@latest --default -m vscode
{
  "servers": {
    "mastra": {
      "command": "npx",
      "args": ["-y", "@mastra/mcp-docs-server"],
      "type": "stdio"
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment