@W-22968653 Add MCP app CSP _meta for ChatGPT#408
Merged
Conversation
ChatGPT's Apps SDK sandbox does not honor the standard MCP-UI _meta.ui.csp, so the Tableau embedding script was blocked by the sandbox CSP. Emit the legacy OpenAI-proprietary openai/widgetCSP key (snake_case connect_domains/resource_domains/frame_domains) alongside the existing _meta.ui.csp so ChatGPT picks up the allowed Tableau domains.
ChatGPT's Apps SDK reads openai/widgetCSP and _meta.ui.csp from the resources/read content item, not the resource registration options. Move both CSP blocks onto the content item returned by the read callback so ChatGPT applies the allowed Tableau domains to the widget sandbox CSP.
7f8beb2 to
cd33d28
Compare
Drop the legacy OpenAI-proprietary CSP key, keeping only the standard MCP-UI _meta.ui.csp structure.
yyk16293
approved these changes
Jun 19, 2026
anyoung-tableau
approved these changes
Jun 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
I had the CSP in the wrong place. moving to where the mcp sdk expects it to be to work
Changes
_meta.ui.csp(connectDomains / resourceDomains / frameDomains) on MCP app resource contents