Skip to content

Conversation

@aharvard
Copy link
Contributor

@aharvard aharvard commented Dec 9, 2025

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
Copy link

pkg-pr-new bot commented Dec 9, 2025

Open in StackBlitz

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

commit: ced0061

@liady
Copy link
Collaborator

liady commented Dec 9, 2025

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