Skip to Content
ServicesFile Gateway

File Gateway

A file management system providing S3 file operations through a REST API and MCP server for AI agents.

Overview

File Gateway provides:

  • File API - FastAPI REST service for S3 file operations (list, upload, download, delete)
  • MCP Server - Model Context Protocol server for agent file access
  • VersityGW - S3-compatible gateway for object storage backend
  • Persistent Storage - Kubernetes PVC-backed storage

File Size Limitations

The Filesystem MCP is designed for small files that can be directly loaded into agent context. For this reason it enforces a 1MB file size limit for uploads.

For larger files or datasets, consider using RAG (Retrieval-Augmented Generation) or vectorization patterns.

Install

ark install marketplace/services/file-gateway

Or with DevSpace:

cd services/file-gateway devspace deploy

Or with Helm:

helm install file-gateway ./chart -n default

Access via:

  • Port forward: kubectl port-forward svc/file-gateway-file-api 8080:8080
  • Ark Dashboard → Files page 

Services

File API

FastAPI REST service for S3 file operations via VersityGW. Provides endpoints for listing, uploading, downloading, and deleting files from S3-compatible storage.

Port: 8080

Filesystem MCP Server

Model Context Protocol server that provides file system access tools for AI agents. Agents can interact with the file storage through MCP tools.

Port: 8000

VersityGW

S3-compatible gateway for object storage, providing the underlying storage backend.

Port: 7070

Configuration

ParameterDescriptionDefault
fileApi.image.repositoryFile API container imageghcr.io/mckinsey/agents-at-scale-marketplace/file-api
fileApi.service.portFile API service port80
filesystemMcp.enabledEnable MCP servertrue
filesystemMcp.config.bucketNameS3 bucket nameaas-files
versitygw.enabledEnable VersityGWtrue
versitygw.service.portVersityGW service port80
storage.enabledEnable persistent storagetrue
storage.sizeStorage size1Gi
httpRoute.enabledEnable Gateway API HTTPRoutetrue

Usage with Agents

Agents can access files through the Filesystem MCP server. The MCP server is automatically registered with Ark and provides file operation tools to connected agents.

Use the ark-dashboard to browse and manage files.

Uninstall

Using DevSpace:

cd services/file-gateway devspace purge

Using Helm:

helm uninstall file-gateway -n default

Additional Resources

Last updated on