Skip to content

Commit 79b68c7

Browse files
fix(microsoft-teams): rename public host to graph-mcp.decocms.com (#445)
* fix(microsoft-teams): rename public host to graph-mcp.decocms.com Azure AD rejects reply URLs whose host contains brand tokens like "microsoft" or "teams" with "Your reply url contains prohibited words or prohibited domains." The old host tripped both. Switch the public domain to graph-mcp.decocms.com so /oauth/callback can be registered. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fmt Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent b68101b commit 79b68c7

4 files changed

Lines changed: 4 additions & 7 deletions

File tree

microsoft-teams/app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"friendlyName": "Microsoft Teams",
55
"connection": {
66
"type": "HTTP",
7-
"url": "https://microsoft-teams-mcp.decocms.com/mcp"
7+
"url": "https://graph-mcp.decocms.com/mcp"
88
},
99
"description": "Microsoft Teams integration — send channel and private chat messages, manage meetings, and trigger agents on new Teams messages via the Microsoft Graph API.",
1010
"icon": "https://upload.wikimedia.org/wikipedia/commons/9/94/Microsoft_Office_Teams_%282019%E2%80%932025%29.svg",

microsoft-teams/server/tools/subscriptions.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ function getConnectionId(env: Env): string {
8888
}
8989

9090
function buildNotificationUrl(connectionId: string): string {
91-
const base =
92-
process.env.SERVER_PUBLIC_URL ?? `https://microsoft-teams-mcp.decocms.com`;
91+
const base = process.env.SERVER_PUBLIC_URL ?? `https://graph-mcp.decocms.com`;
9392
return `${base.replace(/\/$/, "")}/teams/notifications/${connectionId}`;
9493
}
9594

microsoft-teams/server/types/env.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ export const StateSchema = z.object({
1616
// Webhook URL shown to the user so they know where Graph notifications land
1717
WEBHOOK_URL: z
1818
.string()
19-
.default(
20-
"https://microsoft-teams-mcp.decocms.com/teams/notifications/{connectionId}",
21-
)
19+
.default("https://graph-mcp.decocms.com/teams/notifications/{connectionId}")
2220
.readonly()
2321
.describe(
2422
"Endpoint where Microsoft Graph change notifications are delivered. When developing locally, expose this via ngrok.",

microsoft-teams/wrangler.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ compatibility_date = "2025-06-17"
44
compatibility_flags = ["nodejs_compat"]
55

66
routes = [
7-
{ pattern = "microsoft-teams-mcp.decocms.com", custom_domain = true },
7+
{ pattern = "graph-mcp.decocms.com", custom_domain = true },
88
]
99

1010
[observability]

0 commit comments

Comments
 (0)