0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00
mastra/workspaces/mesa
History 2026-10-28 13:15:52 +00:00
..
src fix(workspace): return images and PDFs from sandbox filesystems as media in read_file (#28462) 2026-10-26 13:15:36 -05:00
CHANGELOG.md chore: version - exit prerelease mode 2026-10-28 13:15:52 +00:00
lint-staged.config.js refactor(lint): replace ESLint with type-aware oxlint (#27476) 2026-10-18 10:38:35 -07:00
package.json chore: version - exit prerelease mode 2026-10-28 13:15:52 +00:00
README.md feat(mesa): upgrade to @mesadev/sdk 0.49.1 (#25738) 2026-10-01 13:21:06 -07:00
tsconfig.build.json fix(mesa): publish type declarations for @mastra/mesa (#26610) 2026-10-10 11:38:25 -07:00
tsconfig.json chore: migrate package builds to tsdown (#19829) 2026-07-28 12:32:21 +02:00
tsdown.config.ts chore: migrate package builds to tsdown (#19829) 2026-07-28 12:32:21 +02:00
vitest.config.ts fix(mesa): address CodeRabbit review suggestions from #18740 (#18744) 2026-07-01 21:34:46 +02:00

@mastra/mesa

Store versioned Mastra workspace files in Mesa repositories with standard file operations, commits, branches, diffs, history, and repository status.

Installation

npm install @mastra/mesa

Usage

import { Agent } from '@mastra/core/agent';
import { Workspace } from '@mastra/core/workspace';
import { MesaFilesystem, repo } from '@mastra/mesa';

const workspace = new Workspace({
  filesystem: new MesaFilesystem({
    privateKey: process.env.MESA_PRIVATE_KEY,
    authors: [{ name: 'My Agent', email: 'agent@example.com' }],
    layout: {
      '/docs': repo('docs', { mode: 'rw', at: { bookmark: 'main' } }),
    },
  }),
});

const agent = new Agent({
  name: 'my-agent',
  model: 'anthropic/claude-opus-4-7',
  workspace,
});

Documentation

Changelog

See the package changelog for version history and release notes.

Support

We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.