Skip to content

agentic-flow@alpha top-level import is broken (missing dependency) #102

@thesoulpole

Description

@thesoulpole

Installing the published npm package and importing it at the top level fails immediately, even before using any functionality.

dist/mcp/claudeFlowSdkServer.js imports agent-booster, but agent-booster is not installed / not declared correctly, so any attempt to import agentic-flow throws.

This breaks the main entrypoint of the package.

Reproduction
mkdir repro-af
cd repro-af
npm init -y
npm install agentic-flow@alpha

node -e "import('agentic-flow').catch(e=>console.error(e))"

Actual result
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'agent-booster'
imported from node_modules/agentic-flow/dist/mcp/claudeFlowSdkServer.js

Expected result

Top-level import should succeed without requiring optional MCP/Claude-Flow integration packages.

Impact

Users cannot even introspect or import the main package API.

Likely fix
• Declare agent-booster as a proper dependency, OR
• Lazy-load MCP/Claude-Flow server modules, OR
• Move MCP server into a separate optional entrypoint instead of top-level import chain.

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