详细内容
Build a Slack Agent with MastraThu Dec 4 @ 5:00 PM UTC
Build agents with a modern TypeScript stack
Mastra is an all-in-one framework for building
AI-powered applications and agents.
Start Buildingnpm create mastra@latest

Agent Framework
Build and iterate
Agents. Workflows. RAG. Memory. MCP. Evals.
Mastra lets you go from idea to implementation.

Agents
Workflows
RAG
Memory
Tools
MCP
●const chefAgent = new Agent({
● name: "chef-agent",
● instructions:
● "You are Michel, a practical and experienced home chef. " +
● "You help people cook with whatever ingredients they have.",
● model: "openai/gpt-4o-mini",
● tools: { fetchIngredients, printRecipe },
●});
Run your agents in a local dev server Write your agent logic in JavaScript
Your developer studio Iterate and visualize agents and workflows
Observability platform
Productionize and test
Tune context. Improve recall.
Tweak until your agents achieve human-level accuracy.
Define custom evals
Track performance of your agents over time
Evaluate agent output using model-graded, rule-based, and statistical methods Process inputs/outputs so you can prevent prompt injection and sanitize responses Trace agent calls and token usage, with your o11y platform Secure access to agent endpoints using your identity system
Built-in observability
View traces and logs for your agents
Deployment platform
Deploy and scale
Expose your agents as APIs, or bundle them with your app.
With Mastra, your agents are part of your infrastructure.
Manage deployments
Control your source code and infrastructure
Integrates with your framework or server: Next.js, Express, Hono, and more... Control your source code. Mastra is fully open-source under the Apache 2.0 license
Flexible architecture
Deploy Mastra agents wherever you're hosting your app, or as a standalone service
Build your first agent
with Templates read the Agent Book
learn with the Tutorial watch the Workshops
tune in to Agents hour and more...
\
\
Browser agent\
\
Automate browser actions
\
\
Google Sheet analysis\
\
AI answer engine with Generative UI
\
\
Coding agent\
\
AI coding agent with E2B sandbox
\
\
Deep research\
\
Browse the web and summarize findings
\
\
PDF-to-audio\
\
Convert a PDF into audio
\
\
Text-to-SQL\
\
From natural language to SQL queries
\
\
Principles of Building AI Agents\
\
A practical guide on how to build AI agents
Get started quickly with pre-built solutions
from Mastra and our community.
MCP Course Mastra 101\
\
Introduced by Shane Thomas, CPO of Mastra
