-
Notifications
You must be signed in to change notification settings - Fork 0
File Management
ADEPT provides a comprehensive file management system with session-scoped storage, dual access interfaces, and time-limited presigned URLs for secure file sharing.
The file system is designed around two principles:
- Session isolation -- Each upload session gets its own directory, preventing cross-user data leakage.
- Dual interface -- External clients use the REST API while agents use the MCP tool interface, both writing to the same unified metadata store.
curl -X POST https://your-adept-server.example.com/v1/files \
-H "Authorization: Bearer $TOKEN" \
-F "file=@experiment_results.csv" \
-F "purpose=assistants"The response includes a file_id that can be referenced in subsequent agent conversations.
All uploaded files are registered in Redis with metadata including:
-
file_id-- Unique identifier -
owner_id-- User who uploaded the file -
current_path-- Filesystem location -
session_id-- MCP session that owns the file -
filename-- Original filename -
content_type-- MIME type
Both the REST API and MCP tool write to the same file_metadata:{file_id} Redis keys.
Presigned URLs provide time-limited, tamper-proof download links for files without requiring the recipient to authenticate.
Ask the agent directly:
Generate a 2-hour download link for my uploaded file data.csv
| Property | Implementation |
|---|---|
| Tamper-proof | HMAC-SHA256 signed tokens |
| Time-limited | Configurable expiry (1 second to 24 hours) |
| Timing-safe | Constant-time signature validation |
| Ownership-scoped | Only file owners can generate URLs |
Uploaded files are stored in session-scoped directories:
data/uploaded_files/{mcp_session_id}/
| Interface | Caller Type | Transport | Use Case |
|---|---|---|---|
| REST API | External clients (SDKs, notebooks, curl) | HTTP with JWT auth | Programmatic uploads |
| MCP Tool | Agent workflows | Direct function call | Natural language file operations |
These are intentionally separate interfaces for different caller types. Both write to the same Redis metadata schema.
Getting Started
Architecture
- Overview
- MCP Tool System
- Slurm HPC Integration
- Multi-Agent Orchestration
- A2A Federation
- Security Model
Deployment
User Guides
Developer Tools
CI/CD
Testing
Contributing
Reference