Use Claude for M365 with third-party platforms changedoffice-agents/third-party-platforms
Nearest release: v2.1.335, published under an hour before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 2 Dec 2026 22:01 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 2 Dec 2026 22:07 UTC.
Upstream edited
Recorded here
Lines+110added
Lines−77removed
From line
954
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits33to this page, all time
### Test the CORS preflight for a connector
The whole hunk
from line 954, old and new numbered
/
from line 954
954954`mcp_servers` is a JSON array with one entry for each server. Set it in the
955955manifest to give everyone the same list, or return it from a bootstrap
956956endpoint to vary the list by user. In the manifest URL, URL-encode the JSON
957and put it after `#`: see
957and put it after `#`. See
958958[Keep credentials out of the manifest URL query string](#keep-credentials-out-of-the-manifest-url-query-string).
959959
960960| Field | Required | Description |
961961| - | - | - |
962| `url` | Yes | The server's MCP endpoint. The add-in sends every MCP request to it as a `POST`. |
962| `url` | Yes | The server's MCP endpoint, as an `https` URL. The add-in sends every MCP request to it as a `POST`. |
963963| `label` | No | The name shown in the "Connectors" menu. Defaults to the URL's host and path. |
964964| `headers` | No | Header names and values sent with every MCP request to the server, such as a static API key. |
965965| `discover` | No | Whether users sign in to the server with OAuth. Defaults to `false` when the entry has `headers` and to `true` when it doesn't. |
from line 1005
10051005
10061006A server that comes from the Enterprise Admin Console has no `discover`
10071007field. With no headers, it always offers a sign-in. With headers and no
1008OAuth setting, it connects as soon as the add-in loads.
1008OAuth setting, it connects as soon as the add-in loads. See
1009[Check which MCP servers the add-in uses](https://claude.com/docs/office-agents/admin-console.md#check-which-mcp-servers-the-add-in-uses)
1010for the console servers that don't appear in the "Connectors" menu.
10091011
1010A skipped server doesn't appear in the "Connectors" menu. The add-in skips a
1011console server that has any of the following:
1012
1013* `toolPolicy` entries
1014* A `headersHelper`
1015* An OAuth mode other than dynamic client registration
1016* A transport other than HTTP or SSE
1017
10181012### OAuth sign-in requirements
10191013
1020For a server with `discover: true`, the add-in runs the OAuth 2.0
1021authorization-code grant with PKCE from the browser. The server and its
1014For every server that offers "Connect", whether you list it in
1015`mcp_servers` or in the Enterprise Admin Console, the add-in runs the OAuth
10162.0 authorization-code grant with PKCE from the browser. The server and its
10221017authorization server must meet all of these requirements:
10231018
10241019* **Metadata**: the server names its authorization server in OAuth
from line 1032
10371032* **Open registration**: the metadata includes a `registration_endpoint`
10381033 that accepts dynamic client registration, as in RFC 7591, for a public
10391034 client with no secret. `mcp_servers` has no field for a client ID that
1040 you registered in advance. For a server without open registration, set a
1041 static credential in `headers` instead.
1035 you registered in advance. For a server in `mcp_servers` without open
1036 registration, set a static credential in `headers` instead.
10421037* **Redirect URI**: the authorization server accepts
10431038 `https://pivot.claude.ai/auth/gateway-callback`. See
10441039 [Why sign-in redirects through pivot.claude.ai](#why-sign-in-redirects-through-pivot-claude-ai).
1040* **Resource parameter**: when the add-in uses protected-resource metadata,
1041 it sends that metadata's `resource` value as the `resource` parameter, as
1042 in RFC 8707, on its authorization and token requests. The authorization
1043 server accepts that parameter.
1044* **CORS**: the authorization server meets the
1045 [CORS requirements for connectors](#cors-requirements-for-connectors).
10451046
1047The authorization server can be on a different origin from the MCP server,
1048such as your identity provider's, if the MCP server names it in
1049protected-resource metadata. It has to meet each of these requirements, open
1050registration included. It also has to serve its own metadata, as in RFC 8414
1051or OpenID Connect Discovery, with an `issuer` that matches the entry in
1052`authorization_servers`.
1053
1054To sign users in through an identity provider that doesn't meet these
1055requirements, run your own authorization server that does, on the MCP
1056server's origin or on a separate origin. If the MCP server publishes
1057protected-resource metadata, that metadata must name this authorization
1058server. The add-in opens the server's authorization endpoint in the user's
1059browser, and the endpoint can redirect users to your identity provider. Your
1060authorization server then sends the browser to the redirect URI and issues
1061the tokens.
1062
10461063### CORS requirements for connectors
10471064
10481065Every request to a connector comes from `https://pivot.claude.ai`, so the
from line 1088
10711088| `authorization` | After an OAuth sign-in, or when you set it in `headers` |
10721089| Each name in the entry's `headers` | Always |
10731090
1074The add-in doesn't send `x-mcp-client-name` or `x-mcp-client-session-id`
1075to your servers, so a server doesn't need to allow them. Add-ins loaded
1076before about 05:00 UTC on November 30, 2026, sent both, and a server that
1077didn't allow both failed to connect.
1091`Authorization` and `WWW-Authenticate` have extra rules:
10781092
1079An add-in that has kept running since before that time sends them until it
1080reloads. Ask users to restart Excel, PowerPoint, Word, or Outlook, or to
1081reload the page in Office on the web.
1093* **`Authorization`**: in `Access-Control-Allow-Headers`, the `*` wildcard
1094 doesn't cover this header per the Fetch specification. List it explicitly
1095 if the server receives it.
1096* **`WWW-Authenticate`**: a server that names its protected-resource metadata
1097 only in this header of a `401`, and not at a well-known path, must also
1098 list the header in `Access-Control-Expose-Headers`. The address in the
1099 header must be on the MCP server's own origin, or the add-in ignores it.
10821100
1083In `Access-Control-Allow-Headers`, the `*` wildcard does not cover the
1084`Authorization` header per the Fetch specification, so list it explicitly
1085if the server receives it.
1101For a server that users sign in to, the authorization server needs CORS
1102too:
10861103
1087A server that names its protected-resource metadata only in the
1088`WWW-Authenticate` header of a `401`, and not at a well-known path, must
1089also list that header in `Access-Control-Expose-Headers`. The address in
1090`WWW-Authenticate` must be on the MCP server's own origin, or the add-in
1091ignores it.
1104* **Metadata and token endpoints**: return `Access-Control-Allow-Origin`.
1105 The browser sends no preflight for these requests.
1106* **Registration endpoint**: return `Access-Control-Allow-Origin`, answer
1107 the preflight, and allow `content-type`. If the endpoint is on the MCP
1108 server's own origin, also allow each name in the entry's `headers`.
10921109
1093To check a server's preflight, send it yourself. The following command
1094asks for the two headers that the add-in sends to every server. Add each
1095other name from the table that applies to the server.
1110### Test the CORS preflight for a connector
10961111
1112To check how a server answers the browser's CORS preflight, send one from
1113your terminal. The following command asks for the two headers that the
1114add-in sends to every server. In `Access-Control-Request-Headers`, add each
1115other header from the table in
1116[CORS requirements for connectors](#cors-requirements-for-connectors) that
1117applies to the server.
1118
10971119```bash theme={null}
10981120curl -si -X OPTIONS https://mcp.example.com/mcp -H "Origin: https://pivot.claude.ai" -H "Access-Control-Request-Method: POST" -H "Access-Control-Request-Headers: content-type,mcp-protocol-version"
10991121```
from line 1126
11041126* `Access-Control-Allow-Origin` set to `https://pivot.claude.ai` or `*`
11051127* An `Access-Control-Allow-Headers` value that covers every name you sent
11061128
1107This checks the preflight only: the responses to the `POST` requests need
1108their own CORS headers.
1129This command checks the preflight only. The responses to the `POST`
1130requests need their own CORS headers.
11091131
1110For a server with `discover: true`, the authorization server needs CORS
1111too:
1112
1113* **Metadata and token endpoints**: return `Access-Control-Allow-Origin`.
1114 The browser sends no preflight for these requests.
1115* **Registration endpoint**: return `Access-Control-Allow-Origin`, answer
1116 the preflight, and allow `content-type`. If the endpoint is on the MCP
1117 server's own origin, also allow each name in the entry's `headers`.
1118
11191132### Microsoft 365 connector
11201133
11211134The Microsoft 365 connector that Anthropic hosts at
11221135`microsoft365.mcp.claude.com` isn't supported in the add-ins on a
1123third-party platform. Its sign-in runs on Microsoft Entra ID's origin and not
1124its own, so it doesn't meet the one-origin rule in the
1125[OAuth sign-in requirements](#oauth-sign-in-requirements), and no setting
1126on your side changes that. If you list it in `mcp_servers`, users can't
1127connect to it.
1136third-party platform. If you list it in `mcp_servers`, users can't connect
1137to it, and no setting on your side changes that.
11281138
11291139Leave the connector out of `mcp_servers`. Removing it doesn't affect Claude
1130Desktop, which reads its own `managedMcpServers` key: see
1140Desktop, which reads its own `managedMcpServers` key. See
11311141[Connect to Microsoft 365](https://claude.com/docs/third-party/claude-desktop/connectors-m365.md).
11321142The add-ins skip the Microsoft 365 entries that the Enterprise Admin Console
11331143sets up for Claude Desktop, so they don't appear in the "Connectors" menu.
11341144
1145To sign users in to your own MCP server through Microsoft Entra ID, run an
1146authorization server that meets the
1147[OAuth sign-in requirements](#oauth-sign-in-requirements) and redirects
1148users to Entra ID. Entra ID doesn't offer dynamic client registration, so
1149the MCP server can't name Entra ID itself as its authorization server.
1150
11351151## Example gateway configuration with LiteLLM
11361152
11371153> [!WARNING]
from line 1773
17571773Connectors, and rest the pointer on a connector marked "Connection failed".
17581774
17591775* **The error says "Failed to fetch", "Load failed", or "timed out"**: the
1760 browser gave the add-in no response. Usually the network blocks the
1761 server, or the server's CORS headers are missing. A timeout can also mean
1762 that the server took more than 15 seconds to answer. Confirm that the
1763 server's host, and its authorization server's host, are on your
1764 [Network allowlist](#network-allowlist), and then check the
1765 [CORS requirements for connectors](#cors-requirements-for-connectors).
1776 browser gave the add-in no response. Check for each of these causes:
1777 * **Blocked host**: confirm that the server's host, and its authorization
1778 server's host, are on your [Network allowlist](#network-allowlist).
1779 * **Missing CORS headers**: check the
1780 [CORS requirements for connectors](#cors-requirements-for-connectors).
1781 * **`http` address**: the add-in's page uses `https`, so the browser
1782 blocks its requests to an address such as
1783 `http://tools.example.com/mcp`. Serve the MCP endpoint over `https`, and
1784 list the `https` address.
1785 * **Slow server**: "timed out" can also mean that the server took more
1786 than 15 seconds to answer.
17661787* **The server works in Claude Desktop or Claude Code**: those apps don't
17671788 enforce CORS. Check the
17681789 [CORS requirements for connectors](#cors-requirements-for-connectors).
17691790* **The error says the server "refused the credentials it was sent (HTTP
17701791 401\)"**: the add-in tried to connect without a user sign-in, and the
1771 server answered `401`. Check that the names and values in the entry's
1772 `headers` are still valid on the server. If the entry has no `headers`,
1773 add the credential that the server expects in `headers`. If users should
1774 sign in to the server with OAuth, set `"discover": true` on its entry.
1775* **The server needs no authentication but shows "Connect"**: set
1776 `"discover": false` on its entry. See
1777 [Choose whether users sign in](#choose-whether-users-sign-in). A server
1778 from the Enterprise Admin Console has no such field: it connects without
1779 a sign-in only if it has at least one header and no OAuth setting. The
1780 server must allow that header: see
1781 [CORS requirements for connectors](#cors-requirements-for-connectors).
1792 server answered `401`.
1793 * **A server in `mcp_servers`**: check that the names and values in the
1794 entry's `headers` are still valid on the server. If the entry has no
1795 `headers`, add the credential that the server expects in `headers`. If
1796 users should sign in to the server with OAuth, set `"discover": true` on
1797 its entry.
1798 * **A server from the Enterprise Admin Console**: check that the entries
1799 under "Headers" are still valid on the server. If the server needs a
1800 credential, set "OAuth" to "Auto-register (dynamic client registration)"
1801 so that members sign in, as in
1802 [Check which MCP servers the add-in uses](https://claude.com/docs/office-agents/admin-console.md#check-which-mcp-servers-the-add-in-uses).
1803 The server must then meet the
1804 [OAuth sign-in requirements](#oauth-sign-in-requirements).
1805* **The server needs no authentication but shows "Connect"**: the add-in
1806 offers a sign-in that the server can't complete. Once you change the
1807 setting, an add-in that is already running can keep showing "Connect" until
1808 it reloads.
1809 * **A server in `mcp_servers`**: set `"discover": false` on its entry. See
1810 [Choose whether users sign in](#choose-whether-users-sign-in).
1811 * **A server from the Enterprise Admin Console**: add at least one entry
1812 under "Headers", such as `X-Tenant-ID`, and set "OAuth" to "None". The
1813 server must allow that header. See
1814 [CORS requirements for connectors](#cors-requirements-for-connectors).
17821815* **"Connect" ends in an error**: the error appears on the card that
17831816 "Connect" opens, not in the list. Compare the server with the
17841817 [OAuth sign-in requirements](#oauth-sign-in-requirements), and its
from line 1818
17851818 authorization server with the
17861819 [CORS requirements for connectors](#cors-requirements-for-connectors).
17871820* **A server from the Enterprise Admin Console is missing from the menu**:
1788 check whether it's one that the add-in skips. See
1789 [Choose whether users sign in](#choose-whether-users-sign-in).
1821 check whether the add-in can use it. See
1822 [Check which MCP servers the add-in uses](https://claude.com/docs/office-agents/admin-console.md#check-which-mcp-servers-the-add-in-uses).
17901823* **The connector is Microsoft 365**: see
17911824 [Microsoft 365 connector](#microsoft-365-connector).
17921825
No line in this hunk matches that.