@mastra/teams 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +40 -0
  2. package/package.json +68 -0
package/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # @mastra/teams
2
+
3
+ `@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.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @mastra/teams
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ 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.
14
+
15
+ ```typescript
16
+ import { Mastra } from '@mastra/core/mastra';
17
+ import { TeamsProvider } from '@mastra/teams';
18
+
19
+ const teams = new TeamsProvider({
20
+ appId: process.env.TEAMS_APP_ID,
21
+ appPassword: process.env.TEAMS_APP_PASSWORD,
22
+ baseUrl: 'https://your-app.example.com',
23
+ });
24
+
25
+ export const mastra = new Mastra({
26
+ channels: { teams },
27
+ });
28
+ ```
29
+
30
+ ## Documentation
31
+
32
+ - [Reference: TeamsProvider](https://mastra.ai/reference/channels/teams-provider)
33
+
34
+ ## Changelog
35
+
36
+ See the [package changelog](https://github.com/mastra-ai/mastra/blob/main/channels/teams/CHANGELOG.md) for version history and release notes.
37
+
38
+ ## Support
39
+
40
+ We have an [open community Discord](https://discord.gg/mastra-ai). Come and say hello and let us know if you have any questions or need any help getting things running.
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@mastra/teams",
3
+ "version": "0.0.0",
4
+ "description": "Microsoft Teams integration for Mastra agents — a ChannelProvider over @chat-adapter/teams with per-agent bot provisioning (Entra + Teams Developer Portal), webhooks, and streaming replies",
5
+ "license": "Apache-2.0",
6
+ "type": "module",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "exports": {
13
+ ".": {
14
+ "import": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.js"
17
+ },
18
+ "require": {
19
+ "types": "./dist/index.d.cts",
20
+ "default": "./dist/index.cjs"
21
+ }
22
+ }
23
+ },
24
+ "scripts": {
25
+ "build": "tsdown && node scripts/write-cts-shim.mjs",
26
+ "dev": "tsdown --watch",
27
+ "typecheck": "tsc --noEmit",
28
+ "test": "vitest run",
29
+ "test:watch": "vitest"
30
+ },
31
+ "dependencies": {
32
+ "@chat-adapter/teams": "~4.40.0"
33
+ },
34
+ "devDependencies": {
35
+ "@mastra/core": "workspace:*",
36
+ "@types/node": "^22.20.1",
37
+ "tsdown": "0.22.9",
38
+ "typescript": "catalog:",
39
+ "undici": "^6.28.1",
40
+ "vitest": "^4.1.11"
41
+ },
42
+ "peerDependencies": {
43
+ "@mastra/core": ">=1.22.0 <2.0.0"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
47
+ },
48
+ "keywords": [
49
+ "mastra",
50
+ "teams",
51
+ "microsoft-teams",
52
+ "chatbot",
53
+ "ai",
54
+ "agent"
55
+ ],
56
+ "repository": {
57
+ "type": "git",
58
+ "url": "git+https://github.com/mastra-ai/mastra.git",
59
+ "directory": "channels/teams"
60
+ },
61
+ "homepage": "https://mastra.ai",
62
+ "bugs": {
63
+ "url": "https://github.com/mastra-ai/mastra/issues"
64
+ },
65
+ "engines": {
66
+ "node": ">=22.13.0"
67
+ }
68
+ }