teams-api 0.2.7 → 0.3.1

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.
package/README.md CHANGED
@@ -4,9 +4,9 @@ AI-native Microsoft Teams integration — read conversations, send messages, and
4
4
 
5
5
  Designed for autonomous AI agents that need to interact with Teams: read messages, reply to people, monitor conversations, and participate in team workflows.
6
6
 
7
- [<img src="https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white" alt="Install in VS Code">](https://insiders.vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522teams%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522-y%2522%252C%2522teams-api%2540latest%2522%255D%252C%2522env%2522%253A%257B%2522TEAMS_LOGIN%2522%253A%2522true%2522%257D%257D)
8
- [<img src="https://img.shields.io/badge/VS_Code_Insiders-Install_Server-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white" alt="Install in VS Code Insiders">](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522teams%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522-y%2522%252C%2522teams-api%2540latest%2522%255D%252C%2522env%2522%253A%257B%2522TEAMS_LOGIN%2522%253A%2522true%2522%257D%257D)
9
- [![Install in Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/install-mcp?name=teams&config=%7B%22name%22%3A%22teams%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22teams-api%40latest%22%5D%2C%22env%22%3A%7B%22TEAMS_LOGIN%22%3A%22true%22%7D%7D)
7
+ [<img src="https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white" alt="Install in VS Code">](https://insiders.vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522teams%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522-y%2522%252C%2522-p%2522%252C%2522teams-api%2540latest%2522%252C%2522teams-api-mcp%2522%255D%252C%2522env%2522%253A%257B%2522TEAMS_LOGIN%2522%253A%2522true%2522%257D%257D)
8
+ [<img src="https://img.shields.io/badge/VS_Code_Insiders-Install_Server-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white" alt="Install in VS Code Insiders">](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522teams%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522-y%2522%252C%2522-p%2522%252C%2522teams-api%2540latest%2522%252C%2522teams-api-mcp%2522%255D%252C%2522env%2522%253A%257B%2522TEAMS_LOGIN%2522%253A%2522true%2522%257D%257D)
9
+ [![Install in Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/install-mcp?name=teams&config=%7B%22name%22%3A%22teams%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22-p%22%2C%22teams-api%40latest%22%2C%22teams-api-mcp%22%5D%2C%22env%22%3A%7B%22TEAMS_LOGIN%22%3A%22true%22%7D%7D)
10
10
  [![npm version](https://img.shields.io/npm/v/teams-api?style=flat-square)](https://www.npmjs.com/package/teams-api)
11
11
  [![MCP Registry](https://img.shields.io/badge/MCP_Registry-teams--api-green?style=flat-square)](https://registry.modelcontextprotocol.io)
12
12
 
@@ -36,10 +36,10 @@ Click the badge at the top of this README, or press `Cmd+Shift+X` / `Ctrl+Shift+
36
36
 
37
37
  ```bash
38
38
  # VS Code
39
- code --add-mcp '{"name":"teams","command":"npx","args":["-y","teams-api@latest"],"env":{"TEAMS_LOGIN":"true"}}'
39
+ code --add-mcp '{"name":"teams","command":"npx","args":["-y","-p","teams-api@latest","teams-api-mcp"],"env":{"TEAMS_LOGIN":"true"}}'
40
40
 
41
41
  # VS Code Insiders
42
- code-insiders --add-mcp '{"name":"teams","command":"npx","args":["-y","teams-api@latest"],"env":{"TEAMS_LOGIN":"true"}}'
42
+ code-insiders --add-mcp '{"name":"teams","command":"npx","args":["-y","-p","teams-api@latest","teams-api-mcp"],"env":{"TEAMS_LOGIN":"true"}}'
43
43
  ```
44
44
 
45
45
  **Option 3 — Manual config:**
@@ -51,10 +51,9 @@ Add to your VS Code MCP config (`.vscode/mcp.json` or User Settings):
51
51
  "mcpServers": {
52
52
  "teams": {
53
53
  "command": "npx",
54
- "args": ["-y", "teams-api@latest"],
54
+ "args": ["-y", "-p", "teams-api@latest", "teams-api-mcp"],
55
55
  "env": {
56
- "TEAMS_LOGIN": "true",
57
- "TEAMS_EMAIL": "you@example.com"
56
+ "TEAMS_LOGIN": "true"
58
57
  }
59
58
  }
60
59
  }
@@ -73,10 +72,9 @@ Click the **Install in Cursor** badge at the top, or add to `~/.cursor/mcp.json`
73
72
  "mcpServers": {
74
73
  "teams": {
75
74
  "command": "npx",
76
- "args": ["-y", "teams-api@latest"],
75
+ "args": ["-y", "-p", "teams-api@latest", "teams-api-mcp"],
77
76
  "env": {
78
- "TEAMS_LOGIN": "true",
79
- "TEAMS_EMAIL": "you@example.com"
77
+ "TEAMS_LOGIN": "true"
80
78
  }
81
79
  }
82
80
  }
@@ -95,10 +93,9 @@ Add to `claude_desktop_config.json` ([how to find it](https://modelcontextprotoc
95
93
  "mcpServers": {
96
94
  "teams": {
97
95
  "command": "npx",
98
- "args": ["-y", "teams-api@latest"],
96
+ "args": ["-y", "-p", "teams-api@latest", "teams-api-mcp"],
99
97
  "env": {
100
- "TEAMS_LOGIN": "true",
101
- "TEAMS_EMAIL": "you@example.com"
98
+ "TEAMS_LOGIN": "true"
102
99
  }
103
100
  }
104
101
  }
@@ -111,10 +108,10 @@ Add to `claude_desktop_config.json` ([how to find it](https://modelcontextprotoc
111
108
  <summary><strong>Claude Code</strong></summary>
112
109
 
113
110
  ```bash
114
- claude mcp add teams -- npx -y teams-api@latest
111
+ claude mcp add teams -- npx -y -p teams-api@latest teams-api-mcp
115
112
  ```
116
113
 
117
- Then set the environment variables `TEAMS_LOGIN=true` and `TEAMS_EMAIL=you@example.com` in your shell before starting Claude Code.
114
+ Then set the environment variable `TEAMS_LOGIN=true` in your shell before starting Claude Code. The server will ask for your email interactively on first use.
118
115
 
119
116
  </details>
120
117
 
@@ -128,10 +125,9 @@ Add to `~/.codeium/windsurf/mcp_config.json`:
128
125
  "mcpServers": {
129
126
  "teams": {
130
127
  "command": "npx",
131
- "args": ["-y", "teams-api@latest"],
128
+ "args": ["-y", "-p", "teams-api@latest", "teams-api-mcp"],
132
129
  "env": {
133
- "TEAMS_LOGIN": "true",
134
- "TEAMS_EMAIL": "you@example.com"
130
+ "TEAMS_LOGIN": "true"
135
131
  }
136
132
  }
137
133
  }
@@ -337,7 +333,7 @@ Use this only if you already have tokens from another flow or need to avoid brow
337
333
  "mcpServers": {
338
334
  "teams": {
339
335
  "command": "npx",
340
- "args": ["-y", "teams-api@latest"],
336
+ "args": ["-y", "-p", "teams-api@latest", "teams-api-mcp"],
341
337
  "env": {
342
338
  "TEAMS_TOKEN": "<paste-skype-token-here>",
343
339
  "TEAMS_BEARER_TOKEN": "<optional-api-spaces-skype-bearer-token>",
@@ -354,16 +350,16 @@ Use this only if you already have tokens from another flow or need to avoid brow
354
350
 
355
351
  ### Environment variables
356
352
 
357
- | Variable | Description |
358
- | ----------------------- | -------------------------------------------------------------------- |
359
- | `TEAMS_TOKEN` | Pre-existing skype token |
360
- | `TEAMS_BEARER_TOKEN` | Optional middle-tier bearer token |
361
- | `TEAMS_SUBSTRATE_TOKEN` | Optional Substrate bearer token |
362
- | `TEAMS_REGION` | API region override. Required with `TEAMS_TOKEN`; optional otherwise |
363
- | `TEAMS_EMAIL` | Corporate email for auto-login or interactive login |
364
- | `TEAMS_AUTO` | Set to `true` to enable auto-login (macOS + FIDO2) |
365
- | `TEAMS_LOGIN` | Set to `true` to enable interactive browser login |
366
- | `TEAMS_DEBUG_PORT` | Chrome debug port (default: 9222) |
353
+ | Variable | Description |
354
+ | ----------------------- | --------------------------------------------------------------------- |
355
+ | `TEAMS_TOKEN` | Pre-existing skype token |
356
+ | `TEAMS_BEARER_TOKEN` | Optional middle-tier bearer token |
357
+ | `TEAMS_SUBSTRATE_TOKEN` | Optional Substrate bearer token |
358
+ | `TEAMS_REGION` | API region override. Required with `TEAMS_TOKEN`; optional otherwise |
359
+ | `TEAMS_EMAIL` | Corporate email. Optional the server prompts the AI agent if needed |
360
+ | `TEAMS_AUTO` | Set to `true` to enable auto-login (macOS + FIDO2) |
361
+ | `TEAMS_LOGIN` | Set to `true` to enable interactive browser login |
362
+ | `TEAMS_DEBUG_PORT` | Chrome debug port (default: 9222) |
367
363
 
368
364
  ### Available tools
369
365
 
@@ -12,7 +12,7 @@
12
12
  * TEAMS_BEARER_TOKEN — Optional middle-tier bearer token for profile resolution
13
13
  * TEAMS_SUBSTRATE_TOKEN — Optional Substrate bearer token for people/chat search
14
14
  * TEAMS_REGION — API region (required with TEAMS_TOKEN, optional otherwise)
15
- * TEAMS_EMAIL — Corporate email (for auto-login or interactive login)
15
+ * TEAMS_EMAIL — Corporate email (optional; the server prompts the AI agent if needed)
16
16
  * TEAMS_AUTO — Set to "true" to use auto-login (macOS + FIDO2)
17
17
  * TEAMS_LOGIN — Set to "true" to use interactive browser login (all platforms)
18
18
  * TEAMS_DEBUG_PORT — Chrome debug port (default: 9222)
@@ -24,8 +24,7 @@
24
24
  * "command": "npx",
25
25
  * "args": ["-y", "teams-api"],
26
26
  * "env": {
27
- * "TEAMS_AUTO": "true",
28
- * "TEAMS_EMAIL": "user@company.com"
27
+ * "TEAMS_LOGIN": "true"
29
28
  * }
30
29
  * }
31
30
  * }
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../src/mcp-server.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG"}
1
+ {"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../src/mcp-server.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG"}
@@ -13,7 +13,7 @@
13
13
  * TEAMS_BEARER_TOKEN — Optional middle-tier bearer token for profile resolution
14
14
  * TEAMS_SUBSTRATE_TOKEN — Optional Substrate bearer token for people/chat search
15
15
  * TEAMS_REGION — API region (required with TEAMS_TOKEN, optional otherwise)
16
- * TEAMS_EMAIL — Corporate email (for auto-login or interactive login)
16
+ * TEAMS_EMAIL — Corporate email (optional; the server prompts the AI agent if needed)
17
17
  * TEAMS_AUTO — Set to "true" to use auto-login (macOS + FIDO2)
18
18
  * TEAMS_LOGIN — Set to "true" to use interactive browser login (all platforms)
19
19
  * TEAMS_DEBUG_PORT — Chrome debug port (default: 9222)
@@ -25,8 +25,7 @@
25
25
  * "command": "npx",
26
26
  * "args": ["-y", "teams-api"],
27
27
  * "env": {
28
- * "TEAMS_AUTO": "true",
29
- * "TEAMS_EMAIL": "user@company.com"
28
+ * "TEAMS_LOGIN": "true"
30
29
  * }
31
30
  * }
32
31
  * }
@@ -39,7 +38,14 @@ const zod_1 = require("zod");
39
38
  const teams_client_js_1 = require("./teams-client.js");
40
39
  const actions_js_1 = require("./actions.js");
41
40
  let clientInstance = null;
42
- async function getClient() {
41
+ class NeedsEmailError extends Error {
42
+ constructor() {
43
+ super("I need your corporate email address to log into Teams. " +
44
+ "Please provide your email and call this tool again.");
45
+ this.name = "NeedsEmailError";
46
+ }
47
+ }
48
+ async function getClient(toolEmail) {
43
49
  if (clientInstance) {
44
50
  return clientInstance;
45
51
  }
@@ -47,7 +53,7 @@ async function getClient() {
47
53
  const envBearerToken = process.env.TEAMS_BEARER_TOKEN;
48
54
  const envSubstrateToken = process.env.TEAMS_SUBSTRATE_TOKEN;
49
55
  const envRegion = process.env.TEAMS_REGION;
50
- const envEmail = process.env.TEAMS_EMAIL;
56
+ const email = process.env.TEAMS_EMAIL || toolEmail;
51
57
  const envAuto = process.env.TEAMS_AUTO === "true";
52
58
  const envLogin = process.env.TEAMS_LOGIN === "true";
53
59
  const envDebugPort = process.env.TEAMS_DEBUG_PORT
@@ -59,9 +65,12 @@ async function getClient() {
59
65
  }
60
66
  clientInstance = teams_client_js_1.TeamsClient.fromToken(envToken, envRegion, envBearerToken, envSubstrateToken);
61
67
  }
62
- else if (envAuto && envEmail) {
68
+ else if (envAuto) {
69
+ if (!email) {
70
+ throw new NeedsEmailError();
71
+ }
63
72
  clientInstance = await teams_client_js_1.TeamsClient.create({
64
- email: envEmail,
73
+ email,
65
74
  region: envRegion,
66
75
  headless: true,
67
76
  verbose: false,
@@ -70,7 +79,7 @@ async function getClient() {
70
79
  else if (envLogin) {
71
80
  clientInstance = await teams_client_js_1.TeamsClient.fromInteractiveLogin({
72
81
  region: envRegion,
73
- email: envEmail,
82
+ email,
74
83
  verbose: false,
75
84
  });
76
85
  }
@@ -116,26 +125,44 @@ for (const action of actions_js_1.actions) {
116
125
  .enum(["json", "text", "md", "toon"])
117
126
  .describe("Output format (default: toon)")
118
127
  .optional();
128
+ inputSchema["email"] = zod_1.z
129
+ .string()
130
+ .describe("Corporate email address for Teams login. " +
131
+ "Only needed if the server asks for it.")
132
+ .optional();
119
133
  server.registerTool(toolName, {
120
134
  title: action.title,
121
135
  description: action.description,
122
136
  inputSchema,
123
137
  }, async (parameters) => {
124
- const client = await getClient();
125
- const outputFormat = parameters.format ?? "toon";
126
- const result = await action.execute(client, parameters);
127
- const structuredContent = result !== null && typeof result === "object" && !Array.isArray(result)
128
- ? result
129
- : { data: result };
130
- return {
131
- content: [
132
- {
133
- type: "text",
134
- text: (0, actions_js_1.formatOutput)(action, result, outputFormat),
135
- },
136
- ],
137
- structuredContent,
138
- };
138
+ try {
139
+ const client = await getClient(parameters.email);
140
+ const outputFormat = parameters.format ?? "toon";
141
+ const result = await action.execute(client, parameters);
142
+ const structuredContent = result !== null &&
143
+ typeof result === "object" &&
144
+ !Array.isArray(result)
145
+ ? result
146
+ : { data: result };
147
+ return {
148
+ content: [
149
+ {
150
+ type: "text",
151
+ text: (0, actions_js_1.formatOutput)(action, result, outputFormat),
152
+ },
153
+ ],
154
+ structuredContent,
155
+ };
156
+ }
157
+ catch (error) {
158
+ if (error instanceof NeedsEmailError) {
159
+ return {
160
+ content: [{ type: "text", text: error.message }],
161
+ isError: true,
162
+ };
163
+ }
164
+ throw error;
165
+ }
139
166
  });
140
167
  }
141
168
  async function main() {
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-server.js","sourceRoot":"","sources":["../src/mcp-server.ts"],"names":[],"mappings":";;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;;AAEH,oEAAoE;AACpE,wEAAiF;AACjF,6BAAwB;AACxB,uDAAgD;AAChD,6CAAqD;AAGrD,IAAI,cAAc,GAAuB,IAAI,CAAC;AAE9C,KAAK,UAAU,SAAS;IACtB,IAAI,cAAc,EAAE,CAAC;QACnB,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC;IACzC,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC;IACtD,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC;IAC5D,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC;IAC3C,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC;IACzC,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,KAAK,MAAM,CAAC;IAClD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,KAAK,MAAM,CAAC;IACpD,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB;QAC/C,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;QACtC,CAAC,CAAC,IA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I,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC;oBACzD,OAAO,EAAE,IAAI;iBACd,CAAC;YACJ,CAAC;YACD,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,MAAM,SAAS,GAAG,IAAI,+BAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;AAClC,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAY,EAAE,EAAE;IAC5B,OAAO,CAAC,KAAK,CAAC,mBAAmB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAClD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teams-api",
3
- "version": "0.2.7",
3
+ "version": "0.3.1",
4
4
  "description": "AI-native Microsoft Teams integration — read conversations, send messages, manage members via the Teams Chat Service REST API",
5
5
  "type": "commonjs",
6
6
  "repository": {