mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
|
History
|
||
|---|---|---|
| .. | ||
| scripts | ||
| src | ||
| CHANGELOG.md | ||
| lint-staged.config.js | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| tsdown.config.ts | ||
| vitest.config.ts | ||
@mastra/teams
@mastra/teams connects Mastra agents to Microsoft Teams through the Bot Framework. It manages bot installations, JWT-verified activity webhooks, per-agent bot provisioning via Microsoft Graph and the Teams Developer Portal, adaptive cards, and streaming replies over Mastra's channel lifecycle.
Installation
npm install @mastra/teams
Usage
Set TEAMS_APP_ID and TEAMS_APP_PASSWORD to the credentials of an existing Azure Bot registration whose messaging endpoint points at your Mastra server.
import { Mastra } from '@mastra/core/mastra';
import { TeamsProvider } from '@mastra/teams';
const teams = new TeamsProvider({
appId: process.env.TEAMS_APP_ID,
appPassword: process.env.TEAMS_APP_PASSWORD,
baseUrl: 'https://your-app.example.com',
});
export const mastra = new Mastra({
channels: { teams },
});
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.