Skip to content

Bug: v0.5.9 fails to create servers table on fresh installation #119

@higuaifan

Description

@higuaifan

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_column
  • 20250602_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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions