The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
Merge remote-tracking branch 'origin/main'
jubnl7b2d45665c5b
diff --cc client/src/i18n/translations/fr.tsindex 158a1d358,28a7462a5..cb530c864--- a/client/src/i18n/translations/fr.ts+++ b/client/src/i18n/translations/fr.ts@@@ -437,24 -408,8 +437,24 @@@ const fr: Record<string, string> ='admin.weather.climateDesc': 'Moyennes des 85 dernières années pour les jours au-delà des prévisions de 16 jours','admin.weather.requests': '10 000 requêtes / jour','admin.weather.requestsDesc': 'Gratuit, aucune clé API requise',- 'admin.weather.locationHint': 'La météo est basée sur le premier lieu avec des coordonnées de chaque jour. Si aucun lieu n\'est assigné à un jour, un lieu de la liste est utilisé comme référence.',+ 'admin.weather.locationHint': 'La météo est basée sur le premier lieu avec des coordonnées de chaque jour. Si aucun lieu n\'est attribué à un jour, un lieu de la liste est utilisé comme référence.',+ // MCP Tokens+ 'admin.tabs.mcpTokens': 'Tokens MCP',+ 'admin.mcpTokens.title': 'Tokens MCP',+ 'admin.mcpTokens.subtitle': 'Gérer les tokens API de tous les utilisateurs',+ 'admin.mcpTokens.owner': 'Propriétaire',+ 'admin.mcpTokens.tokenName': 'Nom du token',+ 'admin.mcpTokens.created': 'Créé',+ 'admin.mcpTokens.lastUsed': 'Dernière utilisation',+ 'admin.mcpTokens.never': 'Jamais',+ 'admin.mcpTokens.empty': 'Aucun token MCP n\'a encore été créé',+ 'admin.mcpTokens.deleteTitle': 'Supprimer le token',+ 'admin.mcpTokens.deleteMessage': 'Ce token sera révoqué immédiatement. L\'utilisateur perdra l\'accès MCP via ce token.',+ 'admin.mcpTokens.deleteSuccess': 'Token supprimé',+ 'admin.mcpTokens.deleteError': 'Impossible de supprimer le token',+ 'admin.mcpTokens.loadError': 'Impossible de charger les tokens',+// GitHub'admin.tabs.github': 'GitHub','admin.github.title': 'Historique des versions',diff --cc server/src/db/migrations.tsindex 6d47880df,55078fd48..21e6972c7--- a/server/src/db/migrations.ts+++ b/server/src/db/migrations.ts@@@ -307,35 -307,20 +307,49 @@@ function runMigrations(db: Database.Datdb.prepare("INSERT INTO addons (id, name, type, icon, enabled, sort_order) VALUES (?, ?, ?, ?, ?, ?)").run('memories', 'Photos', 'trip', 'Image', 0, 7);} catch {}},- // Migration 44: MCP long-lived API tokens- () => db.exec(`+ () => {+ // Allow files to be linked to multiple reservations/assignments+ db.exec(`CREATE TABLE IF NOT EXISTS file_links (+ id INTEGER PRIMARY KEY AUTOINCREMENT,+ file_id INTEGER NOT NULL REFERENCES trip_files(id) ON DELETE CASCADE,+ reservation_id INTEGER REFERENCES reservations(id) ON DELETE CASCADE,+ assignment_id INTEGER REFERENCES day_assignments(id) ON DELETE CASCADE,+ place_id INTEGER REFERENCES places(id) ON DELETE CASCADE,+ created_at DATETIME DEFAULT CURRENT_TIMESTAMP,+ UNIQUE(file_id, reservation_id),+ UNIQUE(file_id, assignment_id),+ UNIQUE(file_id, place_id)+ )`);+ },++ // Migration 44: MCP long-lived API tokens++ () => db.exec(`+ CREATE TABLE IF NOT EXISTS mcp_tokens (+ id INTEGER PRIMARY KEY AUTOINCREMENT,+ user_id INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE,+ name TEXT NOT NULL,+ token_hash TEXT NOT NULL,+ token_prefix TEXT NOT NULL,+ created_at DATETIME DEFAULT CURRENT_TIMESTAMP,+ last_used_at DATETIME+ )+ `),- // Migration 45: MCP addon entry- () => {- try {- db.prepare("INSERT OR IGNORE INTO addons (id, name, description, type, icon, enabled, sort_order) VALUES (?, ?, ?, ?, ?, ?, ?)")- .run('mcp', 'MCP', 'Model Context Protocol for AI assistant integration', 'global', 'Terminal', 0, 12);- } catch {}- },- // Migration 46: Index on mcp_tokens.token_hash for fast lookup- () => db.exec(`++ // Migration 45: MCP addon entry++ () => {++ try {++ db.prepare("INSERT OR IGNORE INTO addons (id, name, description, type, icon, enabled, sort_order) VALUES (?, ?, ?, ?, ?, ?, ?)")++ .run('mcp', 'MCP', 'Model Context Protocol for AI assistant integration', 'global', 'Terminal', 0, 12);++ } catch {}++ },++ // Migration 46: Index on mcp_tokens.token_hash for fast lookup++ () => db.exec(`+ CREATE INDEX IF NOT EXISTS idx_mcp_tokens_hash ON mcp_tokens(token_hash)+ `),- // Migration 47: Change MCP addon type from 'global' to 'integration'- () => {- try {- db.prepare("UPDATE addons SET type = 'integration' WHERE id = 'mcp'").run();- } catch {}- },++ // Migration 47: Change MCP addon type from 'global' to 'integration'++ () => {++ try {++ db.prepare("UPDATE addons SET type = 'integration' WHERE id = 'mcp'").run();++ } catch {}++ },];if (currentVersion < migrations.length) {