Skip to content

feat: Lazy import heavy dependencies (google-genai, mcp) to minimize idle memory #106

Description

@allenporter

Currently, the server imports google-genai, mcp, and other libraries at startup. We should delay these imports so they only load if the feature is explicitly enabled (e.g., if the Gemini API key is configured or the MCP server is requested). This will keep the idle memory footprint as low as possible for users running in Lite Sync (zero-config) mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions