Skip to content

Commit 3810b6a

Browse files
ericbuessEric Buess
andauthored
Release v0.0.5: Fix npm warnings and improve global package execution (#10)
* fix: include dist directory in npm package (v0.0.2) - Fix: Include compiled dist/ directory in npm package - Add .npmignore to control published files - Add PUBLISH_CHECKLIST.md for future releases - Update CLAUDE.md to reference publish checklist - Bump version to 0.0.2 * style: fix markdown formatting for CI * fix: ensure dist files are included in npm package (v0.0.3) - Add prepack script to ensure build runs before packaging - Update PUBLISH_CHECKLIST with critical verification steps - Make dist/index.js executable - Fix issue where v0.0.1 and v0.0.2 were published without compiled files * style: fix formatting * fix: ensure formatting checks run first in CI - Move format:check before lint in CI workflow - Add pre-commit hook to auto-format files - Fix package.json syntax error - This prevents CI failures due to formatting issues * fix: ensure dist directory is built before npm publish (v0.0.4) - Add verification step to prepublishOnly to ensure dist/index.js exists - Update PUBLISH_CHECKLIST to emphasize building before publishing - Problem: npm publish might not have TypeScript available in CI/CD environments - Solution: Always build manually before publishing * fix: npm publish warnings and script conflicts - Fix repository.url format (add git+ prefix) - Separate prepublishOnly and prepack scripts to avoid conflicts - Remove deprecated husky shebang lines - prepublishOnly: runs clean, lint, and test - prepack: runs build (happens after prepublishOnly) - Bump version to 0.0.5 * fix: improve global npm package execution - Add ./ prefix to bin path for better compatibility - Add postinstall script to ensure index.js is executable - Update README with multiple installation options - Document workaround for npx issues on some systems --------- Co-authored-by: Eric Buess <[email protected]>
1 parent 7f3f48b commit 3810b6a

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
npm run format:check || (npm run format && git add -A)
52
npx lint-staged

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,17 @@ export SEARCH_CACHE_TTL=180000 # Search cache lifetime (3 minutes)
104104
If you're using Claude Code (Anthropic's official CLI), run:
105105

106106
```bash
107-
# Add the server (replace path with your actual installation path)
107+
# Option 1: Using globally installed package (recommended)
108+
npm install -g limitless-ai-mcp-server
109+
claude mcp add limitless -s user -e LIMITLESS_API_KEY="your-api-key-here" -- npx limitless-ai-mcp-server
110+
111+
# Option 2: Using direct node path (if npx doesn't work)
112+
# Find the installation path first:
113+
npm list -g limitless-ai-mcp-server
114+
# Then use the path (example for nvm users):
115+
claude mcp add limitless -s user -e LIMITLESS_API_KEY="your-api-key-here" -- node ~/.nvm/versions/node/v22.0.0/lib/node_modules/limitless-ai-mcp-server/dist/index.js
116+
117+
# Option 3: Using local installation
108118
claude mcp add limitless -s user -e LIMITLESS_API_KEY="your-api-key-here" -- node /path/to/limitless-ai-mcp-server/dist/index.js
109119

110120
# Verify it's running

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "limitless-ai-mcp-server",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "MCP server for integrating Limitless AI Pendant recordings with AI assistants",
55
"author": "Eric Buess",
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "https://github.com/ericbuess/limitless-ai-mcp-server.git"
9+
"url": "git+https://github.com/ericbuess/limitless-ai-mcp-server.git"
1010
},
1111
"bugs": {
1212
"url": "https://github.com/ericbuess/limitless-ai-mcp-server/issues"
@@ -24,7 +24,7 @@
2424
"main": "dist/index.js",
2525
"types": "dist/index.d.ts",
2626
"bin": {
27-
"limitless-ai-mcp-server": "dist/index.js"
27+
"limitless-ai-mcp-server": "./dist/index.js"
2828
},
2929
"files": [
3030
"dist/",
@@ -45,8 +45,9 @@
4545
"typecheck": "tsc --noEmit",
4646
"clean": "rm -rf dist coverage",
4747
"prepare": "husky install",
48-
"prepublishOnly": "npm run clean && npm run lint && npm run test && npm run build && ls dist/index.js",
49-
"prepack": "npm run build"
48+
"prepublishOnly": "npm run clean && npm run lint && npm run test",
49+
"prepack": "npm run build",
50+
"postinstall": "chmod +x dist/index.js 2>/dev/null || true"
5051
},
5152
"dependencies": {
5253
"@modelcontextprotocol/sdk": "^1.12.1",

0 commit comments

Comments
 (0)