Skip to content

feat: add Mastra TypeScript framework template#1428

Open
huanshenyi wants to merge 1 commit into
aws:mainfrom
huanshenyi:codex/mastra-typescript-framework
Open

feat: add Mastra TypeScript framework template#1428
huanshenyi wants to merge 1 commit into
aws:mainfrom
huanshenyi:codex/mastra-typescript-framework

Conversation

@huanshenyi
Copy link
Copy Markdown

@huanshenyi huanshenyi commented May 30, 2026

Description

Adds Mastra as a supported TypeScript HTTP framework template for AgentCore agents.

This change wires Mastra through the create/add validation paths, TUI framework options, renderer selection, telemetry framework enum, and asset snapshot coverage. The new template uses @mastra/core with AI SDK providers and provides a working AgentCore Runtime HTTP entrypoint.

Related Issue

Closes #1429

Related to #1207

Documentation PR

N/A

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe):

Testing

How have you tested the change?

  • I ran npm run test:unit and npm run test:integ
  • I ran npm run typecheck
  • I ran npm run lint
  • If I modified src/assets/, I ran npm run test:update-snapshots and committed the updated snapshots

Additional validation:

  • Ran npm run build
  • Generated a Mastra TypeScript agent and verified local /invocations streaming
  • Deployed the generated Mastra project to AgentCore Runtime in ap-northeast-1
  • Verified deployed invocation with agentcore invoke --stream --target default --runtime MastraTest "hi"

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.

@huanshenyi huanshenyi requested a review from a team May 30, 2026 16:18
@github-actions github-actions Bot added the size/m PR size: M label May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Mastra as a TypeScript framework template

1 participant