teams-api-mcp 0.1.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token-store.js","sourceRoot":"","sources":["../src/token-store.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;AAgBH,8BAoBC;AAED,8BAiCC;AAED,gCAYC;AAnFD,2DAAkD;AAGlD,MAAM,gBAAgB,GAAG,WAAW,CAAC;AACrC,MAAM,cAAc,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC,CAAC,gDAAgD;AAU7F,SAAgB,SAAS,CAAC,KAAa,EAAE,KAAiB;IACxD,MAAM,WAAW,GAAgB;QAC/B,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,cAAc,EAAE,KAAK,CAAC,cAAc;QACpC,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE;KACvB,CAAC;IACF,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAE5E,IAAA,iCAAY,EAAC,UAAU,EAAE;QACvB,sBAAsB;QACtB,IAAI;QACJ,KAAK;QACL,IAAI;QACJ,gBAAgB;QAChB,IAAI;QACJ,OAAO;QACP,IAAI;KACL,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,SAAS,CAAC,KAAa;IACrC,IAAI,OAAe,CAAC;IACpB,IAAI,CAAC;QACH,OAAO,GAAG,IAAA,iCAAY,EACpB,UAAU,EACV,CAAC,uBAAuB,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,CAAC,EACpE,EAAE,QAAQ,EAAE,OAAO,EAAE,CACtB,CAAC,IAAI,EAAE,CAAC;IACX,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,WAAwB,CAAC;IAC7B,IAAI,CAAC;QACH,WAAW,GAAG,IAAI,CAAC,KAAK,CACtB,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAClC,CAAC;IACnB,CAAC;IAAC,MAAM,CAAC;QACP,UAAU,CAAC,KAAK,CAAC,CAAC;QAClB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,WAAW,CAAC,UAAU,GAAG,cAAc,EAAE,CAAC;QACzD,UAAU,CAAC,KAAK,CAAC,CAAC;QAClB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO;QACL,UAAU,EAAE,WAAW,CAAC,UAAU;QAClC,MAAM,EAAE,WAAW,CAAC,MAAM;QAC1B,WAAW,EAAE,WAAW,CAAC,WAAW;QACpC,cAAc,EAAE,WAAW,CAAC,cAAc;KAC3C,CAAC;AACJ,CAAC;AAED,SAAgB,UAAU,CAAC,KAAa;IACtC,IAAI,CAAC;QACH,IAAA,iCAAY,EAAC,UAAU,EAAE;YACvB,yBAAyB;YACzB,IAAI;YACJ,KAAK;YACL,IAAI;YACJ,gBAAgB;SACjB,CAAC,CAAC;IACL,CAAC;IAAC,MAAM,CAAC;QACP,+CAA+C;IACjD,CAAC;AACH,CAAC"}
@@ -0,0 +1,245 @@
1
+ /**
2
+ * Public type definitions for the Teams API client.
3
+ *
4
+ * All types used by the public API surface are defined here.
5
+ */
6
+ /** Authentication token for Teams Chat Service REST API. */
7
+ export interface TeamsToken {
8
+ /** The skype token used in the Authentication header. */
9
+ skypeToken: string;
10
+ /** API region (e.g. "apac", "emea", "amer"). */
11
+ region: string;
12
+ /**
13
+ * OAuth2 Bearer token for the Teams middle-tier API (api.spaces.skype.com audience).
14
+ * Used for profile resolution. Optional — only available when captured during auth.
15
+ */
16
+ bearerToken?: string;
17
+ /**
18
+ * OAuth2 Bearer token for the Substrate search API (substrate.office.com audience).
19
+ * Used for people/chat/channel search. Optional — only available when captured during auth.
20
+ */
21
+ substrateToken?: string;
22
+ }
23
+ /** Options for automatic token acquisition via FIDO2 passkey. */
24
+ export interface AutoLoginOptions {
25
+ /** Corporate email for Microsoft Entra ID login. */
26
+ email: string;
27
+ /** Path to Chrome executable (defaults to system Chrome on macOS). */
28
+ chromePath?: string;
29
+ /** Directory for temporary browser profile (cleaned automatically). */
30
+ profileDirectory?: string;
31
+ /** Run browser in headless mode (default: true). */
32
+ headless?: boolean;
33
+ /** Emit progress messages to console (default: false). */
34
+ verbose?: boolean;
35
+ }
36
+ /** Options for interactive browser login (all platforms). */
37
+ export interface InteractiveLoginOptions {
38
+ /** API region (default: "apac"). */
39
+ region?: string;
40
+ /** Corporate email to pre-fill on the login page (optional). */
41
+ email?: string;
42
+ /** Emit progress messages to console (default: false). */
43
+ verbose?: boolean;
44
+ }
45
+ /** Options for manual token capture from a running Chrome debug session. */
46
+ export interface ManualTokenOptions {
47
+ /** Chrome DevTools Protocol debug port (default: 9222). */
48
+ debugPort?: number;
49
+ }
50
+ /** A Teams conversation (chat, group chat, meeting, or channel). */
51
+ export interface Conversation {
52
+ /** Unique conversation thread ID. */
53
+ id: string;
54
+ /** Display name or topic of the conversation. */
55
+ topic: string;
56
+ /** Type of conversation thread (e.g. "chat", "topic", "meeting"). */
57
+ threadType: string;
58
+ /** Server version number for the conversation. */
59
+ version: number;
60
+ /** ISO timestamp of the last received message, or null. */
61
+ lastMessageTime: string | null;
62
+ /** Number of members, or null if unknown. */
63
+ memberCount: number | null;
64
+ }
65
+ /**
66
+ * A single message in a conversation.
67
+ *
68
+ * Includes text/rich-text messages, system events, and control messages.
69
+ * Use the `messageType` field to filter to the desired category.
70
+ */
71
+ export interface Message {
72
+ /** Server-assigned message ID. */
73
+ id: string;
74
+ /**
75
+ * Message type identifier.
76
+ * Common values: "RichText/Html", "Text", "ThreadActivity/AddMember",
77
+ * "ThreadActivity/MemberJoined", "Event/Call", "MessageDelete".
78
+ */
79
+ messageType: string;
80
+ /** Full MRI (Microsoft Resource Identifier) of the sender. */
81
+ senderMri: string;
82
+ /** Display name of the sender. */
83
+ senderDisplayName: string;
84
+ /** Message content (HTML for RichText/Html, plain text for Text). */
85
+ content: string;
86
+ /** ISO timestamp when the message originally arrived at the server. */
87
+ originalArrivalTime: string;
88
+ /** ISO timestamp when the message was composed. */
89
+ composeTime: string;
90
+ /** ISO timestamp of the last edit, or null if never edited. */
91
+ editTime: string | null;
92
+ /** Message subject line, or null. */
93
+ subject: string | null;
94
+ /** Whether the message has been deleted. */
95
+ isDeleted: boolean;
96
+ /** Reactions on this message. */
97
+ reactions: Reaction[];
98
+ /** Users mentioned in this message. */
99
+ mentions: Mention[];
100
+ /** ID of the quoted/replied-to message, or null. */
101
+ quotedMessageId: string | null;
102
+ }
103
+ /** A reaction (emotion) on a message. */
104
+ export interface Reaction {
105
+ /** Reaction key (e.g. "like", "heart", "laugh"). */
106
+ key: string;
107
+ /** Users who reacted with this emotion. */
108
+ users: Array<{
109
+ mri: string;
110
+ time: number;
111
+ }>;
112
+ }
113
+ /** A user mention in a message. */
114
+ export interface Mention {
115
+ /** MRI or tag ID of the mentioned user. */
116
+ id: string;
117
+ /** Display name of the mentioned user. */
118
+ displayName: string;
119
+ }
120
+ /** A member of a conversation. */
121
+ export interface Member {
122
+ /** Full MRI of the member. */
123
+ id: string;
124
+ /** Display name of the member. */
125
+ displayName: string;
126
+ /** Role in the conversation (e.g. "Admin", "User"). */
127
+ role: string;
128
+ /** Whether this member is a person or a bot/app (detected from MRI prefix). */
129
+ memberType: "person" | "bot";
130
+ }
131
+ /** A user profile resolved from the Teams middle-tier API. */
132
+ export interface UserProfile {
133
+ /** Full MRI of the user. */
134
+ mri: string;
135
+ /** Display name. */
136
+ displayName: string;
137
+ /** Email address. */
138
+ email: string;
139
+ /** Job title, or empty string. */
140
+ jobTitle: string;
141
+ /** User type (e.g. "Member", "Guest"). */
142
+ userType: string;
143
+ }
144
+ /** Format for sending messages. */
145
+ export type MessageFormat = "text" | "markdown" | "html";
146
+ /** Result of sending a message. */
147
+ export interface SentMessage {
148
+ /** Server-assigned or client-generated message ID. */
149
+ messageId: string;
150
+ /** Server-reported arrival timestamp (epoch milliseconds). */
151
+ arrivalTime: number;
152
+ }
153
+ /** A page of messages with pagination metadata. */
154
+ export interface MessagesPage {
155
+ /** Messages in this page. */
156
+ messages: Message[];
157
+ /** URL for fetching the previous (older) page, or null if at the beginning. */
158
+ backwardLink: string | null;
159
+ /** Sync state token for incremental updates, or null. */
160
+ syncState: string | null;
161
+ }
162
+ /** Options for fetching messages from a conversation. */
163
+ export interface GetMessagesOptions {
164
+ /** Maximum number of pagination pages to fetch (default: 100). */
165
+ maxPages?: number;
166
+ /** Number of messages per page (default: 200). */
167
+ pageSize?: number;
168
+ /** Callback invoked with the running total after each page is fetched. */
169
+ onProgress?: (totalFetched: number) => void;
170
+ }
171
+ /** Options for listing conversations. */
172
+ export interface ListConversationsOptions {
173
+ /** Maximum number of conversations to return (default: 50). */
174
+ pageSize?: number;
175
+ /** If true, exclude system streams (annotations, threads, notifications, etc). */
176
+ excludeSystemStreams?: boolean;
177
+ }
178
+ /**
179
+ * Result of searching for a 1:1 conversation.
180
+ */
181
+ export interface OneOnOneSearchResult {
182
+ /** The conversation thread ID. */
183
+ conversationId: string;
184
+ /** Display name of the matched member. */
185
+ memberDisplayName: string;
186
+ }
187
+ /** A single entry in a parsed meeting transcript. */
188
+ export interface TranscriptEntry {
189
+ /** Speaker name as identified by Teams. */
190
+ speaker: string;
191
+ /** Start time in the recording (ISO 8601 duration or HH:MM:SS.mmm). */
192
+ startTime: string;
193
+ /** End time in the recording. */
194
+ endTime: string;
195
+ /** Spoken text content. */
196
+ text: string;
197
+ }
198
+ /** Result of fetching a meeting transcript. */
199
+ export interface TranscriptResult {
200
+ /** Meeting title extracted from the recording message. */
201
+ meetingTitle: string;
202
+ /** The raw VTT content. */
203
+ rawVtt: string;
204
+ /** Parsed transcript entries with speaker, timestamps, and text. */
205
+ entries: TranscriptEntry[];
206
+ }
207
+ /** A person found via the Substrate people search API. */
208
+ export interface PersonSearchResult {
209
+ /** Display name. */
210
+ displayName: string;
211
+ /** MRI (e.g. "8:orgid:uuid"). */
212
+ mri: string;
213
+ /** Email address. */
214
+ email: string;
215
+ /** Job title, or empty string. */
216
+ jobTitle: string;
217
+ /** Department, or empty string. */
218
+ department: string;
219
+ /** AAD object ID (without tenant). */
220
+ objectId: string;
221
+ }
222
+ /** A chat found via the Substrate chat search API. */
223
+ export interface ChatSearchResult {
224
+ /** Chat display name or topic. */
225
+ name: string;
226
+ /** Thread ID (conversation ID). */
227
+ threadId: string;
228
+ /** Thread type (e.g. "Chat", "Meeting"). */
229
+ threadType: string;
230
+ /** Members whose names matched the query. */
231
+ matchingMembers: Array<{
232
+ displayName: string;
233
+ mri: string;
234
+ }>;
235
+ /** Other members in the chat. */
236
+ chatMembers: Array<{
237
+ displayName: string;
238
+ mri: string;
239
+ }>;
240
+ /** Total number of members. */
241
+ totalMemberCount: number;
242
+ }
243
+ /** Thread types that represent system streams, not user conversations. */
244
+ export declare const SYSTEM_STREAM_TYPES: readonly ["streamofannotations", "streamofthreads", "streamofnotifications", "streamofmentions", "streamofnotes"];
245
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,4DAA4D;AAC5D,MAAM,WAAW,UAAU;IACzB,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,iEAAiE;AACjE,MAAM,WAAW,gBAAgB;IAC/B,oDA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A2B;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,OAAO,EAAE,eAAe,EAAE,CAAC;CAC5B;AAED,0DAA0D;AAC1D,MAAM,WAAW,kBAAkB;IACjC,oBAAoB;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,sDAAsD;AACtD,MAAM,WAAW,gBAAgB;IAC/B,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,eAAe,EAAE,KAAK,CAAC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7D,iCAAiC;IACjC,WAAW,EAAE,KAAK,CAAC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACzD,+BAA+B;IAC/B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,0EAA0E;AAC1E,eAAO,MAAM,mBAAmB,mHAMtB,CAAC"}
package/dist/types.js ADDED
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ /**
3
+ * Public type definitions for the Teams API client.
4
+ *
5
+ * All types used by the public API surface are defined here.
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.SYSTEM_STREAM_TYPES = void 0;
9
+ /** Thread types that represent system streams, not user conversations. */
10
+ exports.SYSTEM_STREAM_TYPES = [
11
+ "streamofannotations",
12
+ "streamofthreads",
13
+ "streamofnotifications",
14
+ "streamofmentions",
15
+ "streamofnotes",
16
+ ];
17
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AA0PH,0EAA0E;AAC7D,QAAA,mBAAmB,GAAG;IACjC,qBAAqB;IACrB,iBAAiB;IACjB,uBAAuB;IACvB,kBAAkB;IAClB,eAAe;CACP,CAAC"}
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "teams-api-mcp",
3
+ "version": "0.1.0",
4
+ "description": "AI-native Microsoft Teams integration — read conversations, send messages, manage members via the Teams Chat Service REST API",
5
+ "type": "commonjs",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/Maxim-Mazurok/teams-api.git"
9
+ },
10
+ "bugs": {
11
+ "url": "https://github.com/Maxim-Mazurok/teams-api/issues"
12
+ },
13
+ "homepage": "https://github.com/Maxim-Mazurok/teams-api#readme",
14
+ "main": "dist/teams-client.js",
15
+ "types": "dist/teams-client.d.ts",
16
+ "bin": {
17
+ "teams-api": "dist/cli.js",
18
+ "teams-api-mcp": "dist/mcp-server.js"
19
+ },
20
+ "files": [
21
+ "dist",
22
+ "README.md",
23
+ "SKILL.md",
24
+ "LICENSE"
25
+ ],
26
+ "scripts": {
27
+ "build": "tsc --project tsconfig.build.json && node scripts/add-shebangs.js",
28
+ "type-check": "tsc --noEmit",
29
+ "test": "vitest run",
30
+ "test:unit": "vitest run tests/unit",
31
+ "test:integration": "vitest run tests/integration",
32
+ "test:e2e": "vitest run tests/e2e",
33
+ "test:watch": "vitest",
34
+ "lint": "prettier --check .",
35
+ "format": "prettier --write .",
36
+ "mcp": "npx -y tsx src/mcp-server.ts",
37
+ "release": "semantic-release",
38
+ "release:dry-run": "semantic-release --dry-run",
39
+ "prepublishOnly": "npm run build && npm test"
40
+ },
41
+ "keywords": [
42
+ "teams",
43
+ "microsoft-teams",
44
+ "chat",
45
+ "api",
46
+ "mcp",
47
+ "ai"
48
+ ],
49
+ "author": "Maxim Mazurok",
50
+ "license": "MIT",
51
+ "dependencies": {
52
+ "@modelcontextprotocol/sdk": "^1.27.1",
53
+ "commander": "^14.0.3",
54
+ "markdown-it": "^14.1.1",
55
+ "playwright": "^1.58.2",
56
+ "puppeteer-core": "^24.39.1",
57
+ "zod": "^4.3.6"
58
+ },
59
+ "devDependencies": {
60
+ "@semantic-release/changelog": "^6.0.3",
61
+ "@semantic-release/git": "^10.0.1",
62
+ "@types/markdown-it": "^14.1.2",
63
+ "@types/node": "^25.5.0",
64
+ "prettier": "^3.8.1",
65
+ "semantic-release": "^25.0.3",
66
+ "typescript": "^5.9.3",
67
+ "vitest": "^4.1.0"
68
+ }
69
+ }