Skip to content

fix: move MCP server initialization into main()#61

Merged
RobertLD merged 1 commit intomainfrom
fix/issue-32-mcp-init
Mar 1, 2026
Merged

fix: move MCP server initialization into main()#61
RobertLD merged 1 commit intomainfrom
fix/issue-32-mcp-init

Conversation

@RobertLD
Copy link
Owner

@RobertLD RobertLD commented Mar 1, 2026

Moves all initialization (loadConfig, getDatabase, runMigrations, createVectorTable, createEmbeddingProvider) from module-level into main() with proper try-catch and structured error logging. Each initialization phase has its own error handler with a user-friendly message.

Closes #32

Closes #32

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@RobertLD RobertLD force-pushed the fix/issue-32-mcp-init branch from 811c0fa to 9768259 Compare March 1, 2026 01:07
@RobertLD RobertLD merged commit c0e4da8 into main Mar 1, 2026
7 checks passed
This was referenced Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mcp: module-level initialization crashes server silently

1 participant