-
-
Notifications
You must be signed in to change notification settings - Fork 122
Description
Related Issue
This may be the root cause of #118 (Failed to import servers from JSON).
Issue
Fresh installation of v0.5.9 cannot import or add servers. Database is missing the servers table.
Root Cause
Commit 75a7dd6 (PR #113) refactored database migrations, removing the logic that creates the servers table during initialization.
All existing migrations only ALTER the servers table (adding columns), but assume the table already exists:
20250601_add_server_type_column20250602_add_remote_url_column- etc.
When the table doesn't exist, these migrations silently skip (see lines 158-166 in main-database-migration.ts).
Expected Behavior
The servers table should be created by a base migration or by McpServerManagerRepository.initializeTable() being called during app initialization.
Workaround
Downgrade to v0.5.8, or manually create the table using the schema from mcp-server-manager.repository.ts lines 17-42.
Fix Suggestion
Add a migration that creates the servers table, executed before all column-addition migrations.
Issue identified and analyzed through Claude Code