Skip to content

Support File Uploads from Third-Party Clients #393

Description

@qrnvttrl

Describe the problem

The MCP server currently assumes that files to be uploaded are either available on the server's filesystem or accessible through a URL.

This becomes problematic when the MCP client allows users to upload files that are only available within the client session. For example, in OpenWebUI a user can attach an image to a prompt, but the MCP server has no way to access that file:

  • The file is not exposed via a public URL.
  • The MCP server has no access to the client's session storage.
  • The MCP server does not share a filesystem with the client.

As a result, prompts such as:

Write a new article about dogs. Upload and include this attached image in the article.

cannot be fulfilled even though the user has provided the image.

Describe the solution

Add support for client-provided files so that MCP clients can pass uploaded files directly to the MediaWiki MCP server.

Possible implementations include:

  • Support for MCP resources representing uploaded files.
  • Accepting file content (e.g. base64 encoded) as tool arguments.
  • Any other MCP-compatible mechanism that allows the server to receive file data without requiring a shared filesystem or a publicly accessible URL.

This would enable integrations with clients such as OpenWebUI and other MCP frontends where user-uploaded files exist only within the client session.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions