Skip to content

fix: resolve CLI entrypoint routing issue - #18

Merged
mrsimpson merged 1 commit into
mainfrom
fix-cli-entrypoint
Feb 11, 2026
Merged

mrsimpson merged 1 commit into
mainfrom
fix-cli-entrypoint

Conversation

@mrsimpson

Copy link
Copy Markdown
Collaborator

Two key fixes:

  1. Replace pnpm workspace protocol dependencies with fixed version numbers:

    • Convert 'workspace:*' to '1.0.15' for @codemcp/knowledge-core, @codemcp/knowledge-content-loader, and @codemcp/knowledge
    • This allows the package to be installed via npm without errors
    • Fixes: EUNSUPPORTEDPROTOCOL 'workspace:' error when installing from registry
  2. Remove duplicate bin field from @codemcp/knowledge (MCP server) package:

    • MCP server package.json had 'bin' field pointing to its bin.js
    • Root package.json already defines the correct CLI entrypoint
    • When both packages define the same bin name, npm installs the wrong one
    • Removing the bin field from sub-packages ensures root package controls routing

This ensures that 'npx agentic-knowledge-mcp create' correctly routes to the CLI instead of starting the MCP server. The routing logic in packages/cli/src/index.ts now works correctly:

  • No args: starts MCP server
  • With args: delegates to CLI commands

@mrsimpson
mrsimpson merged commit ccfef3e into main Feb 11, 2026
1 check passed
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.

1 participant