0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00
mastra/workflows/temporal
dane-ai-mastra[bot] a5859ee2b9
chore: version packages (alpha) (#30430)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
History 2026-11-16 14:09:31 +01:00
..
src fix(temporal): return workflow input in run.start() step results (#29506) 2026-11-04 21:40:54 -08:00
.prettierignore fix(inngest): honor toolCallConcurrency — run parallel tool calls concurrently (#19329) 2026-07-13 16:56:07 +02:00
CHANGELOG.md chore: version packages (alpha) (#30430) 2026-11-16 14:09:31 +01:00
docker-compose.yaml feat(temporal): add workflow adapter package (#15789) 2026-05-04 01:16:35 +02: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 packages (alpha) (#30430) 2026-11-16 14:09:31 +01:00
README.md chore(*): Update/unify/add READMEs (#22858) 2026-09-02 14:36:59 +02:00
tsconfig.build.json feat(temporal): add workflow adapter package (#15789) 2026-05-04 01:16:35 +02: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 feat(core): re-enable the evented workflow engine on the durable agent loop and refactor the agent loop structure (#24569) 2026-09-24 22:27:04 -05:00

@mastra/temporal

Run Mastra workflows on Temporal with a workflow authoring API that stays close to standard Mastra workflows.

Experimental: @mastra/temporal is under active development and is not ready for production use yet.

Installation

npm install @mastra/temporal

Usage

import { NativeConnection, Worker } from '@temporalio/worker';
import { MastraPlugin } from '@mastra/temporal/worker';

const connection = await NativeConnection.connect({
  address: 'localhost:7233',
});

const plugin = new MastraPlugin(import.meta.resolve('./mastra/index.ts'));

const worker = await Worker.create({
  connection,
  namespace: 'default',
  taskQueue: 'mastra',
  plugins: [plugin],
});

await worker.run();

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.