---
title: "#mastra articles | Hashnode"
description: "Explore 18 articles tagged #mastra on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/mastra"
---

Tag

# #mastra

18 posts · 1 followers

[MemorySync](https://hashnode.com/@memorysync) · [4d ago](https://hashnode.com/posts/mastra-observational-memory-errortext-trim-is-not-a-function/6af1f284708c8fd780a14add)

### [Mastra 'invocation.errorText?.trim is not a function': fixed in @mastra/memory 1.39.1](https://memorysync.hashnode.dev/mastra-observational-memory-errortext-trim-is-not-a-function?utm_source=hashnode&utm_medium=feed)

A stored failed tool call with an object-valued errorText stopped Observational Memory on every later turn. Upgrade, and mind the @mastra/core peer bump.

4 min read · [memorysync.hashnode.dev](https://memorysync.hashnode.dev/mastra-observational-memory-errortext-trim-is-not-a-function?utm_source=hashnode&utm_medium=feed)

[MemorySync](https://hashnode.com/@memorysync) · [Oct 29](https://hashnode.com/posts/mastra-memory-requires-a-storage-provider/6ae37299359c79784c32eab0)

### [Mastra 'Memory requires a storage provider to function': fixing it in tests, evals and CI](https://memorysync.hashnode.dev/mastra-memory-requires-a-storage-provider?utm_source=hashnode&utm_medium=feed)

Memory with no storage of its own falls back to the Mastra instance's storage. In tests that construct the agent on its own, there isn't one.

6 min read · [memorysync.hashnode.dev](https://memorysync.hashnode.dev/mastra-memory-requires-a-storage-provider?utm_source=hashnode&utm_medium=feed)

[MemorySync](https://hashnode.com/@memorysync) · [Oct 26](https://hashnode.com/posts/mastra-working-memory-tool-call-messages/6adf80b133231dfd04798270)

### [Mastra working memory with tool calls: fixing 'use: tool-call' and messages missing before tool calls](https://memorysync.hashnode.dev/mastra-working-memory-tool-call-messages?utm_source=hashnode&utm_medium=feed)

Mastra issue #4221 reported that working memory in 'tool-call' mode dropped the text the agent wrote before a tool call. Here's what changed since, why the old config now throws, the current working memory setup, and how to check what was actually saved.

6 min read · [memorysync.hashnode.dev](https://memorysync.hashnode.dev/mastra-working-memory-tool-call-messages?utm_source=hashnode&utm_medium=feed)

[MemorySync](https://hashnode.com/@memorysync) · [Oct 24](https://hashnode.com/posts/mastra-agent-long-term-memory-processors/6adcd7dda32ffd6842d305bd)

### [Add long-term memory to a Mastra agent (input/output processors, per-user recall)](https://memorysync.hashnode.dev/mastra-agent-long-term-memory-processors?utm_source=hashnode&utm_medium=feed)

Mastra's Memory keeps threads and message history. Here's how to add per-user facts that follow a user across threads, using Mastra's native processor pipeline, plus five memory tools.

7 min read · [memorysync.hashnode.dev](https://memorysync.hashnode.dev/mastra-agent-long-term-memory-processors?utm_source=hashnode&utm_medium=feed)

[Benny Ifeanyi Iheagwara](https://hashnode.com/@Bennykillua) · [Oct 14](https://hashnode.com/posts/build-a-web-aware-typescript-agent-with-mastra-and-zenrows/6acff27f00ec1e2f2f6b11aa)

### [Build a web-aware TypeScript agent with Mastra and Zenrows](https://zenrows.hashnode.dev/build-a-web-aware-typescript-agent-with-mastra-and-zenrows?utm_source=hashnode&utm_medium=feed)

Replace Mastra's plain HTTP fetch with a typed Zenrows Fetch tool for protected and JavaScript-rendered pages.

16 min read · [zenrows.hashnode.dev](https://zenrows.hashnode.dev/build-a-web-aware-typescript-agent-with-mastra-and-zenrows?utm_source=hashnode&utm_medium=feed)

[Kartik Mehta](https://hashnode.com/@mehtaaaaaah) · [Aug 24](https://hashnode.com/posts/i-built-an-autonomous-testing-framework-for-ai-agents/6a8c3e13d9c33e404a998de0)

### [I Built an Autonomous Testing Framework for AI Agents.](https://writer.mrmehta.in/i-built-an-autonomous-testing-framework-for-ai-agents?utm_source=hashnode&utm_medium=feed)

An autonomous, framework-agnostic testing harness where AI agents write, run, and remember the tests. (14)

12 min read · [writer.mrmehta.in](https://writer.mrmehta.in/i-built-an-autonomous-testing-framework-for-ai-agents?utm_source=hashnode&utm_medium=feed)

[Bibek Kakati](https://hashnode.com/@bibekkakati) · [Aug 17](https://hashnode.com/posts/building-a-multi-agent-ai-pipeline-with-mastra-and-typescript/6a89fcd250bdc2ac2a9a6e9c)

### [Building a Multi-Agent AI Pipeline with Mastra and TypeScript](https://bibekkakati.hashnode.dev/building-a-multi-agent-ai-pipeline-with-mastra-and-typescript?utm_source=hashnode&utm_medium=feed)

How Clause AI uses a multi-agent architecture with Mastra to parse, summarize, assess risk, and power RAG-based Q&A over rental agreements.

11 min read · [bibekkakati.hashnode.dev](https://bibekkakati.hashnode.dev/building-a-multi-agent-ai-pipeline-with-mastra-and-typescript?utm_source=hashnode&utm_medium=feed)

[Sunkanmi Fafowora](https://hashnode.com/@SunkanmiFafowora) · [Jul 13](https://hashnode.com/posts/your-browser-agent-needs-a-replay-button/6a55685b2fd2e7516d74706d)

### [Your Browser Agent Needs a Replay Button](https://sunkanmi.hashnode.dev/your-browser-agent-needs-a-replay-button?utm_source=hashnode&utm_medium=feed)

We will explore how browser agents are powerful but can be hard to trust, and what Mastra has created to help solve this issue.

7 min read · [sunkanmi.hashnode.dev](https://sunkanmi.hashnode.dev/your-browser-agent-needs-a-replay-button?utm_source=hashnode&utm_medium=feed)

[Shola Jegede](https://hashnode.com/@sholajegede) · [Jun 13](https://hashnode.com/posts/mastra-vs-langchain-building-an-ai-agent-pipeline-and-analyzing-the-data/6a2d04106a8db5c6ef6facf4)

### [Mastra vs LangChain: Building an AI Agent Pipeline and Analyzing the Data](https://freecodecamp.org/news/mastra-vs-langchain-building-an-ai-agent-pipeline-and-analyzing-the-data?utm_source=hashnode&utm_medium=feed)

I built the same AI agent pipeline in Mastra and LangChain, measured every token and step. Here is what the data actually looks like.

30 min read · [freecodecamp.org](https://freecodecamp.org/news/mastra-vs-langchain-building-an-ai-agent-pipeline-and-analyzing-the-data?utm_source=hashnode&utm_medium=feed)

[Shola Jegede](https://hashnode.com/@sholajegede) · [Jun 10](https://hashnode.com/posts/how-to-build-a-secure-multi-tenant-ai-agent-system-with-kinde-mastra-and-convex/6a28be6604070fd0e0b1d5d7)

### [How to Build a Secure Multi-Tenant AI Agent System with Kinde, Mastra, and Convex](https://sholajegede.hashnode.dev/how-to-build-a-secure-multi-tenant-ai-agent-system-with-kinde-mastra-and-convex?utm_source=hashnode&utm_medium=feed)

Build AI agents that keep every organization's data isolated, with the tenant identifier enforced at every layer from auth to database.

24 min read · [sholajegede.hashnode.dev](https://sholajegede.hashnode.dev/how-to-build-a-secure-multi-tenant-ai-agent-system-with-kinde-mastra-and-convex?utm_source=hashnode&utm_medium=feed)
