Skip to content

feat(frameworks): Add Mastra#15076

Merged
nsidnev merged 8 commits intovercel:mainfrom
LekoArts:feat/add-mastra
Apr 2, 2026
Merged

feat(frameworks): Add Mastra#15076
nsidnev merged 8 commits intovercel:mainfrom
LekoArts:feat/add-mastra

Conversation

@LekoArts
Copy link
Copy Markdown
Contributor

@LekoArts LekoArts commented Feb 17, 2026

Hello 👋

This adds Mastra as a framework preset to the frameworks package. We currently have this guide (https://mastra.ai/guides/deployment/vercel) and it works great! Our VercelDeployer() package outputs a .vercel/output directory conforming to Vercel's Build Output API so that you can deploy Mastra as serverless functions on Vercel.

With this PR I want to add some polish to this experience by providing logos, descriptions and preset build commands to people deploying to Vercel.

While mastra build creates a .mastra folder the VercelDeployer() is doing the work. Let me know if I need to adjust the output directory or we can keep it at .mastra.

Note

Low Risk Change

This PR adds a new Mastra framework preset with example code, logos, documentation, and integration test - all additive changes with no modifications to existing security, auth, or business logic.

  • Adds new framework preset configuration in frameworks.ts with build/dev commands
  • Adds complete example project with agents, tools, workflows, and scorers
  • Adds integration test, logos, and documentation files

Risk assessment for commit b43f307.

@LekoArts LekoArts requested review from a team as code owners February 17, 2026 14:58
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 17, 2026

🦋 Changeset detected

Latest commit: c6a62bd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@vercel/frameworks Minor
@vercel/fs-detectors Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@socket-security
Copy link
Copy Markdown

Copy link
Copy Markdown
Member

@nsidnev nsidnev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @LekoArts! This is awesome, thank you for the contribution!

@nsidnev nsidnev merged commit d034d90 into vercel:main Apr 2, 2026
306 of 327 checks passed
ofhouse pushed a commit that referenced this pull request Apr 3, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## [email protected]

### Minor Changes

- Add `vercel tokens` subcommands (`ls`, `add`, `rm`) for auth token API
parity with the dashboard.
([#15812](#15812))

- Add `vercel project access-summary` subcommand to list member counts
by role for a project.
([#15813](#15813))

- Add `vercel project members` and `vercel project access-groups`
commands, and fix `vercel teams members` to fetch all pages from the
paginated team members API.
([#15786](#15786))

### Patch Changes

- Add `--id` flag to `vercel build` and `vercel env pull` to fetch
deployment-scoped environment variables
([#15805](#15805))

-   Updated dependencies \[]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Minor Changes

- Add Mastra framework preset
([#15076](#15076))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`d034d90dcf78316ddacdcce8fd51329fb7eefe82`](d034d90)]:
    -   @vercel/[email protected]

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants