Skip to content

docs: Add Mastra integration guide#447

Merged
davidmyriel merged 5 commits intomainfrom
myriel/mastra-agents
May 8, 2026
Merged

docs: Add Mastra integration guide#447
davidmyriel merged 5 commits intomainfrom
myriel/mastra-agents

Conversation

@davidmyriel
Copy link
Copy Markdown
Contributor

@davidmyriel davidmyriel commented Apr 28, 2026

PREVIEW

Adds a new docs page at docs/agents/agent-mastra.mdx walking developers through using @tigrisdata/agent-kit with Mastra, the TypeScript agent framework.

The guide uses the orchestrator pattern end-to-end: your code calls Agent Kit to provision a workspace (or fork a dataset), hands the resulting bucket and scoped credentials to the agent through Mastra's RequestContext, runs the agent, and tears storage down — even if the run throws. This keeps the LLM out of infrastructure decisions and keeps credentials out of the prompt context.

Eight steps cover install through cleanup, including a single-agent workspace example, a multi-agent eval pattern that forks a dataset 5× for parallel runs, and an optional coordination section that fires a webhook when an agent writes to a watched prefix.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs-redirect Ready Ready Preview, Comment May 8, 2026 9:23am
tigris-os-docs Ready Ready Preview, Comment May 8, 2026 9:23am

Request Review

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Apr 28, 2026

Greptile Summary

This PR adds a new guide for building agents with Mastra and Tigris, covering workspace provisioning, dataset forks, checkpoints, and coordination. The guide is well-structured with clear step-by-step examples, appropriate callouts for pre-1.0 stability and TTL safety, and a matching Excalidraw architecture diagram.

Confidence Score: 4/5

Safe to merge; two minor P2 style findings with no functional impact.

Only P2 style-rule findings: one redundant diagram caption and one inline warning that should be a callout. No logic errors, broken links, or incorrect code examples found.

docs/agents/agent-mastra.mdx — caption and inline-warning callout style issues.

Important Files Changed

Filename Overview
docs/agents/agent-mastra.mdx New guide for building agents with Mastra and Tigris; well-structured with code examples and callouts, two minor style-rule concerns.
sidebars.js Adds "Mastra" sidebar entry pointing to the new agent-mastra doc; no issues.
src/components/diagrams/AgentMastraDiagram.tsx Thin wrapper that renders the Excalidraw diagram from JSON data; matches existing pattern.
src/components/diagrams/data/agent-mastra.json Excalidraw element definitions for the Mastra/Agent Kit architecture diagram; visually complete.

Reviews (1): Last reviewed commit: "add guide" | Re-trigger Greptile

Comment thread docs/agents/agent-mastra.mdx
Comment thread docs/agents/agent-mastra.mdx
@davidmyriel davidmyriel changed the title add guide docs: Add Mastra integration guide Apr 28, 2026
@davidmyriel davidmyriel requested a review from designcode April 28, 2026 14:23
Comment thread docs/agents/agent-mastra.mdx Outdated
designcode
designcode previously approved these changes May 8, 2026
@davidmyriel davidmyriel force-pushed the myriel/mastra-agents branch from 1dc7d40 to ac6128e Compare May 8, 2026 09:21
@davidmyriel davidmyriel merged commit 904bdfc into main May 8, 2026
10 checks passed
@davidmyriel davidmyriel deleted the myriel/mastra-agents branch May 8, 2026 09:23
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.

2 participants