One read of Claude Documentationclaude-docs-20261202T220711Z
4 pages moved out of 298 read.
Pages moved
4
significant first
Pages read
298
in this capture
Captured
22:07 UTC
Corpus hash
e71447810006
corpus-hash
What this read moved
1-4 of 4office-agents/admin-console Changed · +5 / -11 lines
from line 215
215215
216216If a server shows "Connection failed" in the "Connectors" menu, or a member
217217sees an error after selecting "Connect", check that the server meets the
218[CORS requirements](https://claude.com/docs/office-agents/third-party-platforms.md#cors-requirements)
219for `https://pivot.claude.ai`. With OAuth sign-in, the authorization server
220must meet them too. The server must also:
221
222* List `Content-Type`, `Mcp-Protocol-Version`, and each name under "Headers" in
223 `Access-Control-Allow-Headers`.
224* List `Mcp-Session-Id` in both `Access-Control-Allow-Headers` and
225 `Access-Control-Expose-Headers`, if the server uses sessions.
226* With OAuth sign-in, list `Authorization` in `Access-Control-Allow-Headers` and
227 `WWW-Authenticate` in `Access-Control-Expose-Headers`. A registration
228 endpoint on the server's own origin must allow each name under "Headers" too.
218[CORS requirements for connectors](https://claude.com/docs/office-agents/third-party-platforms.md#cors-requirements-for-connectors).
219Where those requirements say `headers`, use the names under "Headers". With
220OAuth sign-in, the authorization server must meet them too, and both servers
221must meet the
222[OAuth sign-in requirements](https://claude.com/docs/office-agents/third-party-platforms.md#oauth-sign-in-requirements).
229223
230224## Withhold an MCP server
231225
office-agents/third-party-platforms Changed · +110 / -77 lines
### Test the CORS preflight for a connector
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
office-agents/data-storage Changed · +2 / -2 lines
from line 411
411411| Feature-flag requests | In every deployment, the add-in asks `claude.ai` which features to show. Each request includes the device identifier, the Office app, and, when the user is signed in to Office, the Entra ID tenant ID. With a Claude account sign-in, it also includes the user's email address, account ID, and organization ID. In every deployment, the add-in sends a usage event for each feature variant it showed. With a Claude account sign-in, the add-in also sends each variant it showed directly to Anthropic, with the organization ID |
412412| Usage events | Sent to Anthropic's server at `pivot.claude.ai`, which forwards them to Anthropic's event logging service. Each event has a name and properties such as counts, durations, the model, and the Office app with its platform and version, with the device identifier and an ID for the task pane session. With a Claude account sign-in, events also carry the account and organization IDs. Before sending an event, the add-in removes the fields known to carry file names, file paths, error text, and the names of your connectors and their tools. The filter matches field names, so it does not remove such text from a field it does not name. Events that load an Excel workbook or a PowerPoint presentation carry an unsalted hash of the file's path or address. With a Claude account sign-in, a user can rate a response and add a comment. The comment reaches Anthropic's server, which forwards the comment's length but not its text. When a user types a job role that is not on the list, the server forwards that the user chose Other, but not the text |
413413| Identifiers from Office on usage events | When the user is signed in to Office, usage events also carry the Entra ID tenant ID, the domain of the user's email address, and the hash described in [What chat history is keyed to](#what-chat-history-is-keyed-to). The hash is unsalted, so anyone who knows the user's Entra ID object ID can match it |
414| Outlook app and browser details on usage events | In Outlook, most events name which Outlook app is in use. Events sent when one of the add-in's databases is created, opens slowly, or refuses to open, or when a page stops using one until the page reloads, carry the browser's family, such as Edge, and its major version. The event sent when an operation on saved chat history fails, such as a read, a save, or a delete, carries the browser's family. These events keep nothing else of the browser's user agent |
414| Outlook app and browser details on usage events | In Outlook, most events name which Outlook app is in use. Events sent when one of the add-in's databases is created, opens slowly, opens without its tables, or refuses to open, or when a page stops using one until the page reloads, carry the browser's family, such as Edge, and its major version. The event sent when an operation on saved chat history fails, such as a read, a save, or a delete, carries the browser's family. These events keep nothing else of the browser's user agent |
415415| Storage figures on a usage event | When an operation on saved chat history fails, such as a read, a save, or a delete, and the browser reports its storage estimate, the event for that failure carries two byte counts, unrounded, as the browser estimates them: how much the add-in has stored in the browser, and the most the browser lets it store |
416416| Memory figures on a usage event | The event sent when the browser cannot copy a conversation into storage carries the device's RAM as the browser rounds it, such as 8 GB, and the most memory the browser lets the add-in's scripts use, in 1 GB bands from under 1 GB to 4 GB or more. Only browsers built on Chromium report these two figures, including the WebView2 runtime that Office on Windows uses. In other browsers, including the one Office uses on Mac, the event gives them as unknown |
417417| Error reports sent to Sentry, with a Claude account sign-in | The user's account ID, the type of error, where in the add-in's code it happened, the name of the tool that failed, and other details about what failed, such as IDs and counts. A report also lists the hosts the add-in contacted, which can include a connector's host, and the add-in pages visited before the error. It also carries the browser's user agent string whole, which names the operating system and usually the browser and its version. Before sending a report, the add-in removes the error text, a failed tool's input, and the names of files, skills, and connectors from the fields known to carry them. The filter matches field names, so it does not remove such text from a field it does not name. Until November 2026, error reports also included the text of the error and those names, which could include conversation and document content |
from line 419
419419| Diagnostic traces, logs, and metrics sent to Anthropic | Counts, durations, error types, the Office API call that failed, the model, request IDs, the names of built-in tools, the Office app and its platform, and a session ID. Metrics also say whether the open file is the sample file that opens when the add-in is installed and whether it is read-only. In Word, they also give the file's Track Changes setting and the kind of list edit Claude attempted: a new bulleted list, a new numbered list, or an item added to a list. Traces also carry the Office version and, with a Claude account sign-in, the organization ID. Before sending traces and logs, the add-in removes every field that is not on an allowlist, so they exclude conversation text, document contents, file names, and the names of your connectors and their tools. Before sending metrics, the add-in removes a list of fields that includes file names and connector names |
420420| Telemetry sent to a custom OpenTelemetry collector you configure | A collector set in the claude.ai admin console, in the manifest, in Entra ID claims, or by your bootstrap endpoint receives the full audit trail, including prompt content and tool inputs and outputs. That path skips the allowlist filter by design. A collector named in an administrator-managed settings document, such as the one the Enterprise Admin Console delivers, receives only the kinds of content that document selects, and no conversation or tool content if it selects none. While a custom collector is set, traces and logs go only to that collector, and metrics still go to Anthropic. See [Audit and observability](https://claude.com/docs/office-agents/enterprise-readiness.md#audit-and-observability) |
421421| Details of Claude's scripts and failed tool calls, on diagnostic traces | For Office.js scripts that Claude asks to run in the Excel add-in's chat, including some that the user then declines, whether the script's text contains `.charts`. For a failed tool call in any add-in, where the error reports them, the Office API's error code, from a fixed list or `other`, and whether the error came from a chart object. These fields hold only those fixed values, never the script or the error's text. They go where the traces in the two rows above go: to Anthropic or, while a custom collector is set, only to that collector. A collector named in an administrator-managed settings document also gets them on log records, even with traces off. The `agent.tool_execution` table in [Configure a custom OpenTelemetry collector](https://claude.com/docs/office-agents/opentelemetry.md) lists them |
422| Browser and memory details on metrics | Sent to Anthropic with the add-in's other metrics. Metrics for a database that is created, opens slowly, or refuses to open, for a page that stops using one until the page reloads, and for a failed operation on saved chat history, carry the browser's family. For a database that refuses to open, and for a page that stops using one, they also carry the browser's major version. The metric for a conversation that the browser could not copy into storage carries the device's RAM as the browser rounds it, and the memory limit for the add-in's scripts in 1 GB bands. No metric carries the storage byte counts |
422| Browser and memory details on metrics | Sent to Anthropic with the add-in's other metrics. Metrics for a database that is created, opens slowly, opens without its tables, or refuses to open, for a page that stops using one until the page reloads, and for a failed operation on saved chat history, carry the browser's family. For a database that refuses to open, and for a page that stops using one, they also carry the browser's major version. The metric for a conversation that the browser could not copy into storage carries the device's RAM as the browser rounds it, and the memory limit for the add-in's scripts in 1 GB bands. No metric carries the storage byte counts |
423423
424424When you
425425[manage the add-in from the Enterprise Admin Console](https://claude.com/docs/office-agents/admin-console.md),
office-agents/outlook Changed · +1 / -1 lines
from line 732
732732applies, not the "Always allow mailbox search" switch.
733733
734734On a third-party platform, the Microsoft 365 connector that Anthropic hosts
735isn't supported: see
735isn't supported. See
736736[Microsoft 365 connector](https://claude.com/docs/office-agents/third-party-platforms.md#microsoft-365-connector).
737737
738738Where mailbox content goes after Claude reads it depends on how you