remote-filesystem

v0.1.5
com.pulsemcp/remote-filesystem Checked 2 days ago Published 5 months ago

MCP server for remote filesystem operations on cloud storage (Google Cloud Storage).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

download

Download a file from the remote filesystem. Retrieves the contents of a file from the remote storage. Can return the content as text (default) or base64-encoded for binary files. **Parameters:** - `path`: Path to the file (relative to root) - `asBase64`: Return as base64 string (useful for images/binary files) **Returns:** - `content`: The file contents (text or base64) - `info`: File metadata (path, size, contentType, etc.) **Use cases:** - Retrieve previously uploaded files - Download configuration files - Get file contents for processing **Example:** ``` download({ path: "config/sett…

ParameterTypeDescription
path *stringPath to the file in the remote filesystem (relative to root). Example: "screenshots/pr-123.png"
asBase64booleanIf true, return the file contents as a base64-encoded string. Useful for binary files like images. Default: false (returns as text).

list_files

List files and directories in the remote filesystem. Lists all files and subdirectories at the specified path. Returns file metadata including size, content type, and URLs. **Parameters:** - `prefix`: Directory path to list (optional, defaults to root) - `maxResults`: Maximum number of files to return (optional) **Returns:** - `files`: Array of file info objects with path, size, contentType, url, etc. - `directories`: Array of subdirectory paths **Use cases:** - Browse the remote filesystem - Find files matching a pattern - Check what files exist in a directory **Example:** ``` list_files…

ParameterTypeDescription
maxResultsnumberMaximum number of files to return. Default: 100.
prefixstringDirectory path to list (relative to root). If not provided, lists the root directory. Example: "screenshots" or "reports/2024"

upload

Upload a file to the remote filesystem. This tool accepts either a file:// URI pointing to a local file, or base64-encoded file contents. It uploads the data to the configured storage and returns file info including a URL. **Input formats:** - `file://` URI: Points to a local file (e.g., from MCP resources) - Base64 string: Raw file contents encoded in base64 **Returns:** - `path`: Path in the remote filesystem - `url`: URL to access the file (public or signed) - `size`: File size in bytes - `contentType`: MIME type of the file - `isPublic`: Whether the file is publicly accessible **Use ca…

ParameterTypeDescription
source *stringThe data source to upload. Can be either: 1) A file:// URI pointing to a local file (e.g., "file:///tmp/screenshots/image.png"), or 2) A base64-encoded string of the file contents. Use file:// URIs wh…
contentTypestringOptional MIME type for the file. If not provided, will be inferred from the path extension. Common types: "image/png", "image/jpeg", "application/pdf", "text/plain"
makePublicbooleanWhether to make the file publicly accessible. If not specified, uses the server default (GCS_MAKE_PUBLIC env var).
pathstringDestination path in the remote filesystem (relative to root). If not provided, a timestamp-based filename will be generated. Example: "screenshots/pr-123.png" or "reports/2024/summary.pdf"

modify

Modify file properties in the remote filesystem. Change file access permissions (public/private), content type, or custom metadata. **Parameters:** - `path`: Path to the file (required) - `makePublic`: Make the file publicly accessible - `makePrivate`: Make the file private - `contentType`: Change the MIME type - `metadata`: Custom metadata key-value pairs **Returns:** Updated file info with new properties. **Use cases:** - Make a file publicly accessible for sharing - Make a file private after sharing - Update content type if incorrectly detected - Add custom metadata for tracking **Exam…

ParameterTypeDescription
path *stringPath to the file in the remote filesystem (relative to root). Example: "screenshots/pr-123.png"
contentTypestringChange the MIME type of the file. Example: "image/png", "application/pdf"
makePrivatebooleanMake the file private (requires signed URL to access).
makePublicbooleanMake the file publicly accessible via URL.
metadataobjectCustom metadata key-value pairs to set on the file.

delete_file

Delete a file from the remote filesystem. Permanently removes a file from the remote storage. This action cannot be undone. **Parameters:** - `path`: Path to the file to delete (required) **Returns:** - Success confirmation with the deleted file path **Use cases:** - Remove old or unused files - Clean up temporary uploads - Delete files that are no longer needed **Example:** ``` delete_file({ path: "temp/upload-2024-01-01.png" }) ```

ParameterTypeDescription
path *stringPath to the file to delete (relative to root). Example: "screenshots/old-image.png"