fix(microsoft-teams): rename public host to graph-mcp.decocms.com#445
Open
viktormarinho wants to merge 2 commits into
Open
fix(microsoft-teams): rename public host to graph-mcp.decocms.com#445viktormarinho wants to merge 2 commits into
viktormarinho wants to merge 2 commits into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
https://microsoft-teams-mcp.decocms.com/oauth/callbackwith "Your reply url contains prohibited words or prohibited domains" — the filter blocks brand tokens likemicrosoftandteamsin the host, and the old subdomain contained bothgraph-mcp.decocms.com(references Microsoft Graph without using the trademarked word). Worker name, package name, and log service id are left asmicrosoft-teams-mcpsince those don't affect the URL filter and renaming the worker would orphan theTEAMS_KVbindingwrangler.tomlcustom-domain route,app.jsonconnection URL,WEBHOOK_URLdefault inenv.ts, andSERVER_PUBLIC_URLfallback insubscriptions.tsOut-of-repo follow-up
graph-mcp.decocms.comCNAME in thedecocms.comCloudflare zone (the route inwrangler.tomlprovisions the custom-domain binding on nextwrangler deploy)https://graph-mcp.decocms.com/oauth/callbackTest plan
wrangler deployprovisions the new custom domainhttps://graph-mcp.decocms.com/oauth/callbackas a reply URLsubscribe_to_channelproduces a Graph subscription whosenotificationUrlpoints at the new host, and a test message in that channel fires theteams.message.receivedtrigger🤖 Generated with Claude Code
Summary by cubic
Renamed the Teams MCP public host to
graph-mcp.decocms.comto bypass Azure AD’s reply URL filter. Updated the connection URL, defaultWEBHOOK_URL, andSERVER_PUBLIC_URLfallback so OAuth and Graph subscriptions use the new domain.graph-mcp.decocms.comCNAME in thedecocms.comCloudflare zone.https://graph-mcp.decocms.com/oauth/callbackas a reply URL.Written for commit 2fbd2bd. Summary will update on new commits. Review in cubic