# Mastra Code

> Mastra Code is an officially published AI tool from Mastra AI. Anomity scores its risk at 10 out of 100 (low).

- **Canonical URL:** https://catalog.anomity.ai/agent/mastracode
- **Kind:** AI tool
- **Publisher:** Mastra AI
- **Trust level:** official
- **Risk score:** 10/100 (low)
- **Website:** https://mastra.ai/docs/mastra-code
- **Last updated:** 2026-09-02
- **JSON:** https://catalog.anomity.ai/api/entries/agent/mastracode

## Description

Mastra AI terminal coding agent with per-project and global MCP servers under .mastracode/

## Why it scored 10

The score starts at the catalog's neutral base of 50 and moves only through the signals below. The formula is published at https://catalog.anomity.ai/about — there is no model and no hidden heuristic.

| Signal | Contribution | Severity | Evidence |
| --- | --- | --- | --- |
| Published by the vendor | -40 | trust offset |  |

Clamped result: **10/100**, band **low**.

## Configuration surface

Files this tool reads on the host. Anything written here changes what the agent does next.

- `mastracode-user-mcp` — User-level MCP servers
    - win32: `${USERPROFILE}\.mastracode\mcp.json`
    - darwin: `${HOME}/.mastracode/mcp.json`
    - linux: `${HOME}/.mastracode/mcp.json`
- `mastracode-project-mcp` — Project-level MCP servers (override global)
    - win32: `${PROJECT}\.mastracode\mcp.json`
    - darwin: `${PROJECT}/.mastracode/mcp.json`
    - linux: `${PROJECT}/.mastracode/mcp.json`

## Related AI tools

- [AdaL](https://catalog.anomity.ai/agent/adal) — risk 10 (low)
- [Agent Zero](https://catalog.anomity.ai/agent/agent-zero) — risk 10 (low)
- [Aide](https://catalog.anomity.ai/agent/aide) — risk 10 (low)
- [Aider](https://catalog.anomity.ai/agent/aider) — risk 10 (low)
- [AiderDesk](https://catalog.anomity.ai/agent/aider-desk) — risk 10 (low)
- [Amazon Q Developer](https://catalog.anomity.ai/agent/amazon-q) — risk 10 (low)

---

Source: Anomity Catalog (https://catalog.anomity.ai/). Scoring methodology: https://catalog.anomity.ai/about. Machine-readable index: https://catalog.anomity.ai/llms.txt · https://catalog.anomity.ai/openapi.json
