Skip to content

Comments

Fix cli entrypoint#19

Merged
mrsimpson merged 8 commits intomainfrom
fix-cli-entrypoint
Feb 11, 2026
Merged

Fix cli entrypoint#19
mrsimpson merged 8 commits intomainfrom
fix-cli-entrypoint

Conversation

@mrsimpson
Copy link
Owner

No description provided.

- Upgrade packageManager to pnpm@10.29.3 (from 9.14.2)
  - pnpm 10+ automatically converts workspace:* to actual versions during pack/publish
  - No additional configuration needed - works out of the box
  - Exact versions are safer for published packages than version ranges

Benefits:
- Workspace protocol dependencies stay in source code (clean)
- Automatic conversion during packing/publishing (no manual steps)
- No sed/string replacement needed in CI
- Published packages have properly resolved dependencies

The solution is now:
1. Keep workspace:* in source code
2. pnpm automatically converts during pack/publish
3. Published packages work with npm/yarn/pnpm
Allow users to run the MCP server directly when @codemcp/knowledge is installed:
  npx @codemcp/knowledge

This complements the root package's CLI command:
  npx agentic-knowledge-mcp create

No naming conflicts because:
- Root uses unscoped name: 'agentic-knowledge' (CLI)
- MCP server uses scoped name: '@codemcp/knowledge' (MCP server)

Users can now:
1. Install root package for CLI + MCP: npm install agentic-knowledge-mcp
2. Install MCP server standalone: npm install @codemcp/knowledge
   Then run with: npx @codemcp/knowledge
@mrsimpson mrsimpson force-pushed the fix-cli-entrypoint branch 2 times, most recently from 144c1b5 to d642ce7 Compare February 11, 2026 19:48
The project had a version mismatch where @eslint/js v10 was being used with
eslint v9. The preserve-caught-error rule introduced in @eslint/js v10 is not
available in eslint v9, causing CI linting to fail.

Solution: Downgrade @eslint/js to v9.34.0+ to match the eslint v9 installation,
ensuring compatibility of all ESLint rules and resolving the CI failure.
@mrsimpson mrsimpson merged commit cf5a06e into main Feb 11, 2026
1 check passed
@mrsimpson mrsimpson deleted the fix-cli-entrypoint branch February 11, 2026 21:05
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