Skip to content

Add Mastra Harness Chat example#679

Open
vishxrad wants to merge 3 commits into
mainfrom
visharad/add-mastra-harness
Open

Add Mastra Harness Chat example#679
vishxrad wants to merge 3 commits into
mainfrom
visharad/add-mastra-harness

Conversation

@vishxrad

@vishxrad vishxrad commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a new examples/harnesses/mastra-harness Next.js example that connects OpenUI chat to Mastra's Harness API.
  • Configure one default Harness mode with safe mock tools, LibSQL-backed Harness state, and an AG-UI event bridge for OpenUI rendering.
  • Add localStorage-backed OpenUI thread persistence while keeping the UI on the stock OpenUI <FullScreen /> chat surface.
  • Update the app, metadata, and README copy around the simplified Mastra Harness Chat experience.

Validation

  • PATH=/opt/homebrew/bin:$PATH /opt/homebrew/bin/pnpm --filter mastra-harness run lint
  • rm -rf examples/harnesses/mastra-harness/.next && PATH=/opt/homebrew/bin:$PATH /opt/homebrew/bin/pnpm --filter mastra-harness run typecheck
  • PATH=/opt/homebrew/bin:$PATH /opt/homebrew/bin/pnpm --filter mastra-harness run build

Note: the local ignored .env.local was redacted before publishing; it is not included in this PR.

@vishxrad vishxrad changed the title [codex] Add Mastra harness example Add Mastra harness example Jun 25, 2026
@vishxrad vishxrad marked this pull request as ready for review June 25, 2026 07:34
@vishxrad vishxrad changed the title Add Mastra harness example Add Mastra Harness Chat example Jul 4, 2026
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.

1 participant