openlmlib
v0.2.7
Published
AI-powered knowledge library for LLM agents — install, manage, and retrieve findings via CLI and MCP
Maintainers
Readme
OpenLMlib Installer
Development Workflow
Creating a New Release Package
Ensure you're on the right branch with all changes committed:
git statusUpdate version in both:
installer/package.json../pyproject.toml../openlmlib/__init__.py
Build and pack:
cd installer npm packThis automatically:
- Bundles the Python source code from the repo root
- Creates
openlmlib-X.X.X.tgzwith all source included
Test the package:
npm install -g ./openlmlib-X.X.X.tgzVerify all tools are registered:
python -c "from openlmlib.mcp_server import mcp; print(len(mcp._tool_manager._tools))"Should output:
41Restart your IDE (Cursor, Claude Desktop, etc.) to refresh MCP tool cache
Installing from the Package
npm install -g ./openlmlib-0.2.6.tgz
openlmlib setupThen restart your IDE to see all 52 MCP tools.
How It Works
The installer has a two-stage installation:
npm package contains:
- JavaScript installer code (CLI, UI, wizards)
- Bundled Python source code (
openlmlib/andpyproject.toml)
Postinstall script does:
- Creates virtual environment at
~/.openlmlib/venv - Installs Python package from bundled source via
pip install -e - Configures MCP clients (VS Code, Cursor, Claude, etc.)
- Sets up settings and paths
- Creates virtual environment at
Installation Priority
The installer tries these sources in order:
- ✅ Bundled source (from npm package) - THIS IS NEW
- Local development source (if running from repo)
- GitHub tag
v{version} - GitHub main branch
- PyPI release
This ensures the npm package is self-contained and doesn't depend on external releases.
Troubleshooting
Only seeing 10 tools in IDE?
- Restart your IDE - it may be caching an old tool list
- Run:
openlmlib doctorto verify installation - Check tool count:
~/.openlmlib/venv/Scripts/python.exe -c "from openlmlib.mcp_server import mcp; print(len(mcp._tool_manager._tools))"
Build fails?
Make sure you're running from the installer/ directory and the repo root has the Python source:
D:\LMlib/
├── openlmlib/ ← Python source (must exist)
├── pyproject.toml ← Python package config (must exist)
└── installer/ ← You are here
├── package.json
└── bundle-python.jsFiles
bundle-python.js- Copies Python source into installer before packingsrc/postinstall.mjs- Main installation scriptsrc/run-setup.mjs- MCP setup wizardpackage.json- npm package manifest (includesprepackhook)
