@chrischall/microsoft-teams-mcp 0.2.2 → 0.2.4
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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +18 -6
- package/dist/bundle.js +812 -163
- package/dist/client.js +2 -2
- package/dist/tools/errors.js +11 -1
- package/dist/version.js +1 -1
- package/mint.yaml +1 -1
- package/package.json +4 -4
- package/server.json +2 -2
- package/skills/teams-fpx/SKILL.md +9 -5
package/dist/client.js
CHANGED
|
@@ -195,10 +195,10 @@ export class TeamsClient {
|
|
|
195
195
|
port: getWsPort(),
|
|
196
196
|
// stderr only — stdout is the JSON-RPC channel. Without this the
|
|
197
197
|
// first-ever pairing (or a scope widening) leaves a tool call
|
|
198
|
-
// hanging with no way for the user to know a
|
|
198
|
+
// hanging with no way for the user to know a ContextMint Bridge approval
|
|
199
199
|
// is what it's waiting on.
|
|
200
200
|
onPairCode: (code) => {
|
|
201
|
-
console.error(`[microsoft-teams-mcp] fetchproxy pair code: ${code} — approve in the
|
|
201
|
+
console.error(`[microsoft-teams-mcp] fetchproxy pair code: ${code} — approve in the ContextMint Bridge extension popup`);
|
|
202
202
|
},
|
|
203
203
|
});
|
|
204
204
|
}
|
package/dist/tools/errors.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { McpToolError } from '@chrischall/mcp-utils';
|
|
2
|
+
import { FetchproxyCapabilityUnavailableError } from '@fetchproxy/server';
|
|
2
3
|
/** Classify a bridge-read failure into an actionable McpToolError. Shared by every tool. */
|
|
3
4
|
export function wrapBridgeError(err, action) {
|
|
5
|
+
// A browser limitation (e.g. Safari lacks an API the verb needs) — not a
|
|
6
|
+
// pairing problem and not a bug in this MCP, so it gets its own message.
|
|
7
|
+
if (err instanceof FetchproxyCapabilityUnavailableError) {
|
|
8
|
+
const where = err.platform ? `this browser (${err.platform})` : 'this browser';
|
|
9
|
+
return new McpToolError(`Cannot ${action}: ${where} cannot serve the "${err.capability}" capability.`, {
|
|
10
|
+
hint: 'Nothing is wrong with the pairing or this MCP. Use Teams in a browser that supports it (for example Chrome) with ContextMint Bridge installed.',
|
|
11
|
+
cause: err,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
4
14
|
const message = err instanceof Error ? err.message : String(err);
|
|
5
15
|
if (/no tab matching|could not reach a signed-in/i.test(message)) {
|
|
6
16
|
return new McpToolError(`Could not reach a signed-in Teams tab to ${action}.`, {
|
|
@@ -9,7 +19,7 @@ export function wrapBridgeError(err, action) {
|
|
|
9
19
|
}
|
|
10
20
|
if (/pair code|not granted|not in declared/i.test(message)) {
|
|
11
21
|
return new McpToolError(`The Teams browser bridge is not yet approved: ${message}`, {
|
|
12
|
-
hint: 'Approve the pairing request in the
|
|
22
|
+
hint: 'Approve the pairing request in the ContextMint Bridge extension popup, then retry.',
|
|
13
23
|
});
|
|
14
24
|
}
|
|
15
25
|
return new McpToolError(`Failed to ${action}: ${message}`);
|
package/dist/version.js
CHANGED
package/mint.yaml
CHANGED
|
@@ -35,7 +35,7 @@ state:
|
|
|
35
35
|
egress:
|
|
36
36
|
# Empty on purpose: this is a pure browser-bridge MCP. Every Teams request
|
|
37
37
|
# (the read_dom_list calls in src/client.ts) is made by the user's
|
|
38
|
-
# signed-in tab via
|
|
38
|
+
# signed-in tab via ContextMint Bridge, never by this process — there
|
|
39
39
|
# is no direct mode and no bootstrap that dials teams.cloud.microsoft
|
|
40
40
|
# server-side. The only socket the process opens is the loopback
|
|
41
41
|
# concentrator the extension connects TO.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chrischall/microsoft-teams-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"mcpName": "io.github.chrischall/microsoft-teams-mcp",
|
|
5
5
|
"description": "Microsoft Teams MCP server for Claude — developed and maintained by AI (Claude Code)",
|
|
6
6
|
"author": "Claude Code (AI) <https://www.anthropic.com/claude>",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"typecheck": "tsc -p tsconfig.check.json"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@chrischall/mcp-utils": "^2.
|
|
49
|
-
"@fetchproxy/protocol": "^3.
|
|
50
|
-
"@fetchproxy/server": "^3.
|
|
48
|
+
"@chrischall/mcp-utils": "^2.8.0",
|
|
49
|
+
"@fetchproxy/protocol": "^3.4.1",
|
|
50
|
+
"@fetchproxy/server": "^3.4.1",
|
|
51
51
|
"@modelcontextprotocol/server": "^2.0.0",
|
|
52
52
|
"dotenv": "^18.0.1",
|
|
53
53
|
"zod": "^4.6.5"
|
package/server.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/chrischall/microsoft-teams-mcp",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.4",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "@chrischall/microsoft-teams-mcp",
|
|
14
|
-
"version": "0.2.
|
|
14
|
+
"version": "0.2.4",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|
|
@@ -18,8 +18,8 @@ Teams Web has no fetchable API for chat/message/channel content — it's
|
|
|
18
18
|
synced over a private WebSocket channel into a client-side cache, and the
|
|
19
19
|
web app renders straight from that cache. There is nothing to `curl` or POST
|
|
20
20
|
a GraphQL query to. The only way to read it is to read what the page has
|
|
21
|
-
already rendered, which is what `fpx dom-list` does: it asks the
|
|
22
|
-
extension to run a declared `querySelectorAll` + per-item field extraction
|
|
21
|
+
already rendered, which is what `fpx dom-list` does: it asks the ContextMint
|
|
22
|
+
Bridge extension to run a declared `querySelectorAll` + per-item field extraction
|
|
23
23
|
against your signed-in `teams.cloud.microsoft` tab and hands back structured
|
|
24
24
|
rows. `teams.microsoft.com` (the old host) is not supported.
|
|
25
25
|
|
|
@@ -61,9 +61,13 @@ Each `--dom-list-selector` flag declares a DIFFERENT named selector on the
|
|
|
61
61
|
same profile — run all six, not just one. `openConversation` names
|
|
62
62
|
which chat/channel is open — read it with `chatMessages`/`channelPosts` to
|
|
63
63
|
confirm the rows came from the conversation you meant. Requirements: the
|
|
64
|
-
**
|
|
64
|
+
**ContextMint Bridge** browser extension installed (from
|
|
65
|
+
https://github.com/nullnet-app/contextmint-bridge/releases — load the chrome
|
|
66
|
+
zip unpacked in Chrome; Safari isn't available yet, so use Chrome for now —
|
|
67
|
+
it's the fetchproxy extension renamed, source at
|
|
68
|
+
https://github.com/nullnet-app/contextmint-bridge; verify a zip with its `.sha256`), with an open
|
|
65
69
|
`teams.cloud.microsoft` tab you're signed into. The first `dom-list` call
|
|
66
|
-
prints a pair code — approve it in the
|
|
70
|
+
prints a pair code — approve it in the ContextMint Bridge popup; the grant persists
|
|
67
71
|
until the declared scope changes again (each `declare` above widens it
|
|
68
72
|
once).
|
|
69
73
|
|
|
@@ -87,7 +91,7 @@ Ready-to-run recipes (jq filters for all five selectors) are in
|
|
|
87
91
|
run the command again and approve the printed pair code, or check
|
|
88
92
|
`fpx health -p teams`.
|
|
89
93
|
- Error text containing `not in declared set` — the profile's declared scope
|
|
90
|
-
changed since you last paired. Revoke `fpx-teams` in the
|
|
94
|
+
changed since you last paired. Revoke `fpx-teams` in the ContextMint Bridge popup
|
|
91
95
|
and re-run; you'll be asked to approve the new scope.
|
|
92
96
|
|
|
93
97
|
## Notes
|