Using developer tools
Claude Desktop’s Developer Tools can help you debug MCP Apps. To use them:- Open Help > Troubleshooting and click Enable Developer Mode. A new Developer menu appears in the menu bar.
- Open Developer Tools by pressing
Cmd+Option+I(Mac) orCtrl+Shift+I(Windows) - Inspect the tool call element and look for an iframe nested inside another iframe. Your app will be loaded as the content of the inner iframe.
Problem: Tool call appears but the app is invisible
This is the most common issue when developing MCP Apps. Check these two causes:Missing app.connect() call
Your app must call app.connect() (Vanilla JS) or useApp() (React) to establish communication with Claude Desktop.
Iframe has zero height
Your app needs a non-zero height to be visible. A zero height can occur if:- Your app’s container has no content yet
- You called
sendSizeChanged({ width, height: 0 })
Problem: App doesn’t render when tool results are large
When a tool result exceeds approximately 150,000 characters and Claude’s code execution sandbox is active, the result is written to the sandbox filesystem instead of being passed inline to the conversation. Your app receives a pointer to the stored file rather than the structured content it needs, so it never hydrates.This ~150,000-character threshold is specific to Claude.ai and Claude Desktop. Claude Code uses a separate 25,000-token default limit configurable via
MAX_MCP_OUTPUT_TOKENS — see the connectors FAQ for details.- Paginate large results. Return a summary or the first page of data, and let the user request more through follow-up interactions.
- Fetch details on demand. Use app-initiated tool calls to load additional data from within your widget as the user explores, rather than returning everything upfront.
- Defer heavy content. If your data includes large blobs—full document text, base64-encoded images, extensive logs—return identifiers or previews in the initial result and provide a separate tool to retrieve the full content when needed.