One read of Claude Documentationclaude-docs-20261116T193705Z
9 pages moved out of 291 read.
Pages moved
9
significant first
Pages read
291
in this capture
Captured
19:37 UTC
Corpus hash
56199b015037
corpus-hash
What this read moved
1-9 of 9connectors/building/mcp-apps/design-guidelines Changed · +45 / -4 lines
### Declare an app icon for Claude
from line 16
1616
1717## Design for the conversation
1818
19Design your app as an extension of the conversation rather than a separate app that appears alongside it. Your app inherits conversational context and helps users accomplish meaningful tasks without breaking flow. These principles follow from that:
19Design your app as an extension of the conversation rather than a separate app that appears alongside it. Your app helps users accomplish meaningful tasks without breaking flow. These principles follow from that:
2020
2121* **Conversational**: fit naturally into dialogue, and don't force users to learn new interaction patterns
22* **Contextual**: use conversation history to inform what you display and when
22* **Contextual**: use the arguments that Claude passes to your tool to inform what you display and when
2323* **Integrated**: inherit styling and conventions from the containing environment
2424* **Adaptive**: handle variable sizing, mobile viewports, and diverse accessibility needs gracefully
2525
from line 133
133133* A fullscreen request from your app opens the side panel where there is one, and users go on to full screen from the panel
134134* The composer is always visible, so design your UX to work with it
135135* No floating panels, so use collapsible sidebars, tabs, or pagination to disclose details
136* The chat sheet maintains conversational context
137136
138137On mobile, your app fills the entire screen with the chat input and navigation bar overlaid on top, so keep critical UI within the safe area. Use the full viewport width, and support both portrait and landscape where it makes sense.
139138
from line 140
141140
142141## Mobile guidelines
143142
144MCP Apps on mobile follow the same principles as on web, but the constrained viewport and touch-based interaction require specific adaptations. On mobile, Claude renders apps in a native WebView, `WKWebView` on iOS and `WebView` on Android, rather than a sandboxed iframe. Apps on mobile have no camera, microphone, or location access, and users must add a connector on web or desktop before it appears on mobile.
143MCP Apps on mobile follow the same principles as on web, but the constrained viewport and touch-based interaction require specific adaptations. On mobile, Claude renders apps in a native WebView, `WKWebView` on iOS and `WebView` on Android.
145144
145On Android, apps have no camera, microphone, or location access. On iOS, an app that requests the camera or the microphone in `_meta.ui.permissions` can use it after the user allows it. A view that Claude allows to embed a site [can't use either](https://claude.com/docs/connectors/building/mcp-apps/embedded-sites.md#device-features-in-views-that-embed-sites). Claude on mobile doesn't report these features in `app.getHostCapabilities()?.sandbox?.permissions`, so call the browser API, such as `getUserMedia()`, without checking that field, and handle a refusal.
146
146147### Host context for layout
147148
148149The host passes layout hints to your app through `hostContext`. Apps always fill the container width, with no fixed breakpoints, so design responsively from 320px up to fullscreen using container queries and the `hostContext` CSS variables.
from line 272
271272
272273
273274
275### Declare an app icon for Claude
276
277Claude can show an icon of your own for an MCP App, in place of your connector's icon or your listing's logo. The icon can appear in the title bar over a view in the side panel and in full screen. Where the app has an [entry point](https://claude.com/docs/connectors/building/mcp-apps/entry-points.md), the icon can also appear on the app's tile on the [**Artifacts**](https://claude.ai/artifacts) page. Declared icons aren't available in every organization or conversation.
278
279Declare the icon in the `icons` list of your server's `serverInfo`, as an inline `data:` URI:
280
281```ts theme={null}
282import { readFileSync } from "node:fs";
283import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
284
285const icon = {
286 src: `data:image/png;base64,${readFileSync("icon.png").toString("base64")}`,
287 mimeType: "image/png",
288};
289
290const server = new McpServer({
291 name: "board",
292 version: "1.0.0",
293 icons: [icon],
294});
295```
296
297Your server's `initialize` result then holds the icon in `serverInfo.icons`.
298
299These have to hold:
300
301* **Source**: an inline `data:` URI in `src`. Claude doesn't fetch an icon from a URL. An `https:` entry for other clients can stay in the list, after the inline one
302* **Format**: `data:image/png;base64,` or `data:image/jpeg;base64,`. Claude removes an inline SVG entry from `serverInfo`
303* **Size**: keep the icon to 64 to 128 px and under 10 KB. Declare one inline icon in `serverInfo`, where the whole object, icons included, can take about 16,000 characters of JSON. Beyond that, Claude drops all of it
304* **Connector**: the connector has a [Verified](https://claude.com/docs/connectors/verification.md#verified) listing, or it's a custom connector whose address matches no directory listing
305* **Names**: the tool's [title](https://claude.com/docs/connectors/building/mcp-apps/entry-points.md#set-the-title-name-and-description-of-the-marked-tool), and a custom connector's name, leave out Claude's name and Anthropic's name
306
307When no declared icon meets the requirements, Claude shows the listing's logo or the connector's icon, and shows no error. If your icon meets the requirements and doesn't appear, your organization may not have access, or the conversation may not offer it.
308
309To give each app its own icon, add an `icons` list to the tool that opens the app, in your server's `tools/list` result. Claude uses the tool's icon before the server's. To check that the field is there, [list your server's tools](https://claude.com/docs/connectors/building/testing.md#validate-with-mcp-inspector).
310
311Version 1 of the TypeScript SDK (`@modelcontextprotocol/sdk`), which the [quickstart](https://claude.com/docs/connectors/building/mcp-apps/quickstart.md) uses, doesn't send a tool's `icons` through `registerTool` or `registerAppTool`. With it, use `serverInfo`, which gives all your apps one icon, or answer `tools/list` yourself. Version 2 (`@modelcontextprotocol/server`) sends them through `registerTool`, and through `registerAppTool` in JavaScript.
312
274313### Spacing
275314
276315Maintain generous padding and logical groupings. Balance information density with readability, adapting to viewport constraints.
from line 341
302341* Anything that benefits from Claude's interpretation
303342
304343If the interaction requires language understanding or generates a response from Claude, it goes through chat. If it's a direct UI action on content your app already controls, handle it in the app.
344
345When your app loads again, it starts from your HTML, so store on your server anything that you need to keep.
305346
306347### Reveal complexity progressively
307348
connectors/building/mcp-apps/embedded-sites Changed · +5 / -2 lines
from line 17
1717
1818* **Where sites load**: Claude applies different rules to directory connectors and custom connectors, so start with [where embedded sites load](#where-embedded-sites-load)
1919* **Device features**: check [which device features your connector's views lose](#device-features-in-views-that-embed-sites), such as the camera
20* **Sign-in**: Claude passes no session to your site, so plan [how users sign in](#sign-a-user-in-to-an-embedded-site)
2021
2122## Where embedded sites load
2223
from line 41
4041
4142### Allowed origins in a custom connector
4243
43Where embedded sites are available for custom connectors, Claude lists the origins that you declare for the view and asks the user to allow them.
44Where embedded sites are available for custom connectors, Claude lists the origins that you declare for the view and asks the user to allow them. That request can also warn the user that Anthropic hasn't reviewed the connector or the websites, and the user can still allow them. Under a Verified listing that allows the origins, users get no such warning.
4445
4546For embedded sites, a connector counts as custom when a user added it by URL and its address matches no directory listing. Check these details of your connector:
4647
from line 202
201202* **Navigation**: the site can navigate its own frame and submit forms to its own origin. The site can't navigate the Claude page.
202203* **Redirects**: for a redirect in the frame, the destination and each origin that the redirect passes through must be origins that Claude allows
203204
205A connector's views load from its own sandbox host under `claudemcpcontent.com`: the same host in every conversation if you set [`ui.domain`](https://claude.com/docs/connectors/building/mcp-apps/getting-started#set-ui-domain-for-claude), and a different host in each if you don't.
206
204207### Sessions and cookies in an embedded site
205208
206209Claude passes no session to the site, and a call to `document.requestStorageAccess()` is rejected. To keep a session inside the frame:
from line 233
230233* **Directory connector**: when the listing allows an origin, plan for the connector's other views to lose them
231234* **Custom connector**: where [embedded sites are available for custom connectors](#availability-of-embedded-sites-for-custom-connectors), plan for every view of the connector to lose them
232235
233To see which features Claude granted a view, read `app.getHostCapabilities()?.sandbox?.permissions` in the view's script after `app.connect()` resolves. Each key is a granted feature.
236To see which features Claude granted a view, read `app.getHostCapabilities()?.sandbox?.permissions` in the view's script after `app.connect()` resolves. Each key is a granted feature. Claude on mobile doesn't report these features.
234237
235238Also plan for `Element.requestFullscreen()` to fail, in views and in embedded sites. Don't depend on a video player's full-screen button.
236239
government/deploy-desktop/configure Changed · +9 / -7 lines
from line 106
106106
107107Push both the app installer and the configuration profile through your device management system.
108108
109The profile needs these keys. In the macOS and Windows profiles, write every value as a string exactly as shown, including booleans as the strings `"true"` or `"false"`; the Linux file uses native JSON types, as shown.
109The profile needs these keys. In the macOS and Windows profiles, write every value as a string, including `true`. The Linux file uses native JSON types.
110110
111111| Key | Value | Purpose |
112112| - | - | - |
113113| `bootstrapUrl` | `https://<claude-for-government-host>/gateway-api/user/bootstrap` | Required. Points the app at Claude for Government. |
114| `disableDeploymentModeChooser` | `"true"` | Required. Hides the claude.ai sign-in option. Claude for Government also sends this setting, but the profile must set it too (see [`disableDeploymentModeChooser`](https://claude.com/docs/third-party/claude-desktop/configuration#disabledeploymentmodechooser) in the Claude Desktop configuration reference). |
115| `deploymentMode` | `"3p"` | Required on Claude Desktop 4.16336.0 or later. Keeps the app on Claude for Government. Earlier versions read `disableDeploymentModeChooser`, so set both. |
114| `disableDeploymentModeChooser` | `true` | Required. Hides the claude.ai sign-in option. Claude for Government also sends this setting, but the profile must set it too (see [`disableDeploymentModeChooser`](https://claude.com/docs/third-party/claude-desktop/configuration#disabledeploymentmodechooser) in the Claude Desktop configuration reference). |
115| `deploymentMode` | `3p` | Required on Claude Desktop 4.16336.0 or later. Keeps the app on Claude for Government. Earlier versions read `disableDeploymentModeChooser`, so set both. |
116116
117117No other keys are needed to connect the app; Claude for Government [supplies everything else](https://claude.com/docs/third-party/claude-desktop/bootstrap.md) per user after sign-in. If your agency distributes Claude Desktop updates itself, [Automatic updates](#automatic-updates) describes one more key to add.
118118
from line 124
124124
125125### macOS
126126
127Claude Desktop reads managed preferences in the `com.anthropic.claudefordesktop` domain. Deploy a configuration profile that sets the keys in that domain as strings.
127Claude Desktop reads managed preferences in the `com.anthropic.claudefordesktop` domain. Deploy a configuration profile that sets the keys in that domain. Have your management system install the profile for the whole computer, not for one user account, and keep every key in that one profile.
128128
129129```xml theme={null}
130130<key>bootstrapUrl</key>
from line 136
136136<string>3p</string>
137137```
138138
139For a `.mobileconfig` to start from, use the Export menu described under [Configure a single machine](#configure-a-single-machine), and check it as that section says before you upload it.
139For a `.mobileconfig` to start from, use the **Export** menu described under [Configure a single machine](#configure-a-single-machine). Before you upload the file, make sure it sets the keys above, and change `PayloadScope` to `System` if it says `User`.
140140
141If you already deployed a user-level profile, copy the keys you still need into the computer-level profile before you deploy it, and remove the user-level profile once the new one is installed.
142
141143### Windows
142144
143145Claude Desktop reads string (`REG_SZ`) values by name under `HKLM\SOFTWARE\Policies\Claude`. Deliver them with Intune, Group Policy, or any tool that writes machine policy. As a `.reg` file:
from line 188
186188On macOS and Windows, Claude Desktop downloads and installs its own updates by default. On a Mac with the app in `/Applications`, macOS asks a user who is not an administrator for an administrator's name and password before an update installs. Until someone enters them, the update does not install. If your agency distributes Claude Desktop updates itself, turn automatic updates off in both of the following places so that devices never update themselves.
187189
188190* **On the Config page.** Have a tenant administrator turn on [Block automatic updates](https://claude.com/docs/government/config/settings.md#block-automatic-updates) and [lock](https://claude.com/docs/government/config/overview.md#locks) it, so that no level below theirs can turn updates back on. An organization owner can turn it on for their own organization, whose Config page offers no lock. Claude Desktop applies this setting once a user has signed in and the app has loaded their configuration from Claude for Government. With that configuration loaded, the app follows this setting alone, whether it is on or off, and ignores the profile value.
189* **In the profile.** Add `disableAutoUpdates` with the value `"true"` beside [`bootstrapUrl`](#the-bootstrap-address) in your [macOS](#macos) and [Windows](#windows) profiles. The app applies the profile value only when it starts without a signed-in user, for example on a newly deployed device or when a user opens the app and has to sign in again because their session expired. Without the Config page setting, the profile value does not stop signed-in devices from updating.
191* **In the profile.** Add `disableAutoUpdates` with the value `true` beside [`bootstrapUrl`](#the-bootstrap-address) in your [macOS](#macos) and [Windows](#windows) profiles. The app applies the profile value only when it starts without a signed-in user, for example on a newly deployed device or when a user opens the app and has to sign in again because their session expired. Without the Config page setting, the profile value does not stop signed-in devices from updating.
190192
191193Claude Desktop reads its update settings when it starts. If the app is already running on a device when you change the Config page setting or the profile, the change applies the next time the app starts. If you leave automatic updates on, see [Restart deadline for updates](https://claude.com/docs/government/config/settings.md#restart-deadline-for-updates).
192194
193On Claude Desktop versions earlier than 1.25927.0, the Config page setting alone does not reliably stop updates. On those versions, a profile that sets `disableAutoUpdates` to `"true"` stops automatic updates for signed-in users too, until you remove the key.
195On Claude Desktop versions earlier than 1.25927.0, the Config page setting alone does not reliably stop updates. On those versions, a profile that sets `disableAutoUpdates` to `true` stops automatic updates for signed-in users too, until you remove the key.
194196
195197On Linux, apt installs Claude Desktop updates, and the app does not download or install its own. The **Block automatic updates** setting and the `disableAutoUpdates` key do not change these updates. To stop the app's own check of Anthropic's [update hosts](https://claude.com/docs/third-party/claude-desktop/telemetry.md#required-egress-paths) for a new version, use both, with the key in the [Linux file](#linux). To keep Linux devices on the versions your agency distributes, follow [Auto-updates](https://claude.com/docs/third-party/claude-desktop/telemetry.md#auto-updates) in the Claude Desktop documentation.
196198
connectors/building/directory-vs-custom Changed · +1 / -1 lines
from line 92
9292
9393### Offer a listing and a custom connector
9494
95A supported pattern is to list a connector in the directory with safe, broadly applicable defaults, and provide enterprise customers a separate URL to add as a custom connector with elevated permissions or tenant-specific configuration. Document both paths in your own product docs.
95A supported pattern is to list a connector in the directory with safe, broadly applicable defaults, and provide enterprise customers a separate URL to add as a custom connector with elevated permissions or tenant-specific configuration. Claude treats that URL as a custom connector, so it can [mark the connector's open MCP Apps **Unverified**](https://claude.com/docs/connectors/building/testing.md#test-in-claude-as-a-custom-connector). Document both paths in your own product docs.
9696
9797### Per-tenant URLs
9898
connectors/building/mcp-apps/entry-points Changed · +1 / -0 lines
from line 65
6565* **Arguments**: make every input optional and show a useful starting state when the arguments are `{}`.
6666 * Claude can choose a value for an optional input, so don't treat a value as proof of the user's choice.
6767* **Conversation**: on the web, the app opens in a new conversation each time a user opens it
68* **Icon**: Claude can show an [icon that you declare](https://claude.com/docs/connectors/building/mcp-apps/design-guidelines.md#declare-an-app-icon-for-claude) on the app's tile and over the open view
6869* **Display mode**: on the web, Claude shows the view full screen when the view supports `fullscreen`, so include `fullscreen` if you declare [`availableDisplayModes`](https://claude.com/docs/connectors/building/mcp-apps/design-guidelines#declare-supported-display-modes).
6970 * Without `fullscreen`, the view appears in the conversation.
7071* **Approval**: if the tool's permission is **Needs approval**, Claude asks the user for approval before the view opens. If the conversation's permission setting is **Auto**, Claude can open the view without asking.
connectors/building/mcp-apps/getting-started Changed · +3 / -1 lines
from line 158
158158c3d80a4ed901ee05b21755a88273b4a4.claudemcpcontent.com
159159```
160160
161If Claude reports `Invalid ui.domain format` or `ui.domain mismatch`, see [Troubleshoot MCP Apps](https://claude.com/docs/connectors/building/mcp-apps/troubleshooting.md#ui-domain-validation-fails).
161If Claude shows an error instead of your app after you set this value, see [Troubleshoot MCP Apps](https://claude.com/docs/connectors/building/mcp-apps/troubleshooting.md#ui-domain-validation-fails).
162162
163163### Build with an AI coding agent
164164
from line 178
178178If you have an existing app built on the OpenAI Apps SDK, follow the [migration reference](https://modelcontextprotocol.github.io/ext-apps/api/documents/Migrate_OpenAI_App.html) to move it to the MCP Apps SDK. The MCP Apps skills can also do the migration: ask your agent to "Migrate from OpenAI Apps SDK" or "Convert my OpenAI App to an MCP App".
179179
180180If your tools already declare global [entry points](https://claude.com/docs/connectors/building/mcp-apps/entry-points.md) under the `openai/ui` key, check what else each tool needs in Claude in [Mark a tool as a global entry point](https://claude.com/docs/connectors/building/mcp-apps/entry-points.md#mark-a-tool-as-a-global-entry-point).
181
182After you migrate, [one codebase can run in Claude and in other hosts that support MCP Apps](#register-tools-and-resources-once-for-every-host). One thing that differs is [`ui.domain`](#set-ui-domain-for-claude): each host has its own format.
181183
182184## Send feedback on MCP Apps
183185
connectors/building/mcp-apps/troubleshooting Changed · +1 / -1 lines
from line 125
125125
126126### `ui.domain` validation fails
127127
128Setting [`_meta.ui.domain`](https://modelcontextprotocol.github.io/ext-apps/api/interfaces/app.McpUiResourceMeta.html#domain) on your resource opts your app into a stable sandbox origin, which you need if your app runs its own OAuth flow. Claude validates the value against your connector URL, and when validation fails it shows an `Invalid ui.domain format` or `ui.domain mismatch` error instead of rendering the app.
128Setting [`_meta.ui.domain`](https://modelcontextprotocol.github.io/ext-apps/api/interfaces/app.McpUiResourceMeta.html#domain) on your resource opts your app into a stable sandbox origin, which you need if your app runs its own OAuth flow. Claude validates the value against your connector URL, and when validation fails on the web or in Claude Desktop it shows an error instead of rendering the app.
129129
130130The value must be exactly `{hash}.claudemcpcontent.com`, where `{hash}` is the first 32 hexadecimal characters of the SHA-256 digest of your full connector URL. Compute it by running this command with your own URL:
131131
connectors/building/testing Changed · +1 / -0 lines
from line 17
1717* **The connection**: the connector shows **Connected** under **Your connectors**. If it shows **Connect** or **Reconnect** instead, sign-in didn't finish, and [Debug connection failures](#debug-connection-failures) covers the usual causes
1818* **Your tools**: open the connector's page and look under **Tool permissions**. Every tool your server advertises should be listed with the name and description you gave it, because those are what Claude reads when it decides to call a tool
1919* **A real call**: in a chat, turn the connector on from **+ > Connectors**, ask for something that needs one of your tools, and approve the call when Claude asks. Confirm on your server that the request arrived with the arguments you expected, and in Claude that the result reads well. [Use the connector in a conversation](https://claude.com/docs/connectors/getting-started.md#use-the-connector-in-a-conversation) shows what the user sees at each point
20* **An MCP App**: while your app is open, Claude can mark the connector **Unverified**, in the conversation, in the side panel, and in full screen. The mark means that Anthropic hasn't verified the connector, not that your server has a fault. People who install your connector from a directory listing don't see it
2021
2122### Test a local server
2223
connectors/verification Changed · +1 / -1 lines
from line 26
2626
2727### Custom
2828
29You added a Custom connector yourself, and Anthropic hasn't reviewed it. [Custom connectors](https://claude.com/docs/connectors/custom/add-unlisted.md#add-a-connector-by-url) explains how to add one.
29You added a Custom connector yourself, and Anthropic hasn't reviewed it. While a Custom connector's MCP App is open, Claude can mark the connector **Unverified**. [Custom connectors](https://claude.com/docs/connectors/custom/add-unlisted.md#add-a-connector-by-url) explains how to add one.
3030
3131## Directory listing versus custom connectors
3232