Repository navigation
Replies: 2 comments
|
Design PR #4937 proposes |
0 replies
|
Sounds great. Happy for this to move to RFC |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
The Media Library supports folders in the admin and REST API, but the official MCP server cannot list, create, rename, or delete them. MCP clients also cannot filter or move existing media by folder.
A read-only inspection of the site's complete tools/list response on 16 November 2026 confirmed the missing folder tools and folderId inputs. The same gap is present in upstream packages/core/src/mcp/server.ts, checked again on 18 November. PR #2584 explicitly excluded MCP from the original folder foundation.
Use case
I use EmDash for a site managed through its official MCP endpoint. The workflow needs to group article images in Media Library folders and place existing images in the right folder. Switching to another interface interrupts that workflow.
The proposed scope is five tools: media_folder_list, media_folder_get, media_folder_create, media_folder_update, and media_folder_delete; plus an optional folderId in media_list and media_update. The tools would reuse existing handlers, validation, and permissions. Folder deletion would return media to the Main library while preserving files and URLs.
Draft RFC: https://github.com/onvarga/emdash/blob/proposal/media-folders-mcp-2026-11-16/proposals/media-folders-mcp.md
I would like feedback on the scope and tool names, and a Maintainer sponsor for the RFC. Nested folders, bulk moves, and direct upload-to-folder behavior are outside this proposal. Upload deduplication needs a separate decision so identical bytes do not silently move a shared media item.
Current workarounds
The admin UI and REST API already support these operations. A site-specific plugin could expose them through MCP, but it would duplicate a core interface and its authorization contract. The draft proposes exposing the existing folder behavior in the core MCP server.
This is a design proposal; the proposed upstream implementation has not started.
AI assistance: OpenAI Codex helped inspect the source and live tool schemas and prepare this initial proposal.
Your involvement
All reactions