feat(CF-524): Add project_archive MCP method
Implements complete project archival workflow: - Migration 024: Add archival fields to projects table - New project-archive.ts tool coordinating: * Tarball creation via shell * S3 upload with vault credentials * Database metadata tracking * Optional local deletion * Cleanup of temp files - Registered in tool definitions and handlers Replaces manual archival process used for Fireberries/CyprusPulse. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1059,4 +1059,20 @@ export const toolDefinitions = [
|
||||
required: ['id'],
|
||||
},
|
||||
},
|
||||
|
||||
// Project Archival
|
||||
{
|
||||
name: 'project_archive',
|
||||
description: 'Archive complete project to S3 with database tracking. Creates tarball, uploads to s3://agiliton-archive/projects/, updates database, and optionally deletes local copy.',
|
||||
inputSchema: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
project_key: { type: 'string', description: 'Project key (must exist in database)' },
|
||||
project_path: { type: 'string', description: 'Absolute path to project directory' },
|
||||
delete_local: { type: 'boolean', description: 'Delete local project after successful archive (default: false)' },
|
||||
session_id: { type: 'string', description: 'Session ID performing the archival (optional)' },
|
||||
},
|
||||
required: ['project_key', 'project_path'],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user