MediaStore¶
Storage abstraction for binary media content.
Interface¶
Implementations¶
LocalMediaStore¶
Default backend. Stores files on the local filesystem.
| Config | Default | Description |
|---|---|---|
MCP_MESH_MEDIA_STORAGE_PATH | /tmp/mcp-mesh-media | Base directory |
MCP_MESH_MEDIA_STORAGE_PREFIX | media/ | Subdirectory prefix |
URI format: file:///path/to/file
S3MediaStore¶
Production backend for S3-compatible storage (AWS S3, MinIO).
| Config | Default | Description |
|---|---|---|
MCP_MESH_MEDIA_STORAGE_BUCKET | mcp-mesh-media | Bucket name |
MCP_MESH_MEDIA_STORAGE_ENDPOINT | (none) | Custom endpoint URL |
MCP_MESH_MEDIA_STORAGE_PREFIX | media/ | Key prefix |
URI format: s3://bucket/prefix/filename
Factory¶
Backend selected by MCP_MESH_MEDIA_STORAGE environment variable (local or s3).
See Also¶
- MediaStore Configuration -- Full setup guide
- Environment Variables -- All config options