Skip to content

Add media-src to CSP for video and audio support - #109

Merged
liady merged 1 commit into
modelcontextprotocol:mainfrom
aharvard:add-media-src-to-csp
Dec 9, 2025
Merged

Add media-src to CSP for video and audio support#109
liady merged 1 commit into
modelcontextprotocol:mainfrom
aharvard:add-media-src-to-csp

Conversation

@aharvard

@aharvard aharvard commented Dec 9, 2025

Copy link
Copy Markdown
Contributor

This adds the media-src directive to the Content Security Policy to enable MCP Apps to play video and audio content.

Changes:

  • Add media-src to the restrictive default CSP in the spec
  • Add media-src to the CSP construction from metadata in the spec
  • Update resourceDomains documentation in spec to include media
  • Update resourceDomains JSDoc in src/types.ts to include media-src

Fixes #106

This adds the media-src directive to the Content Security Policy to enable
MCP Apps to play video and audio content.

Changes:
- Add media-src to the restrictive default CSP in the spec
- Add media-src to the CSP construction from metadata in the spec
- Update resourceDomains documentation in spec to include media
- Update resourceDomains JSDoc in src/types.ts to include media-src

Fixes modelcontextprotocol#106
@pkg-pr-new

pkg-pr-new Bot commented Dec 9, 2025

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/ext-apps@109

commit: ced0061

@liady

liady commented Dec 9, 2025

Copy link
Copy Markdown
Contributor

Thanks @aharvard!

@liady
liady merged commit 4953cd3 into modelcontextprotocol:main Dec 9, 2025
3 checks passed
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.

SEP: Add media-src to CSP

3 participants