Skip to main content
Glama

COA Goldfish MCP

by anortham
migrate-storage.tsโ€ข2.31 kB
#!/usr/bin/env ts-node /** * CLI tool to migrate Memory objects to TodoLists * Part of the storage architecture simplification */ import { Storage } from '../src/core/storage.js'; import { migrateMemoriesToTodoLists } from '../src/utils/migrate-memories.js'; async function main() { const args = process.argv.slice(2); const dryRun = !args.includes('--execute'); console.log('='.repeat(60)); console.log('๐Ÿ“ฆ COA Goldfish MCP - Storage Migration Tool'); console.log('='.repeat(60)); console.log(`Mode: ${dryRun ? '๐Ÿ” DRY RUN (preview only)' : 'โšก EXECUTE (will make changes)'}`); console.log(); const storage = new Storage(); console.log(`๐Ÿ“ Base path: ${storage.getBasePath()}`); console.log(); try { console.log('๐Ÿš€ Starting migration...'); const result = await migrateMemoriesToTodoLists(storage, dryRun); // Display results console.log(); console.log('๐Ÿ“Š MIGRATION RESULTS'); console.log('='.repeat(40)); console.log(`Status: ${result.success ? 'โœ… SUCCESS' : 'โŒ FAILED'}`); console.log(`Migrated: ${result.migratedCount} items`); console.log(`Skipped: ${result.skippedCount} items`); console.log(`Errors: ${result.errors.length}`); console.log(); if (result.details.length > 0) { console.log('๐Ÿ“‹ DETAILS'); console.log('-'.repeat(40)); result.details.forEach(detail => console.log(detail)); console.log(); } if (result.errors.length > 0) { console.log('โŒ ERRORS'); console.log('-'.repeat(40)); result.errors.forEach(error => console.error(error)); console.log(); } if (dryRun && result.migratedCount > 0) { console.log('๐Ÿ’ก To execute the migration, run:'); console.log(' npm run migrate:storage -- --execute'); console.log(); } if (!dryRun && result.success) { console.log('๐ŸŽ‰ Migration completed successfully!'); console.log('๐Ÿ“Œ Note: Original Memory files are preserved for safety.'); console.log(' Run Phase 3.2 cleanup when ready to remove them.'); console.log(); } } catch (error) { console.error('๐Ÿ’ฅ Migration failed with error:', error); process.exit(1); } } main().catch(error => { console.error('๐Ÿ’ฅ Unexpected error:', error); process.exit(1); });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/anortham/coa-goldfish-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server