mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
|
History
|
||
|---|---|---|
| .. | ||
| src | ||
| CHANGELOG.md | ||
| lint-staged.config.js | ||
| package.json | ||
| README.md | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| tsdown.config.ts | ||
| vitest.config.ts | ||
@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.