Skip to content

CLI Reference

cloud-fs-mcp <provider> <root-uri> [root-uri...] [options]

Providers

ProviderURI formatDescription
s3s3://bucket[/prefix]AWS S3 or S3-compatible (MinIO, RustFS)
azureaz://container[/prefix]Azure Blob Storage
gcsgs://bucket[/prefix]Google Cloud Storage
memorymem://nameIn-memory (ephemeral, for demos)
sqlitesqlite://nameSQLite (persistent local)

Transport & Network

FlagDefaultDescription
--transport <stdio|http|ws>stdioTransport protocol
--port <number>3000Listen port (http/ws only)
--host <address>127.0.0.1Bind address (http/ws only)

Authentication

FlagDefaultDescription
--auth <none|builtin|external>noneAuth mode (http/ws only)
--auth-issuer <url>OAuth issuer URL (builtin mode)
--auth-jwks-uri <url>JWKS URI (external mode)
--auth-audience <string>Expected token audience (external mode)
--auth-client-credentialsfalseEnable Client Credentials ext-auth flow
--auth-enterprise-idp <url>Enable Enterprise-Managed Authorization

Production & Hardening

FlagDefaultDescription
--cors-origin <origin>Allowed CORS origin (repeatable)
--rate-limit <req/min>0 (off)Rate limit per client
--rate-limit-burst <n>10Burst allowance
--security-headersfalseEnable nosecone security headers
--security-headers-config <json>Custom security headers configuration (JSON)
--security-headers-config-file <path>Path to security headers configuration file
--request-loggingfalseEnable structured JSON request logging
--audit-logfalseEnable structured tool invocation audit logging to stderr
--audit-log-file <path>Write audit log entries to a file (implies --audit-log)

Storage & Cache

FlagDefaultDescription
--region <region>Cloud region (S3, GCS)
--endpoint <url>Custom endpoint for S3-compatible backends
--cache-store <memory|fs|redis>memoryCache backend
--cache-ttl <seconds>60Cache TTL in seconds
--sync-debounce <ms>2000Write flush delay in ms
--cache-dir <path>Directory for fs cache store
--no-cacheBypass cache entirely (pass-through mode)
--gcs-endpoint <url>Custom endpoint for GCS
--sqlite-db <path>SQLite database file path
--ca-file <path>PEM CA bundle for TLS verification (S3-compatible endpoints + Redis)

Interactive Shell (cloud-fs)

The interactive shell is a separate binary that provides a POSIX-like terminal for cloud storage.

bash
cloud-fs <provider> <root-uri> [options]

It supports all the same Storage & Cache and TLS flags as cloud-fs-mcp.

FlagDefaultDescription
--seed-demofalseSeed VFS with sample files (demo only)
--no-historyfalseDisable persistent command history

Tools

FlagDefaultDescription
--enable-deletefalseEnable the delete_file tool
--enable-shellfalseEnable the shell tool
--enable-dlpfalseEnable DLP content sanitization (redacts secrets/PII from tool responses)
--grep-max-objects <n>1000Max objects grep_files scans per call

TLS & Custom CA

Two approaches are available for custom CA certificates:

--ca-file <path> (targeted)

Injects the PEM CA bundle into specific clients:

  • S3-compatible endpoints (MinIO, RustFS) — passed as a custom https.Agent via NodeHttpHandler
  • Redis (rediss://) — passed as tls.ca to ioredis

Not needed for AWS S3, Azure Blob, or GCS — these connect to public cloud endpoints with well-known CAs.

bash
# MinIO with self-signed CA
cloud-fs-mcp s3 s3://my-bucket \
  --endpoint https://minio.internal:9000 \
  --ca-file /etc/ssl/certs/my-ca.pem

# Redis with private CA
REDIS_URL=rediss://redis.internal:6380 \
cloud-fs-mcp s3 s3://my-bucket --cache-store redis \
  --ca-file /etc/ssl/certs/my-ca.pem

NODE_EXTRA_CA_CERTS (runtime-wide)

Node.js/Bun environment variable that applies to all outbound TLS connections — covers every provider and Redis:

bash
NODE_EXTRA_CA_CERTS=/etc/ssl/certs/my-ca.pem \
cloud-fs-mcp s3 s3://my-bucket --endpoint https://minio.internal:9000

Use NODE_EXTRA_CA_CERTS when you want a single CA to cover multiple connections, or when using Azure / GCS behind a TLS-intercepting proxy.

INFO

Credentials are always sourced from SDK credential chains — never CLI flags. See Provider Setup for details.

Released under the PolyForm Shield 1.0.0 License.