Skip to content

@W-22968653 Add MCP app CSP _meta for ChatGPT#408

Merged
jarhun88 merged 4 commits into
mainfrom
heroku-mcp-endpoint-config
Jun 19, 2026
Merged

@W-22968653 Add MCP app CSP _meta for ChatGPT#408
jarhun88 merged 4 commits into
mainfrom
heroku-mcp-endpoint-config

Conversation

@jarhun88

@jarhun88 jarhun88 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

I had the CSP in the wrong place. moving to where the mcp sdk expects it to be to work

Changes

  • src/server.web.ts — emit _meta.ui.csp (connectDomains / resourceDomains / frameDomains) on MCP app resource contents
  • src/server.web.test.ts — corresponding test coverage
  • package.json / package-lock.json — version bump 2.15.1 → 2.15.2

jarhun88 added 2 commits June 18, 2026 19:31
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.
@jarhun88 jarhun88 force-pushed the heroku-mcp-endpoint-config branch from 7f8beb2 to cd33d28 Compare June 18, 2026 23:32
@jarhun88 jarhun88 changed the title Add tableau-heroku MCP endpoint + MCP app CSP/embedding changes Add MCP app CSP _meta + openai/widgetCSP for ChatGPT Jun 18, 2026
@jarhun88 jarhun88 changed the title Add MCP app CSP _meta + openai/widgetCSP for ChatGPT @W-22968653 Adding CSP correctly Jun 18, 2026
Drop the legacy OpenAI-proprietary CSP key, keeping only the standard
MCP-UI _meta.ui.csp structure.
@jarhun88 jarhun88 changed the title @W-22968653 Adding CSP correctly Add MCP app CSP _meta for ChatGPT Jun 18, 2026
@jarhun88 jarhun88 changed the title Add MCP app CSP _meta for ChatGPT @W-22968653 Add MCP app CSP _meta for ChatGPT Jun 19, 2026
@jarhun88 jarhun88 merged commit 9ef6ad3 into main Jun 19, 2026
8 of 12 checks passed
@jarhun88 jarhun88 deleted the heroku-mcp-endpoint-config branch June 19, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants