Uploading media files with the MCP Plugin
I am trying to implement the MCP plugin to create blog posts drafts. In order to allow adding the hero image, I have to enable the media collection in the plugin; however, the tool payload_createMedia throws the error:
ERROR: [payload-mcp] Error creating resource in media: No files were uploaded.
It seems that either the tool does not allow performing the upload, or the model is not capable. I cannot upload the file using the REST API as the collection requires the user to be authenticated, with this in mind, do i need to use an API key strategy to authenticate and then upload the file via REST API and only use the MCP for the metadata?
Has anyone used the MCP for something similar and can provide some guidance?