/claude-in-office:debugfrom claude-in-office
Diagnoses enterprise add-in deployment issues by triaging symptoms, analyzing error pastes, and resolving stale config, connection failures, or missing add-in problems.
Ships in claude-in-office. Installing the plugin adds it to Claude Code.
You are helping an enterprise admin diagnose why the deployed add-in isn't working right. Start by asking what's wrong, then route.
Ask the admin to describe the symptom. Route by answer:
| Symptom | Section |
|---|---|
| Updated the manifest but users still see old config | Stale config after update |
| Add-in shows "Connection failed" | Read the error paste |
| Add-in doesn't appear in Excel/PowerPoint at all | Add-in not visible |
| Sign-in popup fails or loops | Admin consent |
| Need to see the browser console | Opening browser devtools |
If they have an error paste from the add-in (the Copy error details button on the connect-failed screen), always start there. It carries everything.
Paste structure:
Claude for Office connection failed (<Provider>)
Build: <sha>
<friendly message>
Request:
<key>: <value actually sent>
...
Manifest params:
<key>: <value the deployed manifest carries>
...
Raw error:
<SDK/HTTP error>
What to check:
Request: vs Manifest params: delta. Keys are the same snake_case names
in both blocks, so diff directly. If they differ, the user typed override
values into the form. If they match, the manifest values went through
unchanged.Manifest params: m key is the version tag (e.g. unified-1.0.0.11). If
it's below what you last uploaded, the user is on a stale manifest. Go to
Stale config.Raw error: is the ground truth. Common patterns:
invalid_client (401, Google) → wrong google_client_secret for that
google_client_id. Verify in GCP Console → Credentials.Load failed (<host>) → network blocked at the WebView layer. Firewall
needs to allow that host.STS AssumeRoleWithWebIdentity failed → AWS IAM OIDC provider
misconfigured or role trust policy wrong.HTTP 401/403 (gateway) → bad token or gateway rejected the key.Two caches, two clocks:
| Layer | Who holds it | TTL | How to clear |
|---|---|---|---|
| Service | M365 Admin Center → Exchange Online → client | Up to 72h for updates (24h for fresh deploys) | Wait, or redeploy with a fresh <Id> |
| Client | Office app's Wef folder on each machine | Until app restart, sometimes longer | Delete the folder |
Microsoft's own FAQ:
It can take up to 72 hours for add-in updates, changes from turn on or turn off to reflect for users. https://learn.microsoft.com/en-us/microsoft-365/admin/manage/centralized-deployment-faq
Admin Center silently ignores re-uploads with the same <Version>. If you
uploaded a fix without bumping the fourth segment, it never took. Open M365
Admin Center → Integrated apps → your add-in → check the listed version.
Quit Excel/PowerPoint first, then:
macOS:
rm -rf ~/Library/Containers/com.microsoft.Excel/Data/Library/Caches/
rm -rf ~/Library/Containers/com.microsoft.Powerpoint/Data/Library/Caches/
rm -rf ~/Library/Containers/com.microsoft.Excel/Data/Documents/wef
rm -rf ~/Library/Containers/com.microsoft.Powerpoint/Data/Documents/wef
Windows:
rd /s /q "%LOCALAPPDATA%\Microsoft\Office\16.0\Wef"
Relaunch. If still stale, the service-side cache hasn't caught up. Wait, or
use a fresh <Id> (below).
Microsoft's cache-clear doc: https://learn.microsoft.com/en-us/office/dev/add-ins/testing/clear-cache
If 72h is unacceptable, a fresh <Id> UUID forces Admin Center and every
client to treat it as a brand-new add-in (24h fresh-deploy SLA, usually much
faster). Edit manifest.xml, replace the text inside <Id> with a new UUID
(uuidgen on mac/linux, [guid]::NewGuid() in PowerShell), re-upload.
<Hosts>
may not include this app. Check both <Hosts> lists (top-level and under
<VersionOverrides>).If the user sees a sign-in popup that closes immediately or loops, the tenant
hasn't granted admin consent to the Claude app. Run
:consent to generate the consent URL for a Global Admin to
approve. The symptom in error pastes: user_canceled in the raw error (the
broker maps any unclassifiable close to that).
When you need the WebView's console — JS errors, network tab, the add-in's debug logs — you have to attach the host OS's browser devtools. The add-in runs in an embedded WebView with no address bar and no built-in F12, so each OS has its own recipe.
Three gates. Gate 3 is the one everyone misses.
Office developer extras — quit the app first, then:
defaults write com.microsoft.Excel OfficeWebAddinDeveloperExtras -bool true
defaults write com.microsoft.Powerpoint OfficeWebAddinDeveloperExtras -bool true
defaults write com.microsoft.Word OfficeWebAddinDeveloperExtras -bool true
Makes right-click → Inspect Element appear inside the task pane.
Safari Develop menu — Safari → Settings → Advanced → check Show features for web developers.
macOS Developer Tools allowlist (Sonoma and later) — System Settings → Privacy & Security → Developer Tools → toggle Terminal on. Without this, Safari's Develop menu shows "No Inspectable Applications" even with gates 1 and 2 open.
With the task pane open, either right-click inside it → Inspect Element,
or go to Safari → Develop → [your machine name] → find the add-in host
(pivot.claude.ai in prod, your configured domain otherwise).
Gotchas:
defaults write.defaults write. pkill -f "Microsoft Excel" then
relaunch.Depends on which WebView engine Office is using. Current M365 on Win10/11 with the WebView2 runtime gets Chromium; older perpetual Office or machines without the runtime may still be on IE11/Trident.
WebView2 (Chromium — the common case):
Right-click inside the task pane → Inspect. That's it, no gates. If right-click doesn't show Inspect, install Microsoft Edge DevTools Preview from the Microsoft Store — it lists all attachable WebView2 targets including Office add-ins. Launch it, find the add-in's URL in the target list, click to attach.
IE11/Trident (legacy Office 2019/2021 perpetual):
Run the IEChooser from an admin PowerShell:
& "C:\Windows\SysWOW64\F12\IEChooser.exe"
Pick the add-in's page from the list. If the list is empty, the task pane isn't open yet — open it first, then refresh IEChooser.
Microsoft's walkthrough: https://learn.microsoft.com/en-us/office/dev/add-ins/testing/debug-add-ins-using-devtools-edge-chromium
What the command file sets; muted values are Claude Code's defaults
add-in-deployment, enterprise, troubleshooting, office-addin
7-day visitors to each command page
6 plugins ship this exact command · first indexed Apr 1, 2026
6 commands in this plugin
/bootstrapBootstrap endpointBuild the bootstrap endpoint — per-user MCP servers, skills, dynamic config/consentAzure admin consentAzure admin consent URL — one-time tenant approval for Entra SSO/manifestGenerate add-in manifestGenerate the add-in manifest XML with your cloud config baked in/setupClaude in Office — Direct Cloud SetupSetup wizard — provision Vertex/Bedrock/gateway, admin consent, generate manifest/update-user-attrsPer-user config via extension attributesSet per-user config (tokens, region overrides) via Azure AD extension attributesGenerated from the plugin's indexed repository (nbreeze-eric/financial-services-plugins-cn) — no native marketplace selected
npx claudepluginhub p/nbreeze-eric-claude-in-office-claude-in-officeOther plugins' commands for the same job